|
SolarMetric Kodo JDO 3.1.6 generated on August 25 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.PostgresDictionary
Dictionary for Postgres.
| 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 | |
PostgresDictionary()
|
|
| Method Summary | |
Connection |
decorate(Connection conn)
Decorate the given connection if needed. |
byte |
getByte(ResultSet rs,
int column)
PostgreSQL does not perform automatic conversions, so attempting to get a whole number out of a decimal will throw a SQLException. |
Date |
getDate(ResultSet rs,
int column)
Convert the specified column of the SQL ResultSet to the proper java type. |
protected int |
getDatePrecision()
Set to the precision of timestamps in the data store. |
String[] |
getDropColumnSQL()
|
int |
getInt(ResultSet rs,
int column)
PostgreSQL does not perform automatic conversions, so attempting to get a whole number out of a decimal will throw a SQLException. |
long |
getLong(ResultSet rs,
int column)
PostgreSQL does not perform automatic conversions, so attempting to get a whole number out of a decimal will throw a SQLException. |
int |
getPreferredType(int type)
Return the preferred Types type for the given one. |
short |
getShort(ResultSet rs,
int column)
PostgreSQL does not perform automatic conversions, so attempting to get a whole number out of a decimal will throw a SQLException. |
boolean |
isSystemIndex(String name,
Table table)
This method is used to filter system indexes from database metadata. |
boolean |
isSystemTable(String name,
String schema,
boolean targetSchema)
This method is used to filter system tables from database metadata. |
void |
setBoolean(PreparedStatement stmnt,
int idx,
boolean val)
Set the given value as a parameter to the statement. |
void |
setSupportsSetFetchSize(boolean supports)
|
boolean |
supportsSetFetchSize()
|
protected boolean |
supportsSizeInColumnDefinition(Column col,
String name)
Returns true if a schema definition statement supports appending the size after the column type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PostgresDictionary()
| Method Detail |
public Date getDate(ResultSet rs,
int column)
throws SQLException
DBDictionaryTimestamp by default.getDate in class DBDictionary
public byte getByte(ResultSet rs,
int column)
throws SQLException
SQLException.
Fall back to performing manual conversion if the initial get fails.getByte in class DBDictionary
public short getShort(ResultSet rs,
int column)
throws SQLException
SQLException.
Fall back to performing manual conversion if the initial get fails.getShort in class DBDictionary
public int getInt(ResultSet rs,
int column)
throws SQLException
SQLException.
Fall back to performing manual conversion if the initial get fails.getInt in class DBDictionary
public long getLong(ResultSet rs,
int column)
throws SQLException
SQLException.
Fall back to performing manual conversion if the initial get fails.getLong in class DBDictionaryprotected int getDatePrecision()
DBDictionaryDBDictionary.NANO, DBDictionary.MICRO, DBDictionary.MILLI, DBDictionary.CENTI,
DBDictionary.DECI, DBDictionary.SEC. Returns DBDictionary.MILLI by default.getDatePrecision in class DBDictionarypublic String[] getDropColumnSQL()
public int getPreferredType(int type)
DBDictionaryTypes type for the given one. Returns
the given type by default.getPreferredType in class DBDictionary
protected boolean supportsSizeInColumnDefinition(Column col,
String name)
DBDictionarysupportsSizeInColumnDefinition in class DBDictionary
public void setBoolean(PreparedStatement stmnt,
int idx,
boolean val)
throws SQLException
DBDictionarysetBoolean in class DBDictionary
public Connection decorate(Connection conn)
throws SQLException
DBDictionaryDBDictionary.getInitializationSQL() method does
not return null.decorate in class DBDictionary
public boolean isSystemTable(String name,
String schema,
boolean targetSchema)
DBDictionaryisSystemTable in class DBDictionarykodo.jdbc.sql.DBDictionaryname - the table nameschema - the table schema; may be nulltargetSchema - if true, then the given schema was listed by
the user as one of his JDO schemas
public boolean isSystemIndex(String name,
Table table)
DBDictionaryisSystemIndex in class DBDictionarykodo.jdbc.sql.DBDictionaryname - the index nametable - the index tablepublic boolean supportsSetFetchSize()
public void setSupportsSetFetchSize(boolean supports)
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||