public class BooleanType extends Object implements ExtendedType<Boolean>
java.lang.Boolean mapping. Note that "materialize*" methods return
 either Boolean.TRUE or Boolean.FALSE, instead of creating new Boolean instances using
 constructor. This makes possible identity comparison such as
 object.getBooleanProperty() == Boolean.TRUE.TRIM_VALUES_THRESHOLD| Constructor and Description | 
|---|
| BooleanType() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getClassName()Returns a full name of Java class that this ExtendedType supports. | 
| Boolean | materializeObject(CallableStatement st,
                 int index,
                 int type)Reads an object from a stored procedure OUT parameter, converting it to class
 returned by 'getClassName' method. | 
| Boolean | materializeObject(ResultSet rs,
                 int index,
                 int type)Reads an object from JDBC ResultSet column, converting it to class returned by
 'getClassName' method. | 
| void | setJdbcObject(PreparedStatement st,
             Boolean val,
             int pos,
             int type,
             int precision)Initializes a single parameter of a PreparedStatement with object value. | 
| String | toString(Boolean value)Converts value of the supported type to a human-readable String representation. | 
public String getClassName()
ExtendedTypegetClassName in interface ExtendedType<Boolean>public void setJdbcObject(PreparedStatement st, Boolean val, int pos, int type, int precision) throws Exception
ExtendedTypesetJdbcObject in interface ExtendedType<Boolean>Exceptionpublic Boolean materializeObject(ResultSet rs, int index, int type) throws Exception
ExtendedTypematerializeObject in interface ExtendedType<Boolean>Exception - if read error occurred, or an object can't be converted to a
                   target Java class.public Boolean materializeObject(CallableStatement st, int index, int type) throws Exception
ExtendedTypematerializeObject in interface ExtendedType<Boolean>Exception - if read error occurred, or an object can't be converted to a
                   target Java class.public String toString(Boolean value)
ExtendedTypetoString in interface ExtendedType<Boolean>value - a value to convert to String.Copyright © 2001–2023 Apache Cayenne. All rights reserved.