|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.riverock.dbrevision.db.Database
public abstract class Database
Database $Revision: 1141 $ $Date: 2006-12-14 17:43:29 +0300 (Чт, 14 дек 2006) $
Nested Class Summary | |
---|---|
static class |
Database.Family
Database family |
Constructor Summary | |
---|---|
Database(Connection conn)
Constructor |
Method Summary | |
---|---|
abstract void |
addColumn(DbTable table,
DbField field)
|
abstract void |
createForeignKey(DbTable view)
|
abstract void |
createSequence(DbSequence seq)
|
abstract void |
createTable(DbTable table)
|
abstract void |
createView(DbView view)
|
abstract void |
dropConstraint(DbForeignKey impPk)
|
abstract void |
dropSequence(String nameSequence)
|
abstract void |
dropTable(DbTable table)
|
abstract void |
dropTable(String nameTable)
|
abstract byte[] |
getBlobField(ResultSet rs,
String nameField,
int maxLength)
|
abstract String |
getClobField(ResultSet rs,
String nameFeld)
|
abstract String |
getClobField(ResultSet rs,
String nameFeld,
int maxLength)
|
Connection |
getConnection()
Get jdbc connection |
abstract String |
getDefaultSchemaName(DatabaseMetaData databaseMetaData)
|
abstract String |
getDefaultTimestampValue()
|
abstract Database.Family |
getFamily()
get family for this adapter |
abstract int |
getMaxLengthStringField()
|
abstract String |
getOnDeleteSetNull()
|
abstract List<DbSequence> |
getSequnceList(String schemaPattern)
|
abstract List<DbView> |
getViewList(String schemaPattern,
String tablePattern)
|
abstract String |
getViewText(DbView view)
|
abstract boolean |
isBatchUpdate()
Is this db support batch update? |
abstract boolean |
isByteArrayInUtf8()
|
abstract boolean |
isNeedUpdateBracket()
|
abstract boolean |
isSchemaSupports()
|
abstract void |
setBlobField(String tableName,
String fieldName,
byte[] bytes,
String whereQuery,
Object[] objects,
int[] fieldTyped)
|
void |
setConnection(Connection conn)
|
abstract void |
setLongVarbinary(PreparedStatement ps,
int index,
DbDataFieldData fieldData)
|
abstract void |
setLongVarchar(PreparedStatement ps,
int index,
DbDataFieldData fieldData)
|
abstract boolean |
testExceptionConstraintExists(Exception e)
|
abstract boolean |
testExceptionIndexUniqueKey(Exception e)
|
abstract boolean |
testExceptionIndexUniqueKey(Exception e,
String index)
|
abstract boolean |
testExceptionSequenceExists(Exception e)
|
abstract boolean |
testExceptionTableExists(Exception e)
|
abstract boolean |
testExceptionTableNotFound(Exception e)
|
abstract boolean |
testExceptionViewExists(Exception e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Database(Connection conn)
conn
- connectionMethod Detail |
---|
public void setConnection(Connection conn)
public Connection getConnection()
public abstract Database.Family getFamily()
public abstract void setBlobField(String tableName, String fieldName, byte[] bytes, String whereQuery, Object[] objects, int[] fieldTyped)
public abstract boolean isBatchUpdate()
public abstract boolean isNeedUpdateBracket()
public abstract boolean isByteArrayInUtf8()
public abstract boolean isSchemaSupports()
public abstract String getDefaultSchemaName(DatabaseMetaData databaseMetaData)
public abstract String getClobField(ResultSet rs, String nameFeld)
public abstract byte[] getBlobField(ResultSet rs, String nameField, int maxLength)
public abstract void createTable(DbTable table)
public abstract void createView(DbView view)
public abstract void createSequence(DbSequence seq)
public abstract void dropTable(DbTable table)
public abstract void dropTable(String nameTable)
public abstract void dropSequence(String nameSequence)
public abstract void dropConstraint(DbForeignKey impPk)
public abstract void addColumn(DbTable table, DbField field)
public abstract void createForeignKey(DbTable view)
public abstract String getOnDeleteSetNull()
public abstract String getDefaultTimestampValue()
public abstract List<DbView> getViewList(String schemaPattern, String tablePattern)
public abstract List<DbSequence> getSequnceList(String schemaPattern)
public abstract String getViewText(DbView view)
public abstract void setLongVarbinary(PreparedStatement ps, int index, DbDataFieldData fieldData)
public abstract void setLongVarchar(PreparedStatement ps, int index, DbDataFieldData fieldData)
public abstract String getClobField(ResultSet rs, String nameFeld, int maxLength)
rs
- result setnameFeld
- name of fieldmaxLength
- max length of CLOB field
public abstract boolean testExceptionTableNotFound(Exception e)
public abstract boolean testExceptionIndexUniqueKey(Exception e, String index)
public abstract boolean testExceptionIndexUniqueKey(Exception e)
public abstract boolean testExceptionTableExists(Exception e)
public abstract boolean testExceptionViewExists(Exception e)
public abstract boolean testExceptionSequenceExists(Exception e)
public abstract boolean testExceptionConstraintExists(Exception e)
public abstract int getMaxLengthStringField()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |