public class ExtendedEnumType<T extends Enum<T>> extends Object implements ExtendedType
Constructor and Description |
---|
ExtendedEnumType(Class<T> enumerationClass) |
Modifier and Type | Method and Description |
---|---|
String |
getClassName()
Returns a full name of Java class that this ExtendedType supports.
|
Map<Object,Enum<T>> |
getEnumerationMappings()
Returns the enumeration mapping for this enumerated data type.
|
Object[] |
getValues() |
Object |
materializeObject(CallableStatement rs,
int index,
int type)
Reads an object from a stored procedure OUT parameter, converting it to class
returned by 'getClassName' method.
|
Object |
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,
Object value,
int pos,
int type,
int precision)
Initializes a single parameter of a PreparedStatement with object value.
|
public String getClassName()
ExtendedType
getClassName
in interface ExtendedType
public Object materializeObject(ResultSet rs, int index, int type) throws Exception
ExtendedType
materializeObject
in interface ExtendedType
Exception
- if read error occurred, or an object can't be converted to a
target Java class.public Object materializeObject(CallableStatement rs, int index, int type) throws Exception
ExtendedType
materializeObject
in interface ExtendedType
Exception
- if read error ocurred, or an object can't be converted to a
target Java class.public void setJdbcObject(PreparedStatement statement, Object value, int pos, int type, int precision) throws Exception
ExtendedType
setJdbcObject
in interface ExtendedType
Exception
public Map<Object,Enum<T>> getEnumerationMappings()
public Object[] getValues()
Copyright © 2001–2018 Apache Cayenne. All rights reserved.