|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.is.jrf.HypersonicDatabasePolicy
Instances of this class perform Hypersonic-specific logic and return Hypersonic-specific information.
| Constructor Summary | |
HypersonicDatabasePolicy()
|
|
| Method Summary | |
java.lang.String |
autoIncrementIdentifier()
Hypersonic uses auto-increment for assigning arbitrary primary key ids. |
void |
createSequence(AbstractDomain domain,
JDBCHelper aJDBCHelper)
This method creates a sequence for the domain object. |
java.lang.String |
currentTimestampSQL()
This should return the the SQL to use to have the database return the current timestamp. |
java.lang.Long |
findAutoIncrementId(java.lang.String tableName,
java.lang.String columnName,
JDBCHelper aJDBCHelper)
This method uses a non-standard Hypersonic SQL call. |
java.lang.String |
formatDate(java.sql.Date sqlDate)
The result of this is used in SQL. |
java.lang.String |
formatTimestamp(java.sql.Timestamp ts)
The return value should be in the format that the database recognizes for a timestamp. |
java.lang.String |
outerWhereJoin(java.lang.String mainTableColumn,
java.lang.String joinTableColumn)
Outer WHERE joins are not supported in Hypersonic, so this just returns a normal join. |
java.lang.String |
sequenceSQL(java.lang.String tableName)
Hypersonic uses auto-increment at time of insert instead of sequences. |
java.lang.String |
timestampColumnType()
This method is used when building SQL to create tables. |
java.lang.String |
timestampFunction()
This is the string value (function name) to put into the SQL to tell the database to insert the current timestamp. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HypersonicDatabasePolicy()
| Method Detail |
public java.lang.String sequenceSQL(java.lang.String tableName)
sequenceSQL in interface DatabasePolicytableName - a value of type 'String'
public void createSequence(AbstractDomain domain,
JDBCHelper aJDBCHelper)
throws java.sql.SQLException
DatabasePolicycreateSequence in interface DatabasePolicycom.is.jrf.DatabasePolicydomain - a value of type 'AbstractDomain'aJDBCHelper - a value of type 'JDBCHelper'java.sql.SQLException - if an error occurspublic java.lang.String timestampFunction()
timestampFunction in interface DatabasePolicypublic java.lang.String formatTimestamp(java.sql.Timestamp ts)
formatTimestamp in interface DatabasePolicyts - a value of type 'Timestamp'public java.lang.String formatDate(java.sql.Date sqlDate)
formatDate in interface DatabasePolicysqlDate - a value of type 'java.sql.Date'public java.lang.String currentTimestampSQL()
currentTimestampSQL in interface DatabasePolicypublic java.lang.String autoIncrementIdentifier()
autoIncrementIdentifier in interface DatabasePolicy
public java.lang.Long findAutoIncrementId(java.lang.String tableName,
java.lang.String columnName,
JDBCHelper aJDBCHelper)
findAutoIncrementId in interface DatabasePolicytableName - a value of type 'String'columnName - a value of type 'String'aJDBCHelper - a value of type 'JDBCHelper'
public java.lang.String outerWhereJoin(java.lang.String mainTableColumn,
java.lang.String joinTableColumn)
outerWhereJoin in interface DatabasePolicymainTableColumn - a value of type 'String'joinTableColumn - a value of type 'String'sqlBuffer - a value of type 'StringBuffer'public java.lang.String timestampColumnType()
timestampColumnType in interface DatabasePolicy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||