Package org.apache.torque.adapter
Klasse HsqldbAdapter
java.lang.Object
org.apache.torque.adapter.AbstractAdapter
org.apache.torque.adapter.HsqldbAdapter
- Alle implementierten Schnittstellen:
Serializable,Adapter
This is used to connect to Hsqldb databases.
http://hsqldb.org/
- Version:
- $Id: HsqldbAdapter.java 1848527 2018-12-09 16:27:22Z tv $
- Autor:
- Christopher Elkins
- Siehe auch:
-
Feldübersicht
Von Schnittstelle geerbte Felder org.apache.torque.adapter.Adapter
ADAPTER_KEY, AUTODETECT_ADAPTER, DRIVER_KEY -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanThis method is for the SqlExpression.quoteAndEscape rules.voidgenerateLimits(Query query, long offset, int limit) Generate a LIMIT limit OFFSET offset clause if offset > 0 or an LIMIT limit clause if limit is > 0 and offset is 0.getIDMethodSQL(Object obj) Returns SQL used to get the most recently inserted primary key.Returns the constant from theIDMethodinterface denoting which type of primary key generation method this type of RDBMS uses.ignoreCase(String in) This method is used to ignore case.voidlockTable(Connection con, String table) Locks the specified table.toUpperCase(String in) This method is used to ignore case.voidunlockTable(Connection con, String table) Unlocks the specified table.booleanWhether an escape clause in like should be used.Von Klasse geerbte Methoden org.apache.torque.adapter.AbstractAdapter
getStringDelimiter, getUpdateLockClause, ignoreCaseInOrderBy, setCapabilities, supportsNativeLimit, supportsNativeOffset, useGetGeneratedKeys, useIlike, useMinusForExcept
-
Konstruktordetails
-
HsqldbAdapter
protected HsqldbAdapter()Constructor.
-
-
Methodendetails
-
toUpperCase
This method is used to ignore case.- Angegeben von:
toUpperCasein SchnittstelleAdapter- Angegeben von:
toUpperCasein KlasseAbstractAdapter- Parameter:
in- The string to transform to upper case.- Gibt zurück:
- The upper case string.
-
ignoreCase
This method is used to ignore case.- Angegeben von:
ignoreCasein SchnittstelleAdapter- Angegeben von:
ignoreCasein KlasseAbstractAdapter- Parameter:
in- The string whose case to ignore.- Gibt zurück:
- The string in a case that can be ignored.
-
getIDMethodType
Beschreibung aus Klasse kopiert:AbstractAdapterReturns the constant from theIDMethodinterface denoting which type of primary key generation method this type of RDBMS uses.- Angegeben von:
getIDMethodTypein SchnittstelleAdapter- Angegeben von:
getIDMethodTypein KlasseAbstractAdapter- Gibt zurück:
- IDMethod constant
- Siehe auch:
-
getIDMethodSQL
Beschreibung aus Klasse kopiert:AbstractAdapterReturns SQL used to get the most recently inserted primary key. Databases which have no support for this returnnull.- Angegeben von:
getIDMethodSQLin SchnittstelleAdapter- Angegeben von:
getIDMethodSQLin KlasseAbstractAdapter- Parameter:
obj- Information used for key generation.- Gibt zurück:
- The most recently inserted database key.
- Siehe auch:
-
lockTable
Locks the specified table.- Angegeben von:
lockTablein SchnittstelleAdapter- Angegeben von:
lockTablein KlasseAbstractAdapter- Parameter:
con- The JDBC connection to use.table- The name of the table to lock.- Löst aus:
SQLException- No Statement could be created or executed.
-
unlockTable
Unlocks the specified table.- Angegeben von:
unlockTablein SchnittstelleAdapter- Angegeben von:
unlockTablein KlasseAbstractAdapter- Parameter:
con- The JDBC connection to use.table- The name of the table to unlock.- Löst aus:
SQLException- No Statement could be created or executed.
-
escapeText
public boolean escapeText()This method is for the SqlExpression.quoteAndEscape rules. The rule is, any string in a SqlExpression with a BACKSLASH will either be changed to "\\" or left as "\".- Angegeben von:
escapeTextin SchnittstelleAdapter- Setzt außer Kraft:
escapeTextin KlasseAbstractAdapter- Gibt zurück:
- false.
-
useEscapeClauseForLike
public boolean useEscapeClauseForLike()Whether an escape clause in like should be used. Example : select * from AUTHOR where AUTHOR.NAME like '\_%' ESCAPE '\'; HSQLDB needs this, so this implementation always returnstrue.- Angegeben von:
useEscapeClauseForLikein SchnittstelleAdapter- Setzt außer Kraft:
useEscapeClauseForLikein KlasseAbstractAdapter- Gibt zurück:
- whether the escape clause should be appended or not.
-
generateLimits
Generate a LIMIT limit OFFSET offset clause if offset > 0 or an LIMIT limit clause if limit is > 0 and offset is 0.- Angegeben von:
generateLimitsin SchnittstelleAdapter- Setzt außer Kraft:
generateLimitsin KlasseAbstractAdapter- Parameter:
query- The query to modifyoffset- the offset Valuelimit- the limit Value
-