|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.sql.DBDictionary org.apache.openjpa.jdbc.sql.InterbaseDictionary
public class InterbaseDictionary
Dictionary for Borland Interbase.
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 | |
---|---|
InterbaseDictionary()
|
Method Summary | |
---|---|
protected String |
appendSize(Column col,
String typeName)
Helper method to add size properties to the specified type. |
protected String |
getColumnNameForMetadata(DBIdentifier columnName)
Returns the column name that will be used for obtaining information from DatabaseMetaData . |
protected String |
getColumnNameForMetadata(String columnName)
Returns the column name that will be used for obtaining information from DatabaseMetaData . |
String[] |
getDropColumnSQL(Column column)
Return a series of SQL statements to drop the given column from its table. |
protected String |
getTableNameForMetadata(DBIdentifier tableName)
Returns the table name that will be used for obtaining information from DatabaseMetaData . |
protected String |
getTableNameForMetadata(String tableName)
Returns the table name that will be used for obtaining information from DatabaseMetaData . |
void |
indexOf(SQLBuffer buf,
FilterValue str,
FilterValue find,
FilterValue start)
Invoke this database's indexOf function. |
void |
substring(SQLBuffer buf,
FilterValue str,
FilterValue start,
FilterValue end)
Invoke this database's substring function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterbaseDictionary()
Method Detail |
---|
protected String getTableNameForMetadata(String tableName)
DBDictionary
DatabaseMetaData
.
getTableNameForMetadata
in class DBDictionary
protected String getTableNameForMetadata(DBIdentifier tableName)
DBDictionary
DatabaseMetaData
.
getTableNameForMetadata
in class DBDictionary
protected String getColumnNameForMetadata(String columnName)
DBDictionary
DatabaseMetaData
.
getColumnNameForMetadata
in class DBDictionary
protected String getColumnNameForMetadata(DBIdentifier columnName)
DBDictionary
DatabaseMetaData
.
getColumnNameForMetadata
in class DBDictionary
protected String appendSize(Column col, String typeName)
DBDictionary
fixedSizeTypeNameSet
).
Some databases support "type modifiers", for example the unsigned
"modifier" in MySQL. In these cases the size should go between the type
and the "modifier", instead of after the modifier. For example
CREATE table FOO ( myint INT (10) UNSIGNED . . .) instead of
CREATE table FOO ( myint INT UNSIGNED (10) . . .).
Type modifiers should be added to typeModifierSet
in
subclasses.
appendSize
in class DBDictionary
public void indexOf(SQLBuffer buf, FilterValue str, FilterValue find, FilterValue start)
DBDictionary
indexOf
in class DBDictionary
buf
- the SQL buffer to write the indexOf invocation tostr
- a query value representing the target stringfind
- a query value representing the search stringstart
- a query value representing the start index, or null
to start at the beginningpublic void substring(SQLBuffer buf, FilterValue str, FilterValue start, FilterValue end)
DBDictionary
substring
in class DBDictionary
buf
- the SQL buffer to write the substring invocation tostr
- a query value representing the target stringstart
- a query value representing the start indexend
- a query value representing the end index, or null for nonepublic String[] getDropColumnSQL(Column column)
DBDictionary
ALTER TABLE <table name> DROP COLUMN <col name>
by default.
getDropColumnSQL
in class DBDictionary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |