Package org.apache.torque.adapter
Klasse NoneAdapter
java.lang.Object
org.apache.torque.adapter.AbstractAdapter
org.apache.torque.adapter.NoneAdapter
- Alle implementierten Schnittstellen:
Serializable
,Adapter
This DatabaseHandler is used when you do not have a database
installed.
- Version:
- $Id: NoneAdapter.java 1848527 2018-12-09 16:27:22Z tv $
- Autor:
- Jon S. Stevens, Brett McLaughlin
- 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 TypMethodeBeschreibunggetIDMethodSQL
(Object obj) Returns SQL used to get the most recently inserted primary key.Returns the constant from theIDMethod
interface denoting which type of primary key generation method this type of RDBMS uses.ignoreCase
(String in) This method is used to ignore case.void
lockTable
(Connection con, String table) Locks the specified table.boolean
Returns whether the database can natively limit the size of the ResultSet of a query.boolean
Returns whether the database natively supports returning results starting at an offset position other than 0.toUpperCase
(String in) This method is used to ignore case.void
unlockTable
(Connection con, String table) Unlocks the specified table.Von Klasse geerbte Methoden org.apache.torque.adapter.AbstractAdapter
escapeText, generateLimits, getStringDelimiter, getUpdateLockClause, ignoreCaseInOrderBy, setCapabilities, useEscapeClauseForLike, useGetGeneratedKeys, useIlike, useMinusForExcept
-
Konstruktordetails
-
NoneAdapter
protected NoneAdapter()Empty protected constructor.
-
-
Methodendetails
-
toUpperCase
This method is used to ignore case.- Angegeben von:
toUpperCase
in SchnittstelleAdapter
- Angegeben von:
toUpperCase
in 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:
ignoreCase
in SchnittstelleAdapter
- Angegeben von:
ignoreCase
in 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:AbstractAdapter
Returns the constant from theIDMethod
interface denoting which type of primary key generation method this type of RDBMS uses.- Angegeben von:
getIDMethodType
in SchnittstelleAdapter
- Angegeben von:
getIDMethodType
in KlasseAbstractAdapter
- Gibt zurück:
- IDMethod constant
- Siehe auch:
-
getIDMethodSQL
Beschreibung aus Klasse kopiert:AbstractAdapter
Returns SQL used to get the most recently inserted primary key. Databases which have no support for this returnnull
.- Angegeben von:
getIDMethodSQL
in SchnittstelleAdapter
- Angegeben von:
getIDMethodSQL
in 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:
lockTable
in SchnittstelleAdapter
- Angegeben von:
lockTable
in 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:
unlockTable
in SchnittstelleAdapter
- Angegeben von:
unlockTable
in 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.
-
supportsNativeLimit
public boolean supportsNativeLimit()Returns whether the database can natively limit the size of the ResultSet of a query.- Angegeben von:
supportsNativeLimit
in SchnittstelleAdapter
- Setzt außer Kraft:
supportsNativeLimit
in KlasseAbstractAdapter
- Gibt zurück:
- true if the database natively supports limiting the size of the resultset.
-
supportsNativeOffset
public boolean supportsNativeOffset()Returns whether the database natively supports returning results starting at an offset position other than 0.- Angegeben von:
supportsNativeOffset
in SchnittstelleAdapter
- Setzt außer Kraft:
supportsNativeOffset
in KlasseAbstractAdapter
- Gibt zurück:
- true if the database natively supports returning results starting at an offset position other than 0.
-