|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary
|
+--com.solarmetric.rd.kodo.impl.jdbc.schema.dict.OracleDictionary
Dictionary for Oracle.
| Field Summary |
| Fields inherited from class com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary |
CENTI, DECI, MICRO, MILLI, NANO, SEC |
| Constructor Summary | |
OracleDictionary()
|
|
| Method Summary | |
boolean |
generateForeignKeys(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup group,
java.lang.String schemaName,
java.lang.String tableName,
java.sql.Connection conn,
java.sql.DatabaseMetaData meta)
By default, the SchemaGenerator uses JDBC database metadata
to reflect on the schema. |
boolean |
generateIndexes(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup group,
java.lang.String schemaName,
java.lang.String tableName,
java.sql.Connection conn,
java.sql.DatabaseMetaData meta)
By default, the SchemaGenerator uses JDBC database metadata
to reflect on the schema. |
boolean |
generatePrimaryKeys(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup group,
java.lang.String schemaName,
java.lang.String tableName,
java.sql.Connection conn,
java.sql.DatabaseMetaData meta)
By default, the SchemaGenerator uses JDBC database metadata
to reflect on the schema. |
java.lang.String |
getClobString(java.sql.ResultSet rs,
int column)
Convert the specified column of the SQL ResultSet to the proper java type. |
int |
getJDBCType(java.lang.String typeName)
Return the corresponding JDBC type for a given unhandled type (e.g. |
java.lang.String |
getPlatform()
Return the database platform for this dictionary. |
int |
getPreferredType(int type)
Return the preferred Types type for the given one. |
com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping |
replaceMapping(com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping mapping)
Replace the given mapping with one suited to this database, or return the original if no replacement is needed. |
com.solarmetric.rd.kodo.impl.jdbc.meta.MappingFactory |
replaceMappingFactory(com.solarmetric.rd.kodo.impl.jdbc.meta.MappingFactory factory)
Replace the given factory with one suited to this database, or return the original if no replacement is needed. |
com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaFactory |
replaceSchemaFactory(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaFactory factory)
Replace the given factory with one suited to this database, or return the original if no replacement is needed. |
void |
setNull(java.sql.PreparedStatement stmnt,
int idx,
int colType)
Set the given value as a parameters to the statement. |
boolean |
supportsUpdateCountsForBatch()
Return true if the database returns meaningful update counts on batched statements. |
com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer |
toSelect(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer select,
java.lang.String tables,
com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer where,
com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer order,
boolean distinct,
boolean forUpdate)
Create a SELECT statement for this database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OracleDictionary()
| Method Detail |
public java.lang.String getPlatform()
DBDictionary
getPlatform in class DBDictionarypublic boolean supportsUpdateCountsForBatch()
DBDictionary
supportsUpdateCountsForBatch in class DBDictionarypublic int getPreferredType(int type)
DBDictionaryTypes type for the given one. Returns
the given type by default.
getPreferredType in class DBDictionarypublic int getJDBCType(java.lang.String typeName)
DBDictionaryTypes.OTHER). Currently, the system
will only query on OTHER.
Returns Types.OTHER by default.
getJDBCType in class DBDictionarytypeName - corresponds to DatabaseMetaData.getColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
TYPE_NAME column
public com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer toSelect(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer select,
java.lang.String tables,
com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer where,
com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer order,
boolean distinct,
boolean forUpdate)
DBDictionary
toSelect in class DBDictionary
public void setNull(java.sql.PreparedStatement stmnt,
int idx,
int colType)
throws java.sql.SQLException
DBDictionaryTypes.
setNull in class DBDictionaryjava.sql.SQLException
public java.lang.String getClobString(java.sql.ResultSet rs,
int column)
throws java.sql.SQLException
DBDictionary
getClobString in class DBDictionaryjava.sql.SQLException
public boolean generatePrimaryKeys(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup group,
java.lang.String schemaName,
java.lang.String tableName,
java.sql.Connection conn,
java.sql.DatabaseMetaData meta)
throws java.sql.SQLException
DBDictionarySchemaGenerator uses JDBC database metadata
to reflect on the schema. If this method is implemented, it will
be used instead. Return true if this method is implemented. Returns
false by default.
generatePrimaryKeys in class DBDictionarygroup - the schema group to add primary keys toschemaName - the name pattern of the schema(s) to generate,
or null for all schemastableName - the name pattern of the table(s) to generate, or
null for all tables
java.sql.SQLException
public boolean generateIndexes(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup group,
java.lang.String schemaName,
java.lang.String tableName,
java.sql.Connection conn,
java.sql.DatabaseMetaData meta)
throws java.sql.SQLException
DBDictionarySchemaGenerator uses JDBC database metadata
to reflect on the schema. If this method is implemented, it will
be used instead. Return true if this method is implemented. Returns
false by default.
generateIndexes in class DBDictionarygroup - the schema group to add indexes toschemaName - the name pattern of the schema(s) to generate,
or null for all schemastableName - the name pattern of the table(s) to generate, or
null for all tables
java.sql.SQLException
public boolean generateForeignKeys(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaGroup group,
java.lang.String schemaName,
java.lang.String tableName,
java.sql.Connection conn,
java.sql.DatabaseMetaData meta)
throws java.sql.SQLException
DBDictionarySchemaGenerator uses JDBC database metadata
to reflect on the schema. If this method is implemented, it will
be used instead. Return true if this method is implemented. Returns
false by default.
generateForeignKeys in class DBDictionarygroup - the schema group to add foreign keys toschemaName - the name pattern of the schema(s) to generate,
or null for all schemastableName - the name pattern of the table(s) to generate, or
null for all tables
java.sql.SQLExceptionpublic com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping replaceMapping(com.solarmetric.rd.kodo.impl.jdbc.meta.FieldMapping mapping)
DBDictionary
replaceMapping in class DBDictionarypublic com.solarmetric.rd.kodo.impl.jdbc.meta.MappingFactory replaceMappingFactory(com.solarmetric.rd.kodo.impl.jdbc.meta.MappingFactory factory)
DBDictionary
replaceMappingFactory in class DBDictionarypublic com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaFactory replaceSchemaFactory(com.solarmetric.rd.kodo.impl.jdbc.schema.SchemaFactory factory)
DBDictionary
replaceSchemaFactory in class DBDictionary
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||