|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.adapter.AbstractAdapter
org.apache.torque.adapter.HsqldbAdapter
public class HsqldbAdapter
This is used to connect to Hsqldb databases. http://hsqldb.org/
| Field Summary |
|---|
| Fields inherited from interface org.apache.torque.adapter.Adapter |
|---|
ADAPTER_KEY, AUTODETECT_ADAPTER, DRIVER_KEY |
| Constructor Summary | |
|---|---|
protected |
HsqldbAdapter()
Constructor. |
| Method Summary | |
|---|---|
boolean |
escapeText()
This method is for the SqlExpression.quoteAndEscape rules. |
String |
getIDMethodSQL(Object obj)
Returns SQL used to get the most recently inserted primary key. |
IDMethod |
getIDMethodType()
Returns the constant from the IDMethod interface denoting which
type of primary key generation method this type of RDBMS uses. |
String |
ignoreCase(String in)
This method is used to ignore case. |
String |
ignoreCaseInOrderBy(String in)
This method is used to ignore case in an ORDER BY clause. |
void |
lockTable(Connection con,
String table)
Locks the specified table. |
String |
toUpperCase(String in)
This method is used to ignore case. |
void |
unlockTable(Connection con,
String table)
Unlocks the specified table. |
boolean |
useEscapeClauseForLike()
Whether an escape clause in like should be used. |
| Methods inherited from class org.apache.torque.adapter.AbstractAdapter |
|---|
generateLimits, getStringDelimiter, getUpdateLockClause, supportsNativeLimit, supportsNativeOffset, useIlike |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected HsqldbAdapter()
| Method Detail |
|---|
public String toUpperCase(String in)
toUpperCase in interface AdaptertoUpperCase in class AbstractAdapterin - The string to transform to upper case.
public String ignoreCase(String in)
ignoreCase in interface AdapterignoreCase in class AbstractAdapterin - The string whose case to ignore.
public IDMethod getIDMethodType()
AbstractAdapterIDMethod interface denoting which
type of primary key generation method this type of RDBMS uses.
getIDMethodType in interface AdaptergetIDMethodType in class AbstractAdapterAdapter.getIDMethodType()public String ignoreCaseInOrderBy(String in)
AbstractAdapter
ignoreCaseInOrderBy in interface AdapterignoreCaseInOrderBy in class AbstractAdapterin - The string whose case to ignore.
Adapter.ignoreCaseInOrderBy(String)public String getIDMethodSQL(Object obj)
AbstractAdapternull.
getIDMethodSQL in interface AdaptergetIDMethodSQL in class AbstractAdapterobj - Information used for key generation.
Adapter.getIDMethodSQL(Object obj)
public void lockTable(Connection con,
String table)
throws SQLException
lockTable in interface AdapterlockTable in class AbstractAdaptercon - The JDBC connection to use.table - The name of the table to lock.
SQLException - No Statement could be created or executed.
public void unlockTable(Connection con,
String table)
throws SQLException
unlockTable in interface AdapterunlockTable in class AbstractAdaptercon - The JDBC connection to use.table - The name of the table to unlock.
SQLException - No Statement could be created or executed.public boolean escapeText()
escapeText in interface AdapterescapeText in class AbstractAdapterpublic boolean useEscapeClauseForLike()
true.
useEscapeClauseForLike in interface AdapteruseEscapeClauseForLike in class AbstractAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||