org.riverock.dbrevision.db.impl
Class LocalDatabase
java.lang.Object
org.riverock.dbrevision.db.Database
org.riverock.dbrevision.db.impl.LocalDatabase
public class LocalDatabase
- extends org.riverock.dbrevision.db.Database
User: SergeMaslyukov
Date: 28.07.2007
Time: 21:05:32
| Nested classes/interfaces inherited from class org.riverock.dbrevision.db.Database |
org.riverock.dbrevision.db.Database.Family |
|
Method Summary |
void |
addColumn(org.riverock.dbrevision.annotation.schema.db.DbTable table,
org.riverock.dbrevision.annotation.schema.db.DbField field)
|
void |
createForeignKey(org.riverock.dbrevision.annotation.schema.db.DbTable view)
|
void |
createSequence(org.riverock.dbrevision.annotation.schema.db.DbSequence seq)
|
void |
createTable(org.riverock.dbrevision.annotation.schema.db.DbTable table)
|
void |
createView(org.riverock.dbrevision.annotation.schema.db.DbView view)
|
void |
dropConstraint(org.riverock.dbrevision.annotation.schema.db.DbForeignKey impPk)
|
void |
dropSequence(String nameSequence)
|
void |
dropTable(org.riverock.dbrevision.annotation.schema.db.DbTable table)
|
void |
dropTable(String nameTable)
|
byte[] |
getBlobField(ResultSet rs,
String nameField,
int maxLength)
|
String |
getClobField(ResultSet rs,
String nameFeld)
|
String |
getClobField(ResultSet rs,
String nameFeld,
int maxLength)
|
String |
getDefaultSchemaName(DatabaseMetaData databaseMetaData)
|
String |
getDefaultTimestampValue()
|
org.riverock.dbrevision.db.Database.Family |
getFamily()
|
int |
getMaxLengthStringField()
|
String |
getOnDeleteSetNull()
|
List<org.riverock.dbrevision.annotation.schema.db.DbSequence> |
getSequnceList(String schemaPattern)
|
List<org.riverock.dbrevision.annotation.schema.db.DbView> |
getViewList(String schemaPattern,
String tablePattern)
|
String |
getViewText(org.riverock.dbrevision.annotation.schema.db.DbView view)
|
boolean |
isBatchUpdate()
|
boolean |
isByteArrayInUtf8()
|
boolean |
isNeedUpdateBracket()
|
boolean |
isSchemaSupports()
|
void |
setBlobField(String tableName,
String fieldName,
byte[] bytes,
String whereQuery,
Object[] objects,
int[] fieldTyped)
|
void |
setLongVarbinary(PreparedStatement ps,
int index,
org.riverock.dbrevision.annotation.schema.db.DbDataFieldData fieldData)
|
void |
setLongVarchar(PreparedStatement ps,
int index,
org.riverock.dbrevision.annotation.schema.db.DbDataFieldData fieldData)
|
boolean |
testExceptionConstraintExists(Exception e)
|
boolean |
testExceptionIndexUniqueKey(Exception e)
|
boolean |
testExceptionIndexUniqueKey(Exception e,
String index)
|
boolean |
testExceptionSequenceExists(Exception e)
|
boolean |
testExceptionTableExists(Exception e)
|
boolean |
testExceptionTableNotFound(Exception e)
|
boolean |
testExceptionViewExists(Exception e)
|
| Methods inherited from class org.riverock.dbrevision.db.Database |
getConnection, setConnection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalDatabase
public LocalDatabase(Connection conn)
getFamily
public org.riverock.dbrevision.db.Database.Family getFamily()
- Specified by:
getFamily in class org.riverock.dbrevision.db.Database
setBlobField
public void setBlobField(String tableName,
String fieldName,
byte[] bytes,
String whereQuery,
Object[] objects,
int[] fieldTyped)
- Specified by:
setBlobField in class org.riverock.dbrevision.db.Database
isBatchUpdate
public boolean isBatchUpdate()
- Specified by:
isBatchUpdate in class org.riverock.dbrevision.db.Database
isNeedUpdateBracket
public boolean isNeedUpdateBracket()
- Specified by:
isNeedUpdateBracket in class org.riverock.dbrevision.db.Database
isByteArrayInUtf8
public boolean isByteArrayInUtf8()
- Specified by:
isByteArrayInUtf8 in class org.riverock.dbrevision.db.Database
isSchemaSupports
public boolean isSchemaSupports()
- Specified by:
isSchemaSupports in class org.riverock.dbrevision.db.Database
getDefaultSchemaName
public String getDefaultSchemaName(DatabaseMetaData databaseMetaData)
- Specified by:
getDefaultSchemaName in class org.riverock.dbrevision.db.Database
getClobField
public String getClobField(ResultSet rs,
String nameFeld)
- Specified by:
getClobField in class org.riverock.dbrevision.db.Database
getBlobField
public byte[] getBlobField(ResultSet rs,
String nameField,
int maxLength)
- Specified by:
getBlobField in class org.riverock.dbrevision.db.Database
createTable
public void createTable(org.riverock.dbrevision.annotation.schema.db.DbTable table)
- Specified by:
createTable in class org.riverock.dbrevision.db.Database
createView
public void createView(org.riverock.dbrevision.annotation.schema.db.DbView view)
- Specified by:
createView in class org.riverock.dbrevision.db.Database
createSequence
public void createSequence(org.riverock.dbrevision.annotation.schema.db.DbSequence seq)
- Specified by:
createSequence in class org.riverock.dbrevision.db.Database
dropTable
public void dropTable(org.riverock.dbrevision.annotation.schema.db.DbTable table)
- Specified by:
dropTable in class org.riverock.dbrevision.db.Database
dropTable
public void dropTable(String nameTable)
- Specified by:
dropTable in class org.riverock.dbrevision.db.Database
dropSequence
public void dropSequence(String nameSequence)
- Specified by:
dropSequence in class org.riverock.dbrevision.db.Database
dropConstraint
public void dropConstraint(org.riverock.dbrevision.annotation.schema.db.DbForeignKey impPk)
- Specified by:
dropConstraint in class org.riverock.dbrevision.db.Database
addColumn
public void addColumn(org.riverock.dbrevision.annotation.schema.db.DbTable table,
org.riverock.dbrevision.annotation.schema.db.DbField field)
- Specified by:
addColumn in class org.riverock.dbrevision.db.Database
createForeignKey
public void createForeignKey(org.riverock.dbrevision.annotation.schema.db.DbTable view)
- Specified by:
createForeignKey in class org.riverock.dbrevision.db.Database
getOnDeleteSetNull
public String getOnDeleteSetNull()
- Specified by:
getOnDeleteSetNull in class org.riverock.dbrevision.db.Database
getDefaultTimestampValue
public String getDefaultTimestampValue()
- Specified by:
getDefaultTimestampValue in class org.riverock.dbrevision.db.Database
getViewList
public List<org.riverock.dbrevision.annotation.schema.db.DbView> getViewList(String schemaPattern,
String tablePattern)
- Specified by:
getViewList in class org.riverock.dbrevision.db.Database
getSequnceList
public List<org.riverock.dbrevision.annotation.schema.db.DbSequence> getSequnceList(String schemaPattern)
- Specified by:
getSequnceList in class org.riverock.dbrevision.db.Database
getViewText
public String getViewText(org.riverock.dbrevision.annotation.schema.db.DbView view)
- Specified by:
getViewText in class org.riverock.dbrevision.db.Database
setLongVarbinary
public void setLongVarbinary(PreparedStatement ps,
int index,
org.riverock.dbrevision.annotation.schema.db.DbDataFieldData fieldData)
- Specified by:
setLongVarbinary in class org.riverock.dbrevision.db.Database
setLongVarchar
public void setLongVarchar(PreparedStatement ps,
int index,
org.riverock.dbrevision.annotation.schema.db.DbDataFieldData fieldData)
- Specified by:
setLongVarchar in class org.riverock.dbrevision.db.Database
getClobField
public String getClobField(ResultSet rs,
String nameFeld,
int maxLength)
- Specified by:
getClobField in class org.riverock.dbrevision.db.Database
testExceptionTableNotFound
public boolean testExceptionTableNotFound(Exception e)
- Specified by:
testExceptionTableNotFound in class org.riverock.dbrevision.db.Database
testExceptionIndexUniqueKey
public boolean testExceptionIndexUniqueKey(Exception e,
String index)
- Specified by:
testExceptionIndexUniqueKey in class org.riverock.dbrevision.db.Database
testExceptionIndexUniqueKey
public boolean testExceptionIndexUniqueKey(Exception e)
- Specified by:
testExceptionIndexUniqueKey in class org.riverock.dbrevision.db.Database
testExceptionTableExists
public boolean testExceptionTableExists(Exception e)
- Specified by:
testExceptionTableExists in class org.riverock.dbrevision.db.Database
testExceptionViewExists
public boolean testExceptionViewExists(Exception e)
- Specified by:
testExceptionViewExists in class org.riverock.dbrevision.db.Database
testExceptionSequenceExists
public boolean testExceptionSequenceExists(Exception e)
- Specified by:
testExceptionSequenceExists in class org.riverock.dbrevision.db.Database
testExceptionConstraintExists
public boolean testExceptionConstraintExists(Exception e)
- Specified by:
testExceptionConstraintExists in class org.riverock.dbrevision.db.Database
getMaxLengthStringField
public int getMaxLengthStringField()
- Specified by:
getMaxLengthStringField in class org.riverock.dbrevision.db.Database
Copyright © 2008 Riverock community. All Rights Reserved.