ajax.type
Class ComposedType

java.lang.Object
  |
  +--ajax.type.Type
        |
        +--ajax.type.ComposedType

public class ComposedType
extends Type

Class ComposedType represents a type composed by subtypes


Fields inherited from class ajax.type.Type
BOOLEAN, CHAR, DATE, FLOAT, INTEGER, LIST, OBJECTARRAY, STRING, TABLE
 
Constructor Summary
ComposedType(java.lang.String composedTypeName, java.util.LinkedList composedTypeFields)
          Constructor
 
Method Summary
 void createStoredComposedType()
          Creates an SQL stored class Made through a JDBC call
 boolean equals(Type other)
          Compares this type to another type.
 java.util.Iterator getFields()
          Returns an iterator of all its fields
 FieldType getFieldType(java.lang.String fieldName)
          Given a field name, looks for the desired field and returns its type.
 java.lang.String getName()
          Gets the name of the composed type.
 int nbFields()
          Returns the number of fields
 java.lang.String toDBaseType(boolean function)
          Converts this type into the DBMS corresponding one
 java.lang.String toJavaType()
          Converts this type into the Java corresponding one
 java.lang.String toString()
          Converts the composed type into a human read-able object.
 
Methods inherited from class ajax.type.Type
ARRAY, getBaseType, STRING
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComposedType

public ComposedType(java.lang.String composedTypeName,
                    java.util.LinkedList composedTypeFields)
Constructor
Method Detail

getName

public java.lang.String getName()
Gets the name of the composed type.
Overrides:
getName in class Type

getFieldType

public FieldType getFieldType(java.lang.String fieldName)
                       throws AjaxTypeException
Given a field name, looks for the desired field and returns its type.

getFields

public java.util.Iterator getFields()
Returns an iterator of all its fields

nbFields

public int nbFields()
Returns the number of fields

equals

public boolean equals(Type other)
Compares this type to another type.
Overrides:
equals in class Type
Returns:
true if this type equals the other type

toJavaType

public java.lang.String toJavaType()
                            throws AjaxTypeException
Converts this type into the Java corresponding one
Overrides:
toJavaType in class Type

toDBaseType

public java.lang.String toDBaseType(boolean function)
                             throws AjaxTypeException
Converts this type into the DBMS corresponding one
Overrides:
toDBaseType in class Type

createStoredComposedType

public void createStoredComposedType()
Creates an SQL stored class Made through a JDBC call

toString

public java.lang.String toString()
Converts the composed type into a human read-able object.
Overrides:
toString in class Type