com.j256.ormlite.stmt
Interface ArgumentHolder

All Known Implementing Classes:
BaseSelectArg, SelectArg, ThreadLocalSelectArg

public interface ArgumentHolder

An argument to a select SQL statement. After the query is constructed, the caller can set the value on this argument and run the query. Then the argument can be set again and the query re-executed. This is equivalent in SQL to a ? argument.

Author:
graywatson

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.
 void setMetaInfo(String columnName, FieldType fieldType)
          Used internally by the package to set the column-name associated with this argument.
 void setValue(Object value)
          Set the value associated with this argument.
 

Method Detail

getColumnName

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


setMetaInfo

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


setValue

void setValue(Object value)
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.


getSqlArgValue

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

Throws:
SQLException

getFieldType

FieldType getFieldType()
Return the field type associated with this class.



Copyright © 2011. All Rights Reserved.