com.j256.ormlite.stmt
Class BaseSelectArg

java.lang.Object
  extended by com.j256.ormlite.stmt.BaseSelectArg
All Implemented Interfaces:
ArgumentHolder
Direct Known Subclasses:
SelectArg, ThreadLocalSelectArg

public abstract class BaseSelectArg
extends Object
implements ArgumentHolder

Base class for other select argument classes.

Author:
graywatson

Constructor Summary
BaseSelectArg()
           
 
Method Summary
 String getColumnName()
          Return the column-name associated with this argument.
 FieldType getFieldType()
          Return the field type associated with this class.
 Object getSqlArgValue()
          Return the value associated with this argument.
protected abstract  Object getValue()
          Return the stored value.
protected abstract  boolean isValueSet()
          Return true if the value is set.
 void setMetaInfo(String columnName, FieldType fieldType)
          Used internally by the package to set the column-name associated with this argument.
abstract  void setValue(Object value)
          Store the value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseSelectArg

public BaseSelectArg()
Method Detail

getValue

protected abstract Object getValue()
Return the stored value.


setValue

public abstract void setValue(Object value)
Store the value.

Specified by:
setValue in interface ArgumentHolder

isValueSet

protected abstract boolean isValueSet()
Return true if the value is set.


getColumnName

public String getColumnName()
Return the column-name associated with this argument. The name is set by the package internally.

Specified by:
getColumnName in interface ArgumentHolder

setMetaInfo

public void setMetaInfo(String columnName,
                        FieldType fieldType)
Used internally by the package to set the column-name associated with this argument.

Specified by:
setMetaInfo in interface ArgumentHolder

getSqlArgValue

public Object getSqlArgValue()
                      throws SQLException
Return the value associated with this argument. The value should be set by the user before it is consumed.

Specified by:
getSqlArgValue in interface ArgumentHolder
Throws:
SQLException

getFieldType

public FieldType getFieldType()
Description copied from interface: ArgumentHolder
Return the field type associated with this class.

Specified by:
getFieldType in interface ArgumentHolder

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.