|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is implemented by DSEType, a concrete class that defines a type of business object or business process.
Method Summary | |
---|---|
PropertyDescription |
addPropertyDescriptor(PropertyDescription propertyDescriptor)
Adds the PropertyDescriptor to the list of contained descriptors and, if successful, returns the added PropertyDescriptor. |
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. |
java.lang.Object |
createInstanceSharingDescriptors(PropertyDescription descriptor,
Hashtable parameters,
java.lang.String newDescriptorName)
Returns a business object populated with the default data specified for this Type. |
java.lang.Object |
createInstanceSharingDescriptors(PropertyDescription descriptor,
java.lang.String newDescriptorName)
Returns a business object populated with the default data specified for this Type. |
PropertyDescription |
getDefaultDescriptorForType()
Returns the PropertyDescriptor associated with this Type that defines its business rules. |
java.lang.Class |
getImplClass()
Returns the class that implements the business behavior 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 position. |
PropertyDescription |
getPropertyDescriptor(java.lang.String name)
Returns the PropertyDescriptor with the passed name or null if the descriptor of that name does not exist. |
java.util.Enumeration |
getPropertyDescriptors()
Returns an Enumeration of all PropertyDescriptors contained within this Type. |
boolean |
isCompound()
Returns 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 that defines this Type's business rules. |
void |
setKeyBuilder(KeyBuilder keyBuilder)
Sets the KeyBuilder that is responsible for building Keys. |
Method Detail |
public PropertyDescription addPropertyDescriptor(PropertyDescription propertyDescriptor) throws DSETypeException
propertyDescriptor
- PropertyDescription
DSETypeException
- - Name of PropertyDescriptor to add is either null or a duplicatepublic java.lang.Object createInstance() throws DSETypeException
DSETypeException
- - Object creation is unsuccessful.public java.lang.Object createInstance(PropertyDescription propertyDescriptor) throws DSETypeException
propertyDescriptor
- PropertyDescription
DSETypeException
- - Object creation is unsuccessfulpublic java.lang.Object createInstanceSharingDescriptors(PropertyDescription descriptor, Hashtable parameters, java.lang.String newDescriptorName) throws DSETypeException
DSETypeException
- - Object creation is unsuccessfulpublic java.lang.Object createInstanceSharingDescriptors(PropertyDescription descriptor, java.lang.String newDescriptorName) throws DSETypeException
DSETypeException
- - Object creation is unsuccessfulpublic 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
- TypedData
DSETypeException
- - If the building of the key for the businessObject given failspublic KeyBuilder getKeyBuilder()
public java.lang.String getName()
public PropertyDescription getPropertyDescriptor(int index)
index
- int
public PropertyDescription getPropertyDescriptor(java.lang.String name)
name
- String
public java.util.Enumeration getPropertyDescriptors()
public boolean isCompound()
public void reset() throws DSETypeException
DSETypeException
- - Thrown if the type cannot be resetpublic void reset(Type newType) throws DSETypeException
newType
- com.ibm.btt.base.types.DSEType
DSETypeException
- - Thrown if the type cannot be resetpublic void setDefaultDescriptorForType(PropertyDescription propertyDescriptor)
propertyDescriptor
- PropertyDescriptionpublic void setKeyBuilder(KeyBuilder keyBuilder)
keyBuilder
- KeyBuilder
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |