|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is implemented by DSEType, a concrete class which defines a type of business object or business process.
Method Summary | |
PropertyDescription |
addPropertyDescriptor(PropertyDescription propertyDescriptor)
Adds the PropertyDescriptor passed as argument to the list of contained descriptors and if successful, the PropertyDescriptor added is returned. |
java.lang.Object |
createInstance()
Returns a business object populated with the default data specified for this Type. |
java.lang.Object |
createInstance(PropertyDescription propertyDescriptor)
Returns a business object populated with the default data specified for this Type. |
PropertyDescription |
getDefaultDescriptorForType()
Returns the PropertyDescriptor associated with this Type which defines its business rules. |
java.lang.Class |
getImplClass()
Returns the class which implements the business behaviour described by this Type. |
Key |
getKey(TypedData businessObject)
Returns a Key object which can, if the Type has unique Keys, be used to identify the business object passed as argument. |
KeyBuilder |
getKeyBuilder()
Returns the KeyBuilder responsible for building Keys for this Type. |
java.lang.String |
getName()
Returns the name of this Type. |
PropertyDescription |
getPropertyDescriptor(int index)
Returns the PropertyDescriptor at the index passed |
PropertyDescription |
getPropertyDescriptor(java.lang.String name)
Returns the PropertyDescriptor with the name passed, or null is no descriptor of that name exists. |
java.util.Enumeration |
getPropertyDescriptors()
Returns an Enumeration of all PropertyDescriptors contained within this Type. |
boolean |
isCompound()
Retruns a flag indicating whether this Type is Compound or not. |
void |
reset()
Resets the type |
void |
reset(Type newType)
Resets the type with a new Type instance |
void |
setDefaultDescriptorForType(PropertyDescription propertyDescriptor)
Sets the default PropertyDescriptor which defines this Types business rules to that passed as argument. |
void |
setKeyBuilder(KeyBuilder keyBuilder)
Sets the KeyBuilder which is responsible for building Keys for this Type to that passed. |
Method Detail |
public PropertyDescription addPropertyDescriptor(PropertyDescription propertyDescriptor) throws DSETypeException
propertyDescriptor
- PropertyDescriptionpublic java.lang.Object createInstance() throws DSETypeException
Compond Types return a KeyedCollection, Simple Types return a DataField with a business object as value. The business object returned is associated with the defualt PropertyDescriptor for this Type.
public java.lang.Object createInstance(PropertyDescription propertyDescriptor) throws DSETypeException
Compond Types return a KeyedCollection, Simple Types return a DataField with a business object as value. The PropertyDescriptor to be associated with the business object created is passed as argument.
propertyDescriptor
- PropertyDescriptionpublic PropertyDescription getDefaultDescriptorForType()
public java.lang.Class getImplClass()
public Key getKey(TypedData businessObject) throws DSETypeException
This behaviour may be delegated to a utility object since Types are to be employed, not subclassed. Returns a Key with a value of zero for all Types, including Simple Types, which do not have unique Keys.
businessObject
- TypedDatapublic KeyBuilder getKeyBuilder()
public java.lang.String getName()
public PropertyDescription getPropertyDescriptor(int index)
index
- intpublic PropertyDescription getPropertyDescriptor(java.lang.String name)
name
- Stringpublic java.util.Enumeration getPropertyDescriptors()
public boolean isCompound()
public void reset() throws DSETypeException
public void reset(Type newType) throws DSETypeException
newType
- com.ibm.dse.base.types.DSETypepublic void setDefaultDescriptorForType(PropertyDescription propertyDescriptor)
propertyDescriptor
- PropertyDescriptionpublic void setKeyBuilder(KeyBuilder keyBuilder)
keyBuilder
- KeyBuilder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |