com.j256.ormlite.stmt.mapped
Class BaseMappedStatement<T,ID>

java.lang.Object
  extended by com.j256.ormlite.stmt.mapped.BaseMappedStatement<T,ID>
Direct Known Subclasses:
BaseMappedQuery, MappedCreate, MappedDelete, MappedDeleteCollection, MappedUpdate, MappedUpdateId

public abstract class BaseMappedStatement<T,ID>
extends Object

Abstract mapped statement which has common statements used by the subclasses.

Author:
graywatson

Field Summary
protected  FieldType[] argFieldTypes
           
protected  Class<T> clazz
           
protected  FieldType idField
           
protected static Logger logger
           
protected  String statement
           
protected  TableInfo<T,ID> tableInfo
           
 
Constructor Summary
protected BaseMappedStatement(TableInfo<T,ID> tableInfo, String statement, FieldType[] argFieldTypes)
           
 
Method Summary
protected  Object convertIdToFieldObject(ID id)
          Return a field object converted from an id.
protected  Object[] getFieldObjects(Object data)
          Return the array of field objects pulled from the data object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected static Logger logger

tableInfo

protected final TableInfo<T,ID> tableInfo

clazz

protected final Class<T> clazz

idField

protected final FieldType idField

statement

protected final String statement

argFieldTypes

protected final FieldType[] argFieldTypes
Constructor Detail

BaseMappedStatement

protected BaseMappedStatement(TableInfo<T,ID> tableInfo,
                              String statement,
                              FieldType[] argFieldTypes)
Method Detail

getFieldObjects

protected Object[] getFieldObjects(Object data)
                            throws SQLException
Return the array of field objects pulled from the data object.

Throws:
SQLException

convertIdToFieldObject

protected Object convertIdToFieldObject(ID id)
                                 throws SQLException
Return a field object converted from an id.

Throws:
SQLException

toString

public String toString()
Overrides:
toString in class Object


This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.