org.melati.poem
Class RestrictedReferencePoemType
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
org.melati.poem.RestrictedReferencePoemType
- All Implemented Interfaces:
- Cloneable, PoemType, SQLPoemType, SQLType
public class RestrictedReferencePoemType
- extends ReferencePoemType
A pointer to a subset of a Table
.
Note this doesn't do quite what you'd expect, and can't unless it parses
the selection's whereClause
in order to determine what a
valid value is, so use a simple where clause.
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 |
RestrictedReferencePoemType
public RestrictedReferencePoemType(CachedSelection selection,
boolean nullable)
- Constructor.
- Parameters:
selection
- a CachedSelection of that is the sub-setnullable
- whether instance may be null
_possibleRaws
protected Enumeration _possibleRaws()
- Description copied from class:
ReferencePoemType
- Returns an
Enumeration
of the possible raw values.
In this case the troids of rows in the referenced table.
- Overrides:
_possibleRaws
in class ReferencePoemType
Copyright © 2000-2010 PanEris. All Rights Reserved.