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