|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.j256.ormlite.db.BaseDatabaseType
com.j256.ormlite.db.OracleDatabaseType
public class OracleDatabaseType
Oracle database type information used to create the tables, etc..
WARNING: I have not tested this unfortunately because of a lack of access to a Oracle instance. Love to get 1-2 hours of access to an database to test/tweak this. Undoubtably is it wrong. Please contact the author if you'd like to help.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.j256.ormlite.db.BaseDatabaseType |
|---|
BaseDatabaseType.BooleanNumberFieldConverter |
| Field Summary |
|---|
| Fields inherited from class com.j256.ormlite.db.BaseDatabaseType |
|---|
booleanConverter |
| Constructor Summary | |
|---|---|
OracleDatabaseType()
|
|
| Method Summary | |
|---|---|
protected void |
appendByteType(StringBuilder sb)
Output the SQL type for a Java byte. |
void |
appendEscapedEntityName(StringBuilder sb,
String word)
Add a entity-name word to the string builder wrapped in the proper characters to escape it. |
protected void |
appendLongType(StringBuilder sb)
Output the SQL type for a Java long. |
protected void |
appendObjectType(StringBuilder sb)
Output the SQL type for a Java object. |
void |
appendSelectNextValFromSequence(StringBuilder sb,
String sequenceName)
Append the SQL necessary to get the next-value from a sequence. |
protected void |
appendStringType(StringBuilder sb,
FieldType fieldType,
int fieldWidth)
Output the SQL type for a Java String. |
protected void |
configureGeneratedIdSequence(StringBuilder sb,
FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
Output the SQL necessary to configure a generated-id column. |
protected void |
configureId(StringBuilder sb,
FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
Output the SQL necessary to configure an id column. |
void |
dropColumnArg(FieldType fieldType,
List<String> statementsBefore,
List<String> statementsAfter)
Takes a FieldType and adds the necessary statements to the before and after lists necessary so that the
dropping of the table will succeed and will clear other associated sequences or other database artifacts |
String |
getDriverClassName()
Return the class name of the database driver. |
String |
getDriverUrlPart()
Return the part in the database URI which identifies the particular database. |
boolean |
isIdSequenceNeeded()
Return true if the database needs a sequence when you use generated IDs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.j256.ormlite.db.DatabaseType |
|---|
appendColumnArg, appendCreateTableSuffix, appendEscapedWord, appendLimitValue, buildDatabaseAccess, convertColumnName, generateIdSequenceName, getCommentLinePrefix, getFieldConverter, isCreateTableReturnsZero, isEntityNamesMustBeUpCase, isLimitAfterSelect, isLimitSqlSupported, isVarcharFieldWidthSupported, loadDriver |
| Constructor Detail |
|---|
public OracleDatabaseType()
| Method Detail |
|---|
public String getDriverUrlPart()
DatabaseType
getDriverUrlPart in interface DatabaseTypepublic String getDriverClassName()
DatabaseType
getDriverClassName in interface DatabaseType
protected void appendStringType(StringBuilder sb,
FieldType fieldType,
int fieldWidth)
BaseDatabaseType
appendStringType in class BaseDatabaseTypeprotected void appendByteType(StringBuilder sb)
BaseDatabaseType
appendByteType in class BaseDatabaseTypeprotected void appendLongType(StringBuilder sb)
BaseDatabaseType
appendLongType in class BaseDatabaseTypeprotected void appendObjectType(StringBuilder sb)
BaseDatabaseType
appendObjectType in class BaseDatabaseType
protected void configureGeneratedIdSequence(StringBuilder sb,
FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
BaseDatabaseType
configureGeneratedIdSequence in class BaseDatabaseType
protected void configureId(StringBuilder sb,
FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
BaseDatabaseType
configureId in class BaseDatabaseType
public void dropColumnArg(FieldType fieldType,
List<String> statementsBefore,
List<String> statementsAfter)
DatabaseTypeFieldType and adds the necessary statements to the before and after lists necessary so that the
dropping of the table will succeed and will clear other associated sequences or other database artifacts
dropColumnArg in interface DatabaseTypedropColumnArg in class BaseDatabaseType
public void appendEscapedEntityName(StringBuilder sb,
String word)
DatabaseType
appendEscapedEntityName in interface DatabaseTypeappendEscapedEntityName in class BaseDatabaseTypepublic boolean isIdSequenceNeeded()
DatabaseType
isIdSequenceNeeded in interface DatabaseTypeisIdSequenceNeeded in class BaseDatabaseType
public void appendSelectNextValFromSequence(StringBuilder sb,
String sequenceName)
DatabaseTypeDatabaseType.isIdSequenceNeeded() is true.
appendSelectNextValFromSequence in interface DatabaseTypeappendSelectNextValFromSequence in class BaseDatabaseType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||