|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--kodo.jdbc.sql.DBDictionary
|
+--kodo.jdbc.sql.FoxProDictionary
Dictionary for Visual FoxPro via DataDirect SequeLink and DataDirect ODBC FoxPro driver. This will not work with any other combination of JDBC/ODBC server and ODBC driver.
FoxPro has the following limitations:
| Fields inherited from class kodo.jdbc.sql.DBDictionary |
CENTI, DECI, MICRO, MILLI, NANO, SCHEMA_CASE_DEFAULT, SCHEMA_CASE_LOWER, SCHEMA_CASE_PRESERVE, SCHEMA_CASE_UPPER, SEC |
| Constructor Summary | |
FoxProDictionary()
|
|
| Method Summary | |
protected String |
appendSize(Column col,
String typeName)
FoxPro does not like unsized column declarations. |
void |
configureReflectedColumn(Column col,
String typeName)
Configure the specified column with the typeName from the DatabaseMetaData. |
ColumnInfo[] |
getColumns(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
String columnName,
Connection conn)
Return a result set in the form expected by DatabaseMetaData.getColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String). |
String[] |
getCreateIndexSQL(Index index)
Return a series of SQL statements to create the given index. |
ForeignKeyInfo[] |
getImportedKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
Return a result set in the form expected by DatabaseMetaData.getImportedKeys(java.lang.String, java.lang.String, java.lang.String), though only the
PKTABLE_SCHEM, PKTABLE_NAME, PKCOLUMN_NAME, FKTABLE_SCHEM,
FKTABLE_NAME, FKCOLUMN_NAME, KEY_SEQ, DELETE_RULE, FK_NAME,
DEFERRABILITY columns are required. |
int |
getMaxCharacterFieldLength()
Returns the maximum number of characters a VARCHAR type field can hold. |
int |
getMaxPrimaryKeyNameLength()
Returns the maximum number of characters in a primary key name for this database. |
protected String |
getPrimaryKeyConstraintSQL(PrimaryKey pk)
Return the declaration SQL for the given primary key. |
PrimaryKeyInfo[] |
getPrimaryKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
Return an array of PrimaryKeyInfo for the specified
schema objects. |
String |
getString(ResultSet rs,
int column)
FoxPro doesn't auto-truncate values. |
void |
setNull(PreparedStatement stmnt,
int idx,
int colType)
Ensure that Blob/Clob is handled with safe methods. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FoxProDictionary()
| Method Detail |
public String getString(ResultSet rs,
int column)
throws SQLException
getString in class DBDictionary
public void setNull(PreparedStatement stmnt,
int idx,
int colType)
throws SQLException
setNull in class DBDictionary
public void configureReflectedColumn(Column col,
String typeName)
DBDictionaryDatabaseMetaData.configureReflectedColumn in class DBDictionarykodo.jdbc.sql.DBDictionarycol - the Column to configuretypeName - the TYPE_NAME as reported by the metadata
protected String appendSize(Column col,
String typeName)
appendSize in class DBDictionary
public ColumnInfo[] getColumns(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
String columnName,
Connection conn)
throws SQLException
DBDictionaryDatabaseMetaData.getColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String).getColumns in class DBDictionaryprotected String getPrimaryKeyConstraintSQL(PrimaryKey pk)
DBDictionaryDBDictionary.getCreateTableSQL(kodo.jdbc.schema.Table) and
DBDictionary.getAddPrimaryKeySQL(kodo.jdbc.schema.PrimaryKey). Returns
CONSTRAINT <pk name> PRIMARY KEY (<col list>)
by default.getPrimaryKeyConstraintSQL in class DBDictionary
public PrimaryKeyInfo[] getPrimaryKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
throws SQLException
DBDictionaryPrimaryKeyInfo for the specified
schema objects.getPrimaryKeys in class DBDictionary
public ForeignKeyInfo[] getImportedKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
throws SQLException
DBDictionaryDatabaseMetaData.getImportedKeys(java.lang.String, java.lang.String, java.lang.String), though only the
PKTABLE_SCHEM, PKTABLE_NAME, PKCOLUMN_NAME, FKTABLE_SCHEM,
FKTABLE_NAME, FKCOLUMN_NAME, KEY_SEQ, DELETE_RULE, FK_NAME,
DEFERRABILITY columns are required.getImportedKeys in class DBDictionarypublic int getMaxPrimaryKeyNameLength()
DBDictionarygetMaxPrimaryKeyNameLength in class DBDictionarypublic int getMaxCharacterFieldLength()
DBDictionarygetMaxCharacterFieldLength in class DBDictionarypublic String[] getCreateIndexSQL(Index index)
DBDictionaryCREATE [UNIQUE] INDEX <index name> ON <table name>
(<col list>) by default.getCreateIndexSQL in class DBDictionary
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||