org.datanucleus.store.rdbms.sql.method
Class AbstractSQLMethod

java.lang.Object
  extended by org.datanucleus.store.rdbms.sql.method.AbstractSQLMethod
All Implemented Interfaces:
SQLMethod
Direct Known Subclasses:
ArrayContainsMethod, ArrayIsEmptyMethod, ArraySizeMethod, CollectionContainsMethod, CollectionIsEmptyMethod, CollectionSizeMethod, 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, JDOHelperGetObjectIdMethod, JDOHelperGetVersionMethod, MapContainsEntryMethod, MapContainsKeyMethod, MapContainsValueMethod, MapGetMethod, MapIsEmptyMethod, MapSizeMethod, MathAbsMethod, MathAcosMethod, MathAsinMethod, MathAtanMethod, MathCeilMethod, MathCosMethod, MathExpMethod, MathFloorMethod, MathLogMethod, MathSinMethod, MathSqrtMethod, MathTanMethod, SimpleAggregateMethod, SimpleNumericMethod, SimpleStringMethod, StringCharAtMethod, StringEndsWithMethod, StringEqualsMethod, StringIndexOf2Method, StringIndexOf3Method, StringIndexOf4Method, StringIndexOf5Method, StringIndexOfMethod, StringLength2Method, StringLength3Method, StringLengthMethod, StringMatches2Method, StringMatchesMethod, StringStartsWith2Method, StringStartsWith3Method, StringStartsWithMethod, StringSubstring2Method, StringSubstring3Method, StringSubstringMethod, StringTrim2Method

public abstract class AbstractSQLMethod
extends java.lang.Object
implements SQLMethod

Abstract implementation of an SQLMethod. Provides localisation and convenience methods where required.


Field Summary
protected  org.datanucleus.ClassLoaderResolver clr
           
protected  SQLExpressionFactory exprFactory
           
protected static org.datanucleus.util.Localiser LOCALISER
          Localiser for messages
protected  SQLStatement stmt
           
 
Constructor Summary
AbstractSQLMethod()
           
 
Method Summary
protected  org.datanucleus.store.mapped.mapping.JavaTypeMapping getMappingForClass(java.lang.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
 
Methods inherited from interface org.datanucleus.store.rdbms.sql.method.SQLMethod
getExpression
 

Field Detail

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
Constructor Detail

AbstractSQLMethod

public AbstractSQLMethod()
Method Detail

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(java.lang.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 © 2009. All Rights Reserved.