public class ParameterModel extends java.lang.Object implements SQLMetaModel
This ParameterModel has a method setValue(Object) to
set a value for this parameter to be used in calling the Procedure
it belongs to
SQLMetaData,
SQLRecord,
Serialized Form| Constructor and Description |
|---|
ParameterModel(SQLRecord record)
Create an ParameterModel on the basis of this SQLRecord
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDataType()
get the datatype as defined in
java.sql.Type |
java.lang.String |
getName()
get the name for this model's instance
|
int |
getParamType()
get the datatype as defined in
java.sql.Type |
SQLRecord |
getRecord()
the record which defines all the values for the model
|
java.lang.String |
getType()
get the type of Object defined by the meta model
|
java.lang.Object |
getValue()
get the value for this parameter
|
void |
setValue(java.lang.Object value)
set the value for this parameter
|
java.lang.String |
toString() |
public ParameterModel(SQLRecord record)
record - SQLRecord, the record containing the
information on this columnpublic java.lang.String getName()
This is equal to the name of the table,column, etc.
getName in interface SQLMetaModelpublic SQLRecord getRecord()
getRecord in interface SQLMetaModelpublic java.lang.String getType()
returned value depends on the model: TABLE,COLUMN,INDEX
getType in interface SQLMetaModelpublic int getDataType()
java.sql.Typepublic int getParamType()
java.sql.Typepublic java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - Objectpublic java.lang.String toString()
toString in class java.lang.Object