|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.jdbc.sql.DBDictionary
org.apache.openjpa.jdbc.sql.FoxProDictionary
public class 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:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.openjpa.jdbc.sql.DBDictionary |
---|
DBDictionary.SerializedData |
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.jdbc.sql.JoinSyntaxes |
---|
SYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL |
Constructor Summary | |
---|---|
FoxProDictionary()
|
Method Summary | |
---|---|
protected java.lang.String |
appendSize(Column col,
java.lang.String typeName)
Helper method to add size properties to the specified type. |
Column[] |
getColumns(java.sql.DatabaseMetaData meta,
java.lang.String catalog,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String columnName,
java.sql.Connection conn)
Reflect on the schema to find columns matching the given table and column patterns. |
java.lang.String[] |
getCreateIndexSQL(Index index)
Return a series of SQL statements to create the given index. |
protected java.lang.String |
getPrimaryKeyConstraintSQL(PrimaryKey pk)
Return the declaration SQL for the given primary key. |
PrimaryKey[] |
getPrimaryKeys(java.sql.DatabaseMetaData meta,
java.lang.String catalog,
java.lang.String schemaName,
java.lang.String tableName,
java.sql.Connection conn)
Reflect on the schema to find primary keys for the given table pattern. |
java.lang.String |
getString(java.sql.ResultSet rs,
int column)
Convert the specified column of the SQL ResultSet to the proper java type. |
void |
setNull(java.sql.PreparedStatement stmnt,
int idx,
int colType,
Column col)
Set the given value as a parameters to the statement. |
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 java.lang.String getString(java.sql.ResultSet rs, int column) throws java.sql.SQLException
DBDictionary
getString
in class DBDictionary
java.sql.SQLException
public void setNull(java.sql.PreparedStatement stmnt, int idx, int colType, Column col) throws java.sql.SQLException
DBDictionary
Types
.
setNull
in class DBDictionary
java.sql.SQLException
protected java.lang.String appendSize(Column col, java.lang.String typeName)
DBDictionary
fixedSizeTypeNameSet
).
appendSize
in class DBDictionary
protected java.lang.String getPrimaryKeyConstraintSQL(PrimaryKey pk)
DBDictionary
DBDictionary.getCreateTableSQL(org.apache.openjpa.jdbc.schema.Table)
and
DBDictionary.getAddPrimaryKeySQL(org.apache.openjpa.jdbc.schema.PrimaryKey)
. Returns
CONSTRAINT <pk name> PRIMARY KEY (<col list>)
by default.
getPrimaryKeyConstraintSQL
in class DBDictionary
public java.lang.String[] getCreateIndexSQL(Index index)
DBDictionary
CREATE [UNIQUE] INDEX <index name> ON <table name>
(<col list>)
by default.
getCreateIndexSQL
in class DBDictionary
public Column[] getColumns(java.sql.DatabaseMetaData meta, java.lang.String catalog, java.lang.String schemaName, java.lang.String tableName, java.lang.String columnName, java.sql.Connection conn) throws java.sql.SQLException
DBDictionary
getColumns
in class DBDictionary
java.sql.SQLException
public PrimaryKey[] getPrimaryKeys(java.sql.DatabaseMetaData meta, java.lang.String catalog, java.lang.String schemaName, java.lang.String tableName, java.sql.Connection conn) throws java.sql.SQLException
DBDictionary
getPrimaryKeys
in class DBDictionary
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |