DEFAULT_SIZE| Constructor and Description |
|---|
BooleanStringType() |
BooleanStringType(String sTrue,
String sFalse) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindToStmt(PreparedStatement stmt,
int index,
Boolean value)
Do what you have to do to bind a value to a prepared statement.
|
boolean |
canBeNull()
Returns whether this type can be NULL in the database.
|
boolean |
equals(Object obj) |
String |
getAnsiType()
Return the best ANSI type for this database type.
|
protected Boolean |
getBooleanValue(String s) |
Boolean |
getFromResultSet(ResultSet rset,
int index)
Do what you have to do to get and return this database type from a result set.
|
Boolean |
getFromResultSet(ResultSet rset,
String field)
Do what you have to do to get and return this database type from a result set.
|
int |
getSize() |
Class<? extends Object> |
getTypeClass()
Return the java type representing this database type.
|
BooleanStringType |
nullable(boolean flag) |
BooleanStringType |
size(int size) |
String |
toString() |
static BooleanStringType |
values(String sTrue,
String sFalse) |
public static BooleanStringType values(String sTrue, String sFalse)
public boolean canBeNull()
DBTypepublic String getAnsiType()
DBTypegetAnsiType in interface DBType<Boolean>public BooleanStringType nullable(boolean flag)
public BooleanStringType size(int size)
public Boolean getFromResultSet(ResultSet rset, int index) throws SQLException
DBTypegetFromResultSet in interface DBType<Boolean>rset - The result setindex - The index in the result setSQLExceptionpublic Boolean getFromResultSet(ResultSet rset, String field) throws SQLException
DBTypegetFromResultSet in interface DBType<Boolean>rset - The result setfield - The name of the field in the result setSQLExceptionpublic Class<? extends Object> getTypeClass()
DBTypegetTypeClass in interface DBType<Boolean>public void bindToStmt(PreparedStatement stmt, int index, Boolean value) throws SQLException
DBTypebindToStmt in interface DBType<Boolean>stmt - The prepared statementindex - The index in the prepared statementvalue - The value to be bound to the prepared statementSQLExceptionCopyright © 2016. All Rights Reserved.