org.melati.poem.prepro
Class ReferenceFieldDef

Package class diagram package ReferenceFieldDef
java.lang.Object
  extended by org.melati.poem.prepro.FieldDef
      extended by org.melati.poem.prepro.ReferenceFieldDef

public class ReferenceFieldDef
extends FieldDef

A definition of a ReferencePoemType from the DSD. Its member variables are populated from the DSD or defaults. Its methods are used to generate the java code.


Field Summary
 
Fields inherited from class org.melati.poem.prepro.FieldDef
displayLevel, displayOrder, lineNumber, name, qualifiers, rawType, searchability, suffix, table, type
 
Constructor Summary
ReferenceFieldDef(int lineNo, TableDef table, String name, int displayOrder, String type, Vector qualifiers)
          Constructor.
 
Method Summary
 void generateBaseMethods(Writer w)
          Write out this Column's base methods.
protected  void generateColRawAccessors(Writer w)
          Write out this Column's field accessors as part of the anonymous definition of the Column.
 void generateJavaDeclaration(Writer w)
          Write out this Field's java declaration string.
 String poemTypeJava()
           
 
Methods inherited from class org.melati.poem.prepro.FieldDef
from, generateColAccessor, generateColDecl, generateColDefinition, generateFieldCreator, getHeight, getWidth, isCreateable, isDeletedColumn, isEditable, isIndexed, isNullable, isSortDescending, isTroidColumn, isUnique, setCreateable, setDeletedColumn, setEditable, setHeight, setIndexed, setNullable, setSortDescending, setTroidColumn, setUnique, setWidth, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferenceFieldDef

public ReferenceFieldDef(int lineNo,
                         TableDef table,
                         String name,
                         int displayOrder,
                         String type,
                         Vector qualifiers)
                  throws org.melati.poem.prepro.IllegalityException
Constructor.

Parameters:
lineNo - the line number in the DSD file
table - the TableDef that this Field is part of
name - the name of this field
type - the type of this field
displayOrder - where to place this field in a list
qualifiers - all the qualifiers of this field
Throws:
IllegalityException - if a semantic inconsistency is detected
Method Detail

generateColRawAccessors

protected void generateColRawAccessors(Writer w)
                                throws IOException
Description copied from class: FieldDef
Write out this Column's field accessors as part of the anonymous definition of the Column.

Overrides:
generateColRawAccessors in class FieldDef
Parameters:
w - The base table java file.
Throws:
IOException - if something goes wrong with the file system

generateBaseMethods

public void generateBaseMethods(Writer w)
                         throws IOException
Description copied from class: FieldDef
Write out this Column's base methods.

Overrides:
generateBaseMethods in class FieldDef
Parameters:
w - The base persistent java file.
Throws:
IOException - if something goes wrong with the file system

generateJavaDeclaration

public void generateJavaDeclaration(Writer w)
                             throws IOException
Write out this Field's java declaration string.

Specified by:
generateJavaDeclaration in class FieldDef
Parameters:
w - The base persistent java file.
Throws:
IOException - if something goes wrong with the file system

poemTypeJava

public String poemTypeJava()
Specified by:
poemTypeJava in class FieldDef
Returns:
the Java string for this PoemType.


Copyright © 2000-2010 PanEris. All Rights Reserved.