public interface SQLType<T>
Field datatype.| Modifier and Type | Method and Description |
|---|---|
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.
|
int sqlTypeCode()
String sqlDefinition(Dbms dbms)
STRING NOT NULL
dbms - the DBMSString sqlDefaultValue(Dbms dbms)
dbms - the dbms the value is suitable forString sqlTypeDefinition(Dbms dbms)
STRING
dbms - the DBMSString quotedRaw(Object raw)
numbers and booleans are not quoted for most dbms'.
raw - sql valueObject getRaw(ResultSet rs, int col) throws TypeMismatchPoemException, ValidationPoemException, ParsingPoemException
rs - the Resultset containing the valuecol - the column withing the ResultSet to readTypeMismatchPoemExceptionValidationPoemExceptionParsingPoemExceptionvoid setRaw(PreparedStatement ps, int col, Object cooked) throws TypeMismatchPoemException
ps - the Prepared Statement to modifycol - the column within the PreparedStatementcooked - the value to setTypeMismatchPoemExceptionCopyright © 2000–2021 PanEris. All rights reserved.