|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary
|
+--com.solarmetric.kodo.impl.jdbc.schema.dict.SQLServerDictionary
Implementation of the DBDictionary interface for MS SQLServer.
| Fields inherited from class com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary |
CENTI, DECI, meta, MICRO, MILLI, NANO, NUMBER_FORMAT, SEC |
| Constructor Summary | |
SQLServerDictionary()
|
|
| Method Summary | |
void |
blobToPreparedParameter(PreparedStatement st,
int index,
Object val)
|
void |
clobToPreparedParameter(PreparedStatement st,
int index,
Object val)
|
void |
createdSQLExecutionManager(SQLExecutionManager sqlem)
Perform any necessary configuration of the newly created SQLExecutionManager. |
protected SQLBuffer |
getColumnDeclaration(Column column)
This method can be overridden if the database does not support standard column declarations, which are in the form: <column-name> <sql-type> [NOT NULL]. |
SQLBuffer[] |
getDropColumnSQL(Column column)
Return a series of SQL statements to drop the given column from its table, including the deletion of any indices from the column. |
protected SQLBuffer |
getDropIndexSQL(Index index)
Return the SQL to drop an index. |
long |
getNextAutoIncrementValue(Table table,
SQLExecutionManager sqlem)
Returns the next auto-increment value for a given table. |
String |
getPlatform()
Return the title of this database platform, used for display only. |
protected String |
rebuildTableString(String sql)
|
protected void |
setupSQLTypeMap(SQLTypeMap map)
This is the most commonly overridden method when porting to a new database. |
boolean |
supportsAutoIncrement()
Returns true if this dictionary / database
combination supports auto-incrementing primary-key columns. |
protected String |
tablesToString(String[] array,
boolean update)
|
SQLBuffer |
toSelect(String[] cols,
String[] tables,
SQLBuffer where,
SQLBuffer order,
boolean distinct,
boolean update)
SQLServer uses a non-standard locking mechanism. |
void |
validateConfiguration(JDBCConfiguration conf,
DBMetaData meta)
Raise a warning if the ConnectionURL does not have the special "SelectMethod=cursor" parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLServerDictionary()
| Method Detail |
public String getPlatform()
AbstractDictionarygetPlatform in class AbstractDictionary
public SQLBuffer toSelect(String[] cols,
String[] tables,
SQLBuffer where,
SQLBuffer order,
boolean distinct,
boolean update)
toSelect in class AbstractDictionarycom.solarmetric.kodo.impl.jdbc.schema.DBDictionarycols - list of values the columns to selecttables - list of the tables to select fromwhere - the WHERE conditions; may be null if noneorder - the ORDER BY conditions; may be null if nonedistinct - if true, this should be a SELECT DISTINCT-equivalent
queryupdate - if true this should be a SELECT FOR
UPDATE-equivalent query
protected String tablesToString(String[] array,
boolean update)
protected String rebuildTableString(String sql)
protected void setupSQLTypeMap(SQLTypeMap map)
AbstractDictionarysetupSQLTypeMap in class AbstractDictionaryprotected SQLBuffer getDropIndexSQL(Index index)
AbstractDictionaryDROP INDEX <index-name>getDropIndexSQL in class AbstractDictionarypublic SQLBuffer[] getDropColumnSQL(Column column)
DBDictionarygetDropColumnSQL in class AbstractDictionary
public void clobToPreparedParameter(PreparedStatement st,
int index,
Object val)
throws SQLException
clobToPreparedParameter in class AbstractDictionary
public void blobToPreparedParameter(PreparedStatement st,
int index,
Object val)
throws SQLException
blobToPreparedParameter in class AbstractDictionarypublic void createdSQLExecutionManager(SQLExecutionManager sqlem)
DBDictionarycreatedSQLExecutionManager in class AbstractDictionarypublic boolean supportsAutoIncrement()
DBDictionarytrue if this dictionary / database
combination supports auto-incrementing primary-key columns.supportsAutoIncrement in class AbstractDictionary
public long getNextAutoIncrementValue(Table table,
SQLExecutionManager sqlem)
throws SQLException
DBDictionarygetNextAutoIncrementValue in class AbstractDictionaryprotected SQLBuffer getColumnDeclaration(Column column)
AbstractDictionary<column-name> <sql-type> [NOT NULL].
Where NOT NULL is appended if it is a primary key column.getColumnDeclaration in class AbstractDictionary
public void validateConfiguration(JDBCConfiguration conf,
DBMetaData meta)
validateConfiguration in class AbstractDictionary
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||