|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.BasePoemType<T> org.melati.poem.AtomPoemType<T> org.melati.poem.IntegerPoemType org.melati.poem.IndexPoemType org.melati.poem.ReferencePoemType
public class ReferencePoemType
A data type that is a reference to a Persistent
object.
Field Summary |
---|
Fields inherited from class org.melati.poem.IntegerPoemType |
---|
nullableInstance |
Fields inherited from class org.melati.poem.AtomPoemType |
---|
sqlTypeName |
Fields inherited from class org.melati.poem.BasePoemType |
---|
nullable |
Constructor Summary | |
---|---|
ReferencePoemType(Table targetTable,
boolean nullable)
Constructor. |
Method Summary | |
---|---|
protected void |
_assertValidCooked(Object cooked)
|
protected boolean |
_canRepresent(SQLPoemType other)
|
protected Object |
_cookedOfRaw(Object raw)
Returns the given value unchanged. |
protected Enumeration<Integer> |
_possibleRaws()
Returns an Enumeration of the possible raw values. |
protected Object |
_rawOfCooked(Object cooked)
Returns the given value unchanged. |
protected void |
_saveColumnInfo(ColumnInfo columnInfo)
|
protected String |
_stringOfCooked(Object cooked,
PoemLocale locale,
int style)
|
Table |
targetTable()
|
String |
toDsdType()
The field type used in the Data Structure Definition language. |
String |
toString()
|
Methods inherited from class org.melati.poem.IntegerPoemType |
---|
_assertValidRaw, _getRaw, _rawOfString, _setRaw |
Methods inherited from class org.melati.poem.AtomPoemType |
---|
_quotedRaw, _sqlDefinition, _stringOfRaw, _toString, sqlDefaultValue |
Methods inherited from class org.melati.poem.BasePoemType |
---|
assertValidCooked, assertValidRaw, canRepresent, clone, cookedOfRaw, getLimitRaw, getLowRaw, getNullable, getRaw, possibleRaws, quotedRaw, rawOfCooked, rawOfString, saveColumnInfo, setRaw, setRawRange, sqlDefinition, sqlTypeCode, sqlTypeDefinition, stringOfCooked, stringOfRaw, withNullable |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReferencePoemType(Table targetTable, boolean nullable)
targetTable
- the Table the type refers tonullable
- whether this type may contain null valuesMethod Detail |
---|
public Table targetTable()
protected Enumeration<Integer> _possibleRaws()
Enumeration
of the possible raw values.
In this case the troids of rows in the referenced table.
_possibleRaws
in class IntegerPoemType
protected void _assertValidCooked(Object cooked) throws ValidationPoemException
_assertValidCooked
in class AtomPoemType
ValidationPoemException
protected Object _cookedOfRaw(Object raw) throws NoSuchRowPoemException
AtomPoemType
_cookedOfRaw
in class AtomPoemType
raw
- the base object or Integer object id
NoSuchRowPoemException
protected Object _rawOfCooked(Object cooked)
AtomPoemType
_rawOfCooked
in class AtomPoemType
protected String _stringOfCooked(Object cooked, PoemLocale locale, int style) throws PoemException
_stringOfCooked
in class AtomPoemType
PoemException
protected boolean _canRepresent(SQLPoemType other)
IntegerPoemType
_canRepresent
in class IntegerPoemType
BasePoemType._canRepresent(org.melati.poem.SQLPoemType)
protected void _saveColumnInfo(ColumnInfo columnInfo) throws AccessPoemException
_saveColumnInfo
in class IntegerPoemType
AccessPoemException
public String toString()
toString
in class BasePoemType
BasePoemType.toString()
public String toDsdType()
toDsdType
in interface PoemType
toDsdType
in class IntegerPoemType
PoemType.toDsdType()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |