wt.tools.generation.architecture
Class IntrospectorGenerator

java.lang.Object
  extended bywt.tools.generation.architecture.TargetGenerator
      extended bywt.tools.generation.architecture.IntrospectorGenerator

public class IntrospectorGenerator
extends TargetGenerator


Field Summary
private static String ALPHABET
           
 
Fields inherited from class wt.tools.generation.architecture.TargetGenerator
classAccumulator, classProcessors, sourceClass
 
Constructor Summary
IntrospectorGenerator()
           
 
Method Summary
protected  void accumulateAttribute(Vector collector, ClassProperty theProperty)
           
protected  void accumulateAttributes(Vector collector, Vector columnCollector, com.objectspace.jgl.HashMap composites)
           
protected  void accumulateColumn(Vector collector, ClassProperty theProperty)
           
protected  void accumulateComposite(com.objectspace.jgl.HashMap collector, Vector columns, ClassProperty theProperty)
           
protected  void accumulateComposites(com.objectspace.jgl.HashMap collector, Vector attributes, Vector columns)
           
protected  String[] accumulateInterfaces()
           
protected  void accumulateOtherSideOverrides(Vector attributes)
           
protected static int cardinalityToInt(String cardinality)
           
 void generate()
           
private static String[] getAliases(Enumeration roleAliases)
           
protected  boolean hasAutoNavigate()
           
protected static ColumnDescriptor makeColumn(ClassProperty theProperty, String storingType, int sqlType, int colLength, String attrSuffix, String colSuffix)
           
private static String parseArg(String expression)
           
protected static String referenceName(Association association)
           
protected static String referenceType(Association association)
           
protected static byte roleType(Role role)
           
protected static byte storageType(Association association)
           
protected static Object toObject(String type, String value)
           
 
Methods inherited from class wt.tools.generation.architecture.TargetGenerator
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALPHABET

private static final String ALPHABET
See Also:
Constant Field Values
Constructor Detail

IntrospectorGenerator

public IntrospectorGenerator()
Method Detail

accumulateAttribute

protected void accumulateAttribute(Vector collector,
                                   ClassProperty theProperty)

accumulateAttributes

protected void accumulateAttributes(Vector collector,
                                    Vector columnCollector,
                                    com.objectspace.jgl.HashMap composites)

accumulateColumn

protected void accumulateColumn(Vector collector,
                                ClassProperty theProperty)

accumulateComposite

protected void accumulateComposite(com.objectspace.jgl.HashMap collector,
                                   Vector columns,
                                   ClassProperty theProperty)

accumulateComposites

protected void accumulateComposites(com.objectspace.jgl.HashMap collector,
                                    Vector attributes,
                                    Vector columns)

accumulateInterfaces

protected String[] accumulateInterfaces()

accumulateOtherSideOverrides

protected void accumulateOtherSideOverrides(Vector attributes)

cardinalityToInt

protected static int cardinalityToInt(String cardinality)

generate

public void generate()
Overrides:
generate in class TargetGenerator

getAliases

private static String[] getAliases(Enumeration roleAliases)

hasAutoNavigate

protected boolean hasAutoNavigate()

makeColumn

protected static ColumnDescriptor makeColumn(ClassProperty theProperty,
                                             String storingType,
                                             int sqlType,
                                             int colLength,
                                             String attrSuffix,
                                             String colSuffix)

referenceName

protected static String referenceName(Association association)

referenceType

protected static String referenceType(Association association)

roleType

protected static byte roleType(Role role)

storageType

protected static byte storageType(Association association)

toObject

protected static Object toObject(String type,
                                 String value)
                          throws ParseException
Throws:
ParseException

parseArg

private static String parseArg(String expression)