public class NumericBooleanType extends AbstractType<Boolean>
NumericBooleanType maps Boolean to 1/0 (Integer) on the JDBC level| Modifier and Type | Field and Description |
|---|---|
static NumericBooleanType |
DEFAULT |
| Constructor and Description |
|---|
NumericBooleanType() |
NumericBooleanType(int type) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLiteral(Boolean value)
Get the literal representation
|
Class<Boolean> |
getReturnedClass()
Get the returned type
|
Boolean |
getValue(ResultSet rs,
int startIndex)
Get the object from the result set
|
void |
setValue(PreparedStatement st,
int startIndex,
Boolean value)
Set the object to the statement
|
getSQLTypespublic static final NumericBooleanType DEFAULT
public NumericBooleanType()
public NumericBooleanType(int type)
public Class<Boolean> getReturnedClass()
Typepublic String getLiteral(Boolean value)
TypegetLiteral in interface Type<Boolean>getLiteral in class AbstractType<Boolean>value - value@Nullable public Boolean getValue(ResultSet rs, int startIndex) throws SQLException
Typers - result setstartIndex - column index in result setSQLExceptionpublic void setValue(PreparedStatement st, int startIndex, Boolean value) throws SQLException
Typest - statementstartIndex - column index in statementvalue - value to be setSQLExceptionCopyright © 2007–2018 Querydsl. All rights reserved.