org.datanucleus.store.rdbms.sql.method
Class AbstractSQLMethod
java.lang.Object
org.datanucleus.store.rdbms.sql.method.AbstractSQLMethod
- All Implemented Interfaces:
- SQLMethod
- Direct Known Subclasses:
- ArrayContainsMethod, ArrayIsEmptyMethod, ArraySizeMethod, CoalesceFunction, CollectionContainsMethod, CollectionIsEmptyMethod, CollectionSizeMethod, CountFunction, CurrentDateFunction, CurrentTimeFunction, CurrentTimestampFunction, DateGetDay2Method, DateGetDay3Method, DateGetDayMethod, DateGetHour2Method, DateGetHour3Method, DateGetHour4Method, DateGetHourMethod, DateGetMinute2Method, DateGetMinute3Method, DateGetMinute4Method, DateGetMinuteMethod, DateGetMonth2Method, DateGetMonth3Method, DateGetMonthMethod, DateGetSecond2Method, DateGetSecond3Method, DateGetSecond4Method, DateGetSecondMethod, DateGetYear2Method, DateGetYear3Method, DateGetYearMethod, EnumOrdinalMethod, EnumToStringMethod, IndexFunction, JDOHelperGetObjectIdMethod, JDOHelperGetVersionMethod, ListGetMethod, MapContainsEntryMethod, MapContainsKeyMethod, MapContainsValueMethod, MapGetMethod, MapIsEmptyMethod, MapSizeMethod, MathAbsMethod, MathAcosMethod, MathAsinMethod, MathAtanMethod, MathCeilMethod, MathCosMethod, MathExpMethod, MathFloorMethod, MathLogMethod, MathSinMethod, MathSqrtMethod, MathTanMethod, NullIfFunction, ObjectGetClassMethod, SimpleNumericAggregateMethod, SimpleNumericMethod, SimpleOrderableAggregateMethod, SimpleStringMethod, SQLBooleanMethod, SQLNumericMethod, StringCharAtMethod, StringEndsWithMethod, StringEqualsIgnoreCaseMethod, StringEqualsMethod, StringIndexOf2Method, StringIndexOf3Method, StringIndexOf4Method, StringIndexOf5Method, StringIndexOfMethod, StringLength2Method, StringLength3Method, StringLengthMethod, StringMatchesMethod, StringReplaceAllMethod, StringStartsWith2Method, StringStartsWith3Method, StringStartsWithMethod, StringSubstring2Method, StringSubstring3Method, StringSubstringMethod, StringTranslateMethod, StringTrim2Method, StringTrim3Method
public abstract class AbstractSQLMethod
- extends Object
- implements SQLMethod
Abstract implementation of an SQLMethod. Provides localisation and convenience methods where required.
|
Method Summary |
protected org.datanucleus.store.mapped.mapping.JavaTypeMapping |
getMappingForClass(Class cls)
Accessor for the mapping for a particular class. |
void |
setStatement(SQLStatement stmt)
Method to set the SQLStatement that we are related to. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCALISER
protected static final org.datanucleus.util.Localiser LOCALISER
- Localiser for messages
stmt
protected SQLStatement stmt
exprFactory
protected SQLExpressionFactory exprFactory
clr
protected org.datanucleus.ClassLoaderResolver clr
AbstractSQLMethod
public AbstractSQLMethod()
setStatement
public void setStatement(SQLStatement stmt)
- Description copied from interface:
SQLMethod
- Method to set the SQLStatement that we are related to.
- Specified by:
setStatement in interface SQLMethod
- Parameters:
stmt - The statement
getMappingForClass
protected org.datanucleus.store.mapped.mapping.JavaTypeMapping getMappingForClass(Class cls)
- Accessor for the mapping for a particular class.
For use by subclasses to generate the mapping for use in the returned SQLExpression.
- Parameters:
cls - The class we want a mapping to represent
- Returns:
- The mapping
Copyright © 2012. All Rights Reserved.