|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.triactive.jdo.store.adapter.DatabaseAdapter com.triactive.jdo.store.adapter.HsqldbAdapter
Provides methods for adapting SQL language elements to the hsqldb database.
Currently this adapter is just an untested placeholder.
Field Summary |
Fields inherited from class com.triactive.jdo.store.adapter.DatabaseAdapter |
dbid, identifierQuoteString, keywords, maxCatalogNameLength, maxColumnNameLength, maxConstraintNameLength, maxCorrelationNameLength, maxIndexNameLength, maxSchemaNameLength, maxTableNameLength, storesLowerCaseIdentifiers, storesUpperCaseIdentifiers, supportsCorrelatedSubqueries, supportsGroupByUnrelated, supportsOrderByUnrelated, supportsSubqueriesInExists, supportsSubqueriesInIns, typeMappings, types |
Constructor Summary | |
HsqldbAdapter()
|
Method Summary | |
protected DatabaseIdentifier |
getBestIdentifyingPatterns()
Returns a database identifier containing patterns with which to identify which databases are best supported by this adapter. |
java.lang.String |
getDropTableStatement(BaseTable table)
Returns the appropriate SQL to drop the given table. |
boolean |
supportsDeferredConstraints()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HsqldbAdapter()
Method Detail |
protected DatabaseIdentifier getBestIdentifyingPatterns()
DatabaseAdapter
DatabaseAdapter.isBestAdapterFor(com.triactive.jdo.store.adapter.DatabaseIdentifier, java.sql.DatabaseMetaData)
.
Overriding this method is a simple but fairly flexible way for subclasses
to define which database(s) they support.
The default implementation in this class returns patterns that match the product name against the following regular expression:
If the vendor ID is a suitably unique keyword that would always be expected to occur in the product name of the target database (and to not occur in any others) then no other methods need to be overridden in order for the right adapter subclass to get selected."(?is).*" + getVendorID() + ".*"
getBestIdentifyingPatterns
in class DatabaseAdapter
DatabaseAdapter.getVendorID()
,
DatabaseIdentifier.matches(com.triactive.jdo.store.adapter.DatabaseIdentifier)
public boolean supportsDeferredConstraints()
supportsDeferredConstraints
in class DatabaseAdapter
public java.lang.String getDropTableStatement(BaseTable table)
DatabaseAdapter
DROP TABLE FOO CASCADE
getDropTableStatement
in class DatabaseAdapter
table
- The table to drop.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |