|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.db.base.DatabaseCompoundType
Field Summary | |
private static java.lang.String |
copyright
|
private OrderedHashtable |
fields
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
DatabaseCompoundType()
Constructs a new DatabaseCompoundType and initializes its fields. |
|
DatabaseCompoundType(DatabaseCompoundType aType)
Constructs a new DatabaseCompoundType and initializes its fields to the values of the specified DatabaseCompoundType. |
Method Summary | |
void |
addField(DatabaseTypeField aField)
Adds the DatabaseTypeField as a field in the DatabaseCompoundType with the DatabaseTypeField's name as the name. |
void |
addFieldWithProposedName(DatabaseTypeField typeField)
Adds the DatabaseTypeField as a field in the DatabaseCompoundType with the proposed name. |
protected java.lang.Object |
clone()
This method returns a DatabaseCompoundType which is a clone of itself. |
DatabaseTypeField |
fieldAt(int colIndex)
Returns the field in the colIndex position. |
DatabaseTypeField |
fieldAt(java.lang.String colName)
Returns the field keyed by colName. |
java.util.Enumeration |
getColumnNames()
Returns an enumeration on the keys(colNames) of the ordered hashtable. |
private OrderedHashtable |
getFields()
This method returns the ordered hashtable that holds on to the fields |
int |
indexOfColumnName(java.lang.String aColumnName)
Returns the position of the field keyed by aColumnName. |
static DatabaseTypeField |
makeField(java.lang.String className)
Returns a DatabaseTypeField of the appropriate type for the java class name passed as input. |
boolean |
removeFieldAt(int colIndex)
Removes the field in the colIndex position. |
void |
removeFieldAt(java.lang.String colName)
Removes the field keyed by colName. |
private void |
setFields(OrderedHashtable aHashTable)
Sets the ordered hashtable that holds on to the fields. |
int |
size()
Returns the number of fields in this instance of DatabaseCompoundType. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private OrderedHashtable fields
static final long serialVersionUID
private static final java.lang.String copyright
Constructor Detail |
public DatabaseCompoundType()
public DatabaseCompoundType(DatabaseCompoundType aType) throws java.lang.CloneNotSupportedException
aType
- a DatabaseCompoundTypeMethod Detail |
public void addField(DatabaseTypeField aField)
aField
- a DatabaseTypeFieldpublic void addFieldWithProposedName(DatabaseTypeField typeField)
aField
- a DatabaseTypeFieldprotected java.lang.Object clone() throws java.lang.CloneNotSupportedException
public DatabaseTypeField fieldAt(int colIndex)
public DatabaseTypeField fieldAt(java.lang.String colName)
public java.util.Enumeration getColumnNames()
private OrderedHashtable getFields()
public int indexOfColumnName(java.lang.String aColumnName)
public static DatabaseTypeField makeField(java.lang.String className)
className
- the name of the Java classpublic boolean removeFieldAt(int colIndex)
public void removeFieldAt(java.lang.String colName)
private void setFields(OrderedHashtable aHashTable)
aHashTable
- the hashTablepublic int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |