|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface SQLType
A native SQL Field datatype.
| Method Summary | |
|---|---|
Object |
getRaw(ResultSet rs,
int col)
Return an object as delivered by the database. |
String |
quotedRaw(Object raw)
Quoting a raw value, if appropriate, for the Dbms. |
void |
setRaw(PreparedStatement ps,
int col,
Object cooked)
Set a column of a PreparedStatement to the passed in value. |
String |
sqlDefaultValue(Dbms dbms)
Used to set a not null value when creating a non nullable column. |
String |
sqlDefinition(Dbms dbms)
SQL type definition with nullability. |
int |
sqlTypeCode()
|
String |
sqlTypeDefinition(Dbms dbms)
SQL type definition without nullability. |
| Method Detail |
|---|
int sqlTypeCode()
String sqlDefinition(Dbms dbms)
STRING NOT NULL
dbms - the DBMS
String sqlDefaultValue(Dbms dbms)
dbms - the dbms the value is suitable for
String sqlTypeDefinition(Dbms dbms)
STRING
dbms - the DBMS
String quotedRaw(Object raw)
numbers and booleans are not quoted for most dbms'.
raw - sql value
Object getRaw(ResultSet rs,
int col)
throws TypeMismatchPoemException,
ValidationPoemException,
ParsingPoemException
rs - the Resultset containing the valuecol - the column withing the ResultSet to read
TypeMismatchPoemException
ValidationPoemException
ParsingPoemException
void setRaw(PreparedStatement ps,
int col,
Object cooked)
throws TypeMismatchPoemException
ps - the Prepared Statement to modifycol - the column within the PreparedStatementcooked - the value to set
TypeMismatchPoemException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||