public class CalendarType<T extends Calendar> extends Object implements ExtendedType<Calendar>
Calendar
fields.Modifier and Type | Field and Description |
---|---|
protected Class<T> |
calendarClass |
TRIM_VALUES_THRESHOLD
Constructor and Description |
---|
CalendarType(Class<T> calendarClass) |
Modifier and Type | Method and Description |
---|---|
protected Object |
convertToJdbcObject(Calendar value,
int type) |
String |
getClassName()
Returns a full name of Java class that this ExtendedType supports.
|
Calendar |
materializeObject(CallableStatement rs,
int index,
int type)
Reads an object from a stored procedure OUT parameter, converting it to class
returned by 'getClassName' method.
|
Calendar |
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,
Calendar value,
int pos,
int type,
int precision)
Initializes a single parameter of a PreparedStatement with object value.
|
String |
toString(Calendar value)
Converts value of the supported type to a human-readable String representation.
|
public String getClassName()
ExtendedType
getClassName
in interface ExtendedType<Calendar>
public Calendar materializeObject(ResultSet rs, int index, int type) throws Exception
ExtendedType
materializeObject
in interface ExtendedType<Calendar>
Exception
- if read error occurred, or an object can't be converted to a
target Java class.public Calendar materializeObject(CallableStatement rs, int index, int type) throws Exception
ExtendedType
materializeObject
in interface ExtendedType<Calendar>
Exception
- if read error occurred, or an object can't be converted to a
target Java class.public void setJdbcObject(PreparedStatement statement, Calendar value, int pos, int type, int precision) throws Exception
ExtendedType
setJdbcObject
in interface ExtendedType<Calendar>
Exception
protected Object convertToJdbcObject(Calendar value, int type) throws Exception
Exception
public String toString(Calendar value)
ExtendedType
toString
in interface ExtendedType<Calendar>
value
- a value to convert to String.Copyright © 2001–2023 Apache Cayenne. All rights reserved.