|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.riverock.dbrevision.db.Database org.riverock.dbrevision.db.impl.OracleDatabase
public class OracleDatabase
Класс OracleDatabase прденазначен для коннекта к оракловской базе данных.
$Id: OracleDatabase.java 1141 2006-12-14 14:43:29Z serg_main $
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.riverock.dbrevision.db.Database |
---|
Database.Family |
Constructor Summary | |
---|---|
OracleDatabase(Connection conn)
|
Method Summary | |
---|---|
void |
addColumn(DbTable table,
DbField field)
|
void |
createForeignKey(DbTable view)
|
void |
createSequence(DbSequence seq)
|
void |
createTable(DbTable table)
|
void |
createView(DbView view)
|
void |
dropConstraint(DbForeignKey impPk)
|
void |
dropSequence(String nameSequence)
|
void |
dropTable(DbTable table)
ALTER TABLE a_test_1 ADD CONSTRAINT a_test_1_fk FOREIGN KEY (id, id_test)& REFERENCES a_test (id_test,id_lang) ON DELETE SET NULL / ALTER TABLE a_test_1 ADD CONSTRAINT a_test_1_fk2 FOREIGN KEY (text1, id_text) REFERENCES a_test_2 (text2,text_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED / |
void |
dropTable(String nameTable)
|
byte[] |
getBlobField(ResultSet rs,
String nameField,
int maxLength)
|
String |
getClobField(ResultSet rs,
String nameField)
|
String |
getClobField(ResultSet rs,
String nameField,
int maxLength)
|
String |
getDefaultSchemaName(DatabaseMetaData databaseMetaData)
|
String |
getDefaultTimestampValue()
|
Database.Family |
getFamily()
get family for this adapter |
int |
getMaxLengthStringField()
|
String |
getOnDeleteSetNull()
|
List<DbSequence> |
getSequnceList(String schemaPattern)
|
String |
getStream(ResultSet rs,
String nameField,
int maxLength)
|
List<DbView> |
getViewList(String schemaPattern,
String tablePattern)
|
String |
getViewText(DbView view)
|
boolean |
isBatchUpdate()
Is this db support batch update? |
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,
DbDataFieldData fieldData)
|
void |
setLongVarchar(PreparedStatement ps,
int index,
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 |
Constructor Detail |
---|
public OracleDatabase(Connection conn)
Method Detail |
---|
public int getMaxLengthStringField()
getMaxLengthStringField
in class Database
public boolean isBatchUpdate()
Database
isBatchUpdate
in class Database
public boolean isNeedUpdateBracket()
isNeedUpdateBracket
in class Database
public boolean isByteArrayInUtf8()
isByteArrayInUtf8
in class Database
public boolean isSchemaSupports()
isSchemaSupports
in class Database
public String getDefaultSchemaName(DatabaseMetaData databaseMetaData)
getDefaultSchemaName
in class Database
public String getClobField(ResultSet rs, String nameField)
getClobField
in class Database
public void createTable(DbTable table)
createTable
in class Database
public void createForeignKey(DbTable view)
createForeignKey
in class Database
public void dropTable(DbTable table)
dropTable
in class Database
public void dropTable(String nameTable)
dropTable
in class Database
public void dropSequence(String nameSequence)
dropSequence
in class Database
public void dropConstraint(DbForeignKey impPk)
dropConstraint
in class Database
public void addColumn(DbTable table, DbField field)
addColumn
in class Database
public String getOnDeleteSetNull()
getOnDeleteSetNull
in class Database
public String getDefaultTimestampValue()
getDefaultTimestampValue
in class Database
public List<DbView> getViewList(String schemaPattern, String tablePattern)
getViewList
in class Database
public List<DbSequence> getSequnceList(String schemaPattern)
getSequnceList
in class Database
public String getViewText(DbView view)
getViewText
in class Database
public void createView(DbView view)
createView
in class Database
public void createSequence(DbSequence seq)
createSequence
in class Database
public void setLongVarbinary(PreparedStatement ps, int index, DbDataFieldData fieldData)
setLongVarbinary
in class Database
public void setLongVarchar(PreparedStatement ps, int index, DbDataFieldData fieldData)
setLongVarchar
in class Database
public byte[] getBlobField(ResultSet rs, String nameField, int maxLength)
getBlobField
in class Database
public String getClobField(ResultSet rs, String nameField, int maxLength)
getClobField
in class Database
rs
- result setnameField
- name of fieldmaxLength
- max length of CLOB field
public String getStream(ResultSet rs, String nameField, int maxLength) throws SQLException, IOException
SQLException
IOException
public boolean testExceptionTableNotFound(Exception e)
testExceptionTableNotFound
in class Database
public boolean testExceptionIndexUniqueKey(Exception e, String index)
testExceptionIndexUniqueKey
in class Database
public boolean testExceptionIndexUniqueKey(Exception e)
testExceptionIndexUniqueKey
in class Database
public boolean testExceptionTableExists(Exception e)
testExceptionTableExists
in class Database
public boolean testExceptionViewExists(Exception e)
testExceptionViewExists
in class Database
public boolean testExceptionSequenceExists(Exception e)
testExceptionSequenceExists
in class Database
public boolean testExceptionConstraintExists(Exception e)
testExceptionConstraintExists
in class Database
public Database.Family getFamily()
getFamily
in class Database
public void setBlobField(String tableName, String fieldName, byte[] bytes, String whereQuery, Object[] objects, int[] fieldTyped)
setBlobField
in class Database
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |