|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.brains2b.sql.meta.ParameterModel
public class ParameterModel
Wrapper around the parameter definition from DatabaseMetaData
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
Constructor Summary | |
---|---|
ParameterModel(SQLRecord record)
Create an ParameterModel on the basis of this SQLRecord |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParameterModel(SQLRecord record)
record
- SQLRecord, the record containing the
information on this columnMethod Detail |
---|
public java.lang.String getName()
This is equal to the name of the table,column, etc.
getName
in interface SQLMetaModel
public SQLRecord getRecord()
getRecord
in interface SQLMetaModel
public java.lang.String getType()
returned value depends on the model: TABLE,COLUMN,INDEX
getType
in interface SQLMetaModel
public int getDataType()
java.sql.Type
public int getParamType()
java.sql.Type
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |