FileDocCategorySizeDatePackage
KeyDesc.javaAPI DocGlassfish v2 API3273Fri May 04 22:35:06 BST 2007com.sun.jdo.spi.persistence.support.sqlstore.model

KeyDesc

public class KeyDesc extends Object
This class is used to encapsulate an association between key fields and key columns.

Fields Summary
private ArrayList
fields
Array of LocalFieldDesc
private ArrayList
columns
Array of ColumnElements
Constructors Summary
Methods Summary
voidaddColumn(org.netbeans.modules.dbschema.ColumnElement c)
Add a column to this KeyDesc.

param
c - ColumnElement to be added

        if (columns == null)
            columns = new ArrayList();

        columns.add(c);
    
voidaddColumns(java.util.ArrayList columns)
Initialize the columns ArrayList.

        this.columns = columns;
    
voidaddField(FieldDesc f)
Add a field to the KeyDesc.

param
f - FieldDesc to be added

        if (fields == null)
            fields = new ArrayList();

        fields.add(f);
    
public java.util.ArrayListgetColumns()
Return all key columns.

return
an ArrayList of ColumnElements

        return columns;
    
public java.util.ArrayListgetFields()
Return all key fields.

return
an ArrayList of FieldDescs

        return fields;