|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface implemented by objects that describe the constraints on the field of an Oreo data record.
Method Summary | |
void |
checkValidValue(Record rec,
java.lang.Object o)
Check whether this object is a valid value for this field of the given record. |
java.lang.Object |
convertFromJDBC(java.lang.Object obj)
Method to support slurping records from a JDBC result set. |
java.lang.Object |
convertToJDBC(java.lang.Object obj)
Method to support persisting records to a JDBC record set. |
HierarchicalHandler |
createSAXHandler(HierarchicalHandler parent,
Record record)
|
java.lang.Object |
defaultValue()
returns this field's "default value". |
java.lang.Object |
getCopy(java.lang.Object o)
Used when encapsulation requires Record::get() to return a clone of an object. |
java.lang.Class |
getJavaType()
The kind of java object that can live in this record field. |
java.lang.String |
getLocalizedName(java.util.Locale locale)
|
java.lang.String |
getName()
A unique name that identifies the field |
java.lang.Object |
getObjectFromString(Record rec,
java.lang.String s)
Given the string representation of a field, return its internal java object representation. |
java.lang.String |
getProperty(java.lang.String propertyName)
a hook so that implementors can add other properties |
java.lang.String |
getSQLType()
|
boolean |
isFieldOf(Record rec)
Does this FieldDescriptor describe a field of the Record? Useful for sanity checks. |
boolean |
isRequired()
Used in the core validity checks. |
boolean |
isSetExternally()
|
java.lang.String |
normalize(java.lang.String s)
"normalize" the string passed in. |
java.lang.String |
valueToString(java.lang.Object o)
returns the preferred String representation of the object in question. |
Method Detail |
public java.lang.String getName()
public java.lang.Class getJavaType()
public java.lang.String getSQLType()
java.lang.UnsupportedOperationException
public java.lang.String getLocalizedName(java.util.Locale locale)
public boolean isRequired()
public java.lang.Object getObjectFromString(Record rec, java.lang.String s) throws DataException
DataException
public java.lang.String valueToString(java.lang.Object o) throws DataException
DataException
public java.lang.Object getCopy(java.lang.Object o)
public java.lang.String normalize(java.lang.String s)
public void checkValidValue(Record rec, java.lang.Object o) throws DataException
IOException
- Description of Exception
DataException
public boolean isFieldOf(Record rec)
public java.lang.Object defaultValue()
public java.lang.Object convertFromJDBC(java.lang.Object obj)
public java.lang.Object convertToJDBC(java.lang.Object obj)
public HierarchicalHandler createSAXHandler(HierarchicalHandler parent, Record record)
public java.lang.String getProperty(java.lang.String propertyName)
public boolean isSetExternally()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |