Package org.apache.torque.adapter
Class NoneAdapter
java.lang.Object
org.apache.torque.adapter.AbstractAdapter
org.apache.torque.adapter.NoneAdapter
- All Implemented Interfaces:
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 $
- Author:
- Jon S. Stevens, Brett McLaughlin
- See Also:
-
Field Summary
Fields inherited from interface org.apache.torque.adapter.Adapter
ADAPTER_KEY, AUTODETECT_ADAPTER, DRIVER_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIDMethodSQL(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.booleanReturns whether the database can natively limit the size of the ResultSet of a query.booleanReturns 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.voidunlockTable(Connection con, String table) Unlocks the specified table.Methods inherited from class org.apache.torque.adapter.AbstractAdapter
escapeText, generateLimits, getStringDelimiter, getUpdateLockClause, ignoreCaseInOrderBy, setCapabilities, useEscapeClauseForLike, useGetGeneratedKeys, useIlike, useMinusForExcept
-
Constructor Details
-
NoneAdapter
protected NoneAdapter()Empty protected constructor.
-
-
Method Details
-
toUpperCase
This method is used to ignore case.- Specified by:
toUpperCasein interfaceAdapter- Specified by:
toUpperCasein classAbstractAdapter- Parameters:
in- The string to transform to upper case.- Returns:
- The upper case string.
-
ignoreCase
This method is used to ignore case.- Specified by:
ignoreCasein interfaceAdapter- Specified by:
ignoreCasein classAbstractAdapter- Parameters:
in- The string whose case to ignore.- Returns:
- The string in a case that can be ignored.
-
getIDMethodType
Description copied from class:AbstractAdapterReturns the constant from theIDMethodinterface denoting which type of primary key generation method this type of RDBMS uses.- Specified by:
getIDMethodTypein interfaceAdapter- Specified by:
getIDMethodTypein classAbstractAdapter- Returns:
- IDMethod constant
- See Also:
-
getIDMethodSQL
Description copied from class:AbstractAdapterReturns SQL used to get the most recently inserted primary key. Databases which have no support for this returnnull.- Specified by:
getIDMethodSQLin interfaceAdapter- Specified by:
getIDMethodSQLin classAbstractAdapter- Parameters:
obj- Information used for key generation.- Returns:
- The most recently inserted database key.
- See Also:
-
lockTable
Locks the specified table.- Specified by:
lockTablein interfaceAdapter- Specified by:
lockTablein classAbstractAdapter- Parameters:
con- The JDBC connection to use.table- The name of the table to lock.- Throws:
SQLException- No Statement could be created or executed.
-
unlockTable
Unlocks the specified table.- Specified by:
unlockTablein interfaceAdapter- Specified by:
unlockTablein classAbstractAdapter- Parameters:
con- The JDBC connection to use.table- The name of the table to unlock.- Throws:
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.- Specified by:
supportsNativeLimitin interfaceAdapter- Overrides:
supportsNativeLimitin classAbstractAdapter- Returns:
- 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.- Specified by:
supportsNativeOffsetin interfaceAdapter- Overrides:
supportsNativeOffsetin classAbstractAdapter- Returns:
- true if the database natively supports returning results starting at an offset position other than 0.
-