com.j256.ormlite.stmt
Class NullArgHolder

java.lang.Object
  extended by com.j256.ormlite.stmt.NullArgHolder
All Implemented Interfaces:
ArgumentHolder

public class NullArgHolder
extends Object
implements ArgumentHolder

An argument to a select SQL statement for null arguments. This overrides the protections around multiple columns since it will always have a null value.

Author:
graywatson

Constructor Summary
NullArgHolder()
           
 
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 suitable for passing to SQL.
 SqlType getSqlType()
          Return the SQL type associated with this class.
 void setMetaInfo(FieldType fieldType)
          Used internally by the package to set the fieldType associated with this argument.
 void setMetaInfo(String columnName)
          Used internally by the package to set the column-name associated with this argument.
 void setMetaInfo(String columnName, FieldType fieldType)
          Used internally by the package to set the column-name and fieldType associated with this argument.
 void setValue(Object value)
          Set the value associated with this argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullArgHolder

public NullArgHolder()
Method Detail

getColumnName

public String getColumnName()
Description copied from interface: ArgumentHolder
Return the column-name associated with this argument. The name is set by the package internally.

Specified by:
getColumnName in interface ArgumentHolder

setValue

public void setValue(Object value)
Description copied from interface: ArgumentHolder
Set the value associated with this argument. The value should be set by the user after the query has been built but before it has been executed.

Specified by:
setValue in interface ArgumentHolder

setMetaInfo

public void setMetaInfo(String columnName)
Description copied from interface: ArgumentHolder
Used internally by the package to set the column-name associated with this argument.

Specified by:
setMetaInfo in interface ArgumentHolder

setMetaInfo

public void setMetaInfo(FieldType fieldType)
Description copied from interface: ArgumentHolder
Used internally by the package to set the fieldType associated with this argument.

Specified by:
setMetaInfo in interface ArgumentHolder

setMetaInfo

public void setMetaInfo(String columnName,
                        FieldType fieldType)
Description copied from interface: ArgumentHolder
Used internally by the package to set the column-name and fieldType associated with this argument.

Specified by:
setMetaInfo in interface ArgumentHolder

getSqlArgValue

public Object getSqlArgValue()
Description copied from interface: ArgumentHolder
Return the value associated with this argument suitable for passing to SQL. The value should be set by the user before it is consumed.

Specified by:
getSqlArgValue in interface ArgumentHolder

getSqlType

public SqlType getSqlType()
Description copied from interface: ArgumentHolder
Return the SQL type associated with this class. Either this or the field-type must be available.

Specified by:
getSqlType in interface ArgumentHolder

getFieldType

public FieldType getFieldType()
Description copied from interface: ArgumentHolder
Return the field type associated with this class. Either this or the sql-type must be available. The field-type is available if there is a corresponding column-name set on the holder.

Specified by:
getFieldType in interface ArgumentHolder


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