public class ByteType extends Object implements ExtendedType<Byte>
java.lang.Byte type mapping. Can be configured to recast
 java.lang.Byte to java.lang.Integer when binding values to PreparedStatement. This is a
 workaround for bugs in certain drivers. Drivers that are proven to have issues with
 byte values are Sybase and Oracle (Mac OS X only).| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | widenBytes | 
TRIM_VALUES_THRESHOLD| Constructor and Description | 
|---|
| ByteType(boolean widenBytes) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getClassName()Returns a full name of Java class that this ExtendedType supports. | 
| Byte | materializeObject(CallableStatement st,
                 int index,
                 int type)Reads an object from a stored procedure OUT parameter, converting it to class
 returned by 'getClassName' method. | 
| Byte | 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 statement,
             Byte value,
             int pos,
             int type,
             int precision)Initializes a single parameter of a PreparedStatement with object value. | 
| String | toString(Byte value)Converts value of the supported type to a human-readable String representation. | 
public String getClassName()
ExtendedTypegetClassName in interface ExtendedType<Byte>public Byte materializeObject(ResultSet rs, int index, int type) throws Exception
ExtendedTypematerializeObject in interface ExtendedType<Byte>Exception - if read error occurred, or an object can't be converted to a
                   target Java class.public Byte materializeObject(CallableStatement st, int index, int type) throws Exception
ExtendedTypematerializeObject in interface ExtendedType<Byte>Exception - if read error occurred, or an object can't be converted to a
                   target Java class.public void setJdbcObject(PreparedStatement statement, Byte value, int pos, int type, int precision) throws Exception
ExtendedTypesetJdbcObject in interface ExtendedType<Byte>Exceptionpublic String toString(Byte value)
ExtendedTypetoString in interface ExtendedType<Byte>value - a value to convert to String.Copyright © 2001–2023 Apache Cayenne. All rights reserved.