org.melati.poem
Class RestrictedReferencePoemType

Package class diagram package RestrictedReferencePoemType
java.lang.Object
  extended by org.melati.poem.BasePoemType<T>
      extended by org.melati.poem.AtomPoemType<T>
          extended by org.melati.poem.IntegerPoemType
              extended by org.melati.poem.IndexPoemType
                  extended by org.melati.poem.ReferencePoemType
                      extended by 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.


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
RestrictedReferencePoemType(CachedSelection selection, boolean nullable)
          Constructor.
 
Method Summary
protected  Enumeration _possibleRaws()
          Returns an Enumeration of the possible raw values.
 
Methods inherited from class org.melati.poem.ReferencePoemType
_assertValidCooked, _canRepresent, _cookedOfRaw, _rawOfCooked, _saveColumnInfo, _stringOfCooked, targetTable, toDsdType, 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

RestrictedReferencePoemType

public RestrictedReferencePoemType(CachedSelection selection,
                                   boolean nullable)
Constructor.

Parameters:
selection - a CachedSelection of that is the sub-set
nullable - whether instance may be null
Method Detail

_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.