|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.access.types.AbstractType
public abstract class AbstractType
A convenience superclass of ExtendedType implementations. Implements
setJdbcObject(PreparedStatement, Object, int, int, int)
in a generic fashion by
calling "setObject(..)" on PreparedStatement. Some adapters may need to override this
behavior as it doesn't work consistently across all JDBC drivers.
Constructor Summary | |
---|---|
AbstractType()
Deprecated. |
Method Summary | |
---|---|
abstract String |
getClassName()
Deprecated. Returns a full name of Java class that this ExtendedType supports. |
abstract Object |
materializeObject(CallableStatement rs,
int index,
int type)
Deprecated. Reads an object from a stored procedure OUT parameter, converting it to class returned by 'getClassName' method. |
abstract Object |
materializeObject(ResultSet rs,
int index,
int type)
Deprecated. Reads an object from JDBC ResultSet column, converting it to class returned by 'getClassName' method. |
void |
setJdbcObject(PreparedStatement st,
Object val,
int pos,
int type,
int scale)
Deprecated. Calls "PreparedStatement.setObject(..)". |
String |
toString()
Deprecated. |
static boolean |
validateNull(Object source,
String property,
Object value,
DbAttribute dbAttribute,
ValidationResult validationResult)
Deprecated. since 3.0 as validation should not be done at the DataNode level. |
boolean |
validateProperty(Object source,
String property,
Object value,
DbAttribute dbAttribute,
ValidationResult validationResult)
Deprecated. since 3.0 as validation should not be done at the DataNode level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractType()
Method Detail |
---|
public static boolean validateNull(Object source, String property, Object value, DbAttribute dbAttribute, ValidationResult validationResult)
public void setJdbcObject(PreparedStatement st, Object val, int pos, int type, int scale) throws Exception
setJdbcObject
in interface ExtendedType
Exception
public abstract String getClassName()
ExtendedType
getClassName
in interface ExtendedType
public abstract 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 abstract Object materializeObject(ResultSet 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 boolean validateProperty(Object source, String property, Object value, DbAttribute dbAttribute, ValidationResult validationResult)
validateProperty
in interface ExtendedType
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |