Package com.querydsl.sql.types
Class NumericBooleanType
NumericBooleanType maps Boolean to 1/0 (Integer) on the JDBC level- Author:
- tiwe
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLiteral(Boolean value) Get the literal representationGet the returned type@Nullable BooleanGet the object from the result setvoidsetValue(PreparedStatement st, int startIndex, Boolean value) Set the object to the statementMethods inherited from class com.querydsl.sql.types.AbstractType
getSQLTypes
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
NumericBooleanType
public NumericBooleanType() -
NumericBooleanType
public NumericBooleanType(int type)
-
-
Method Details
-
getReturnedClass
Description copied from interface:TypeGet the returned type- Returns:
- returned class
-
getLiteral
Description copied from interface:TypeGet the literal representation- Specified by:
getLiteralin interfaceType<Boolean>- Overrides:
getLiteralin classAbstractType<Boolean>- Parameters:
value- value- Returns:
- literal representation
-
getValue
Description copied from interface:TypeGet the object from the result set- Parameters:
rs- result setstartIndex- column index in result set- Returns:
- value
- Throws:
SQLException
-
setValue
Description copied from interface:TypeSet the object to the statement- Parameters:
st- statementstartIndex- column index in statementvalue- value to be set- Throws:
SQLException
-