public abstract class BaseArgumentHolder extends Object implements ArgumentHolder
Constructor and Description |
---|
BaseArgumentHolder() |
BaseArgumentHolder(SqlType sqlType) |
BaseArgumentHolder(String columName) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected abstract Object |
getValue()
Return the stored value.
|
protected abstract boolean |
isValueSet()
Return true if the value is set.
|
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.
|
abstract void |
setValue(Object value)
Set the value associated with this argument.
|
String |
toString() |
public BaseArgumentHolder()
public BaseArgumentHolder(String columName)
public BaseArgumentHolder(SqlType sqlType)
protected abstract Object getValue()
public abstract void setValue(Object value)
ArgumentHolder
setValue
in interface ArgumentHolder
protected abstract boolean isValueSet()
public String getColumnName()
ArgumentHolder
getColumnName
in interface ArgumentHolder
public void setMetaInfo(String columnName)
ArgumentHolder
setMetaInfo
in interface ArgumentHolder
public void setMetaInfo(FieldType fieldType)
ArgumentHolder
setMetaInfo
in interface ArgumentHolder
public void setMetaInfo(String columnName, FieldType fieldType)
ArgumentHolder
setMetaInfo
in interface ArgumentHolder
public Object getSqlArgValue() throws SQLException
ArgumentHolder
getSqlArgValue
in interface ArgumentHolder
SQLException
public FieldType getFieldType()
ArgumentHolder
getFieldType
in interface ArgumentHolder
public SqlType getSqlType()
ArgumentHolder
getSqlType
in interface ArgumentHolder
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.