|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pbeans.data.AbstractDatabase net.sourceforge.pbeans.data.GenericDatabase
public class GenericDatabase
A database abstraction for an RDBMS unknown to DefaultDatabaseFactory.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sourceforge.pbeans.data.AbstractDatabase |
---|
AbstractDatabase.TypeInfo |
Field Summary |
---|
Fields inherited from class net.sourceforge.pbeans.data.AbstractDatabase |
---|
sqlStateType |
Constructor Summary | |
---|---|
GenericDatabase()
Deprecated. |
Method Summary | |
---|---|
protected java.sql.PreparedStatement |
getAutoIncrementRetrievalStatement(java.sql.Connection c)
Deprecated. Gets a PreparedStatement instance that can be
used to retrieve the auto-increment value of a record just
inserted. |
protected java.sql.PreparedStatement[] |
getChangeFieldStatements(java.sql.Connection c,
java.lang.String tableName,
FieldDescriptor fd,
boolean autoIncrement)
Deprecated. Changes field type and other settings by copying data to a temporary field. |
protected java.sql.PreparedStatement[] |
getRenameFieldStatements(java.sql.Connection c,
java.lang.String tableName,
java.lang.String oldName,
FieldDescriptor fd,
boolean autoIncrement)
Deprecated. Renames field and changes other settings by copying data to a temporary field. |
void |
init(javax.sql.DataSource dataSource)
Deprecated. Override this method to obtain metadata information, such as the JDBC URL. |
boolean |
isDuplicateEntryError(java.sql.SQLException se)
Deprecated. Checks for SQL state 23505 in case SQL99 codes are supported, otherwise makes assumptions based on exception message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericDatabase() throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public void init(javax.sql.DataSource dataSource) throws java.sql.SQLException
AbstractDatabase
super
implementation.
init
in interface Database
init
in class AbstractDatabase
dataSource
- A DataSource instance.
java.sql.SQLException
protected java.sql.PreparedStatement getAutoIncrementRetrievalStatement(java.sql.Connection c) throws java.sql.SQLException
AbstractDatabase
PreparedStatement
instance that can be
used to retrieve the auto-increment value of a record just
inserted.
getAutoIncrementRetrievalStatement
in class AbstractDatabase
c
- A Connection instance.
java.sql.SQLException
protected java.sql.PreparedStatement[] getChangeFieldStatements(java.sql.Connection c, java.lang.String tableName, FieldDescriptor fd, boolean autoIncrement) throws java.sql.SQLException
getChangeFieldStatements
in class AbstractDatabase
java.sql.SQLException
protected java.sql.PreparedStatement[] getRenameFieldStatements(java.sql.Connection c, java.lang.String tableName, java.lang.String oldName, FieldDescriptor fd, boolean autoIncrement) throws java.sql.SQLException
getRenameFieldStatements
in class AbstractDatabase
java.sql.SQLException
public boolean isDuplicateEntryError(java.sql.SQLException se)
isDuplicateEntryError
in interface Database
isDuplicateEntryError
in class AbstractDatabase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |