oracle.jbo.common
Class StructureDefHelper
java.lang.Object
|
+--oracle.jbo.common.StructureDefHelper
- All Implemented Interfaces:
- StructureDef
- public class StructureDefHelper
- extends java.lang.Object
- implements StructureDef
Internal: Applications should not use this class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attributes
protected java.util.Hashtable attributes
attributeList
protected AttributeDef[] attributeList
StructureDefHelper
public StructureDefHelper()
getAttributeDefs
public AttributeDef[] getAttributeDefs()
- Description copied from interface:
StructureDef
- Gets the defined attributes.
- Specified by:
getAttributeDefs
in interface StructureDef
- Following copied from interface:
oracle.jbo.StructureDef
- Returns:
- an array of attribute definitions.
getAttributeCount
public int getAttributeCount()
- Description copied from interface:
StructureDef
- Returns the number of defined attributes.
- Specified by:
getAttributeCount
in interface StructureDef
- Following copied from interface:
oracle.jbo.StructureDef
- Returns:
- the number of attributes.
findAttributeDef
public AttributeDef findAttributeDef(java.lang.String name)
- Description copied from interface:
StructureDef
- Gets an attribute definition, given its name.
- Specified by:
findAttributeDef
in interface StructureDef
- Following copied from interface:
oracle.jbo.StructureDef
- Parameters:
name
- the name of an AttributeDef
.- Returns:
- an attribute definition
- Throws:
NoDefException
- - if the attribute
is not found.
lookupAttributeDef
public AttributeDef lookupAttributeDef(java.lang.String name)
- Description copied from interface:
StructureDef
- Gets an attribute definition, given its name.
- Specified by:
lookupAttributeDef
in interface StructureDef
- Following copied from interface:
oracle.jbo.StructureDef
- Parameters:
name
- the name of an AttributeDef
.- Returns:
- an attribute definition if found, null otherwise
getAttributeDef
public AttributeDef getAttributeDef(int index)
- Description copied from interface:
StructureDef
- Gets an attribute definition, given its index.
- Specified by:
getAttributeDef
in interface StructureDef
- Following copied from interface:
oracle.jbo.StructureDef
- Parameters:
index
- the index of an AttributeDef
, where the leftmost
attribute has index zero.- Returns:
- an attribute definition.
getNewAttributeDefHelper
protected AttributeDefHelper getNewAttributeDefHelper()
addDynamicAttribute
public AttributeDef addDynamicAttribute(java.lang.String name,
int index)
addViewLinkAccessor
public AttributeDef addViewLinkAccessor(java.lang.String name,
int index)
removeViewLinkAccessor
public void removeViewLinkAccessor(AttributeDef accr)