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)
ArgumentHoldersetValue in interface ArgumentHolderprotected abstract boolean isValueSet()
public String getColumnName()
ArgumentHoldergetColumnName in interface ArgumentHolderpublic void setMetaInfo(String columnName)
ArgumentHoldersetMetaInfo in interface ArgumentHolderpublic void setMetaInfo(FieldType fieldType)
ArgumentHoldersetMetaInfo in interface ArgumentHolderpublic void setMetaInfo(String columnName, FieldType fieldType)
ArgumentHoldersetMetaInfo in interface ArgumentHolderpublic Object getSqlArgValue() throws SQLException
ArgumentHoldergetSqlArgValue in interface ArgumentHolderSQLExceptionpublic FieldType getFieldType()
ArgumentHoldergetFieldType in interface ArgumentHolderpublic SqlType getSqlType()
ArgumentHoldergetSqlType in interface ArgumentHolderThis documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.