|
Cool documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Describes the properties of an aspect.
| Field Summary | |
static java.lang.String |
ATTRIBUTE_EXTERNAL_KEYS
The backend name of the system attribute ExternalKeys. |
static java.lang.String |
ATTRIBUTE_FIELDWISE_OPERATION
The backend name of the system attribute FieldwiseOperation. |
static java.lang.String |
ATTRIBUTE_INSERT_RELATION
The backend name of the system attribute InsertRelation. |
static java.lang.String |
ATTRIBUTE_INSERT_RELATION_REQUIRED
The backend name of the system attribute InsertRelationRequired. |
static java.lang.String |
ATTRIBUTE_LOCKMODE_EXCLUSIVE
The backend name of the system attribute LockmodeExclusive. |
static java.lang.String |
ATTRIBUTE_LOCKMODE_SHARED
The backend name of the system attribute LockmodeShared. |
static java.lang.String |
ATTRIBUTE_LOCKMODE_SHARED_PROMOTABLE
The backend name of the system attribute LockmodeSharedPromotable. |
static java.lang.String |
ATTRIBUTE_MULTI_INSTANCE_SUPPORT
The backend name of the system attribute MultiInstanceSupport. |
static java.lang.String |
ATTRIBUTE_NO_CHANGE
The backend name of the system attribute NoChange. |
static java.lang.String |
ATTRIBUTE_ROWWISE_OPERATION
The backend name of the system attribute RowwiseOperation. |
| Method Summary | |
void |
clearRowAttributes()
Clears all dynamically set attribute values that are currently cached in this aspect descriptor for any rows. |
void |
clearRowAttributes(java.lang.String rowKey)
Clears all dynamically set attribute values for the given aspect row. |
int |
getActionAttributeAffects(java.lang.String actionName)
Returns which side effects are to be excpected when performing the given aspect action. |
int |
getActionAttributeAffects(java.lang.String rowKey,
java.lang.String actionName)
Returns which side effects are to be excpected when performing the given aspect action on the given aspect row. |
java.lang.String[] |
getActionAttributeNames(java.lang.String actionName)
Returns an array with the names of all the attributes for a specified action. |
java.lang.String[] |
getActionAttributeNames(java.lang.String rowKey,
java.lang.String actionName)
Returns an array with the names of all the attributes which are set for an action of the given aspect row. |
java.lang.String |
getActionAttributeRelation(java.lang.String actionName)
Returns the name of the relation whose target aspect the action can affect for the given aspect action. |
java.lang.String |
getActionAttributeStringValue(java.lang.String actionName,
java.lang.String attributeName)
Returns the value that is stored in the aspect for the given attribute of the given action. |
java.lang.String |
getActionAttributeStringValue(java.lang.String rowKey,
java.lang.String actionName,
java.lang.String attributeName)
Returns the value that is stored for the given attribute for the given aspect row. |
IAspectActionDescriptor |
getAspectActionDescriptor(java.lang.String name)
Returns the descriptor of the aspect action with the specified name |
IAspectActionDescriptor[] |
getAspectActionDescriptors()
Returns an array with descriptors of all aspect actions. |
IAspectGroupDescriptor |
getAspectGroupDescriptor(java.lang.String name)
Returns the descriptor of the aspect group with the specified name |
IAspectGroupDescriptor[] |
getAspectGroupDescriptors()
Returns an array with descriptors of all aspect groups. |
boolean |
getAttributeExternalKeys()
Returns whether externally provided keys can be provided at newly created objects. |
boolean |
getAttributeFieldwiseOperation()
Returns whether field wise operations are available in this aspect. |
java.lang.String |
getAttributeInsertRelation()
Returns the name of the relation to the aspect of which a record can be specified as related to records which are inserted in this aspect. |
boolean |
getAttributeInsertRelationRequired()
Returns whether the insert operation of this aspect requires the object to which the inserted object(s) are related to be specified. |
boolean |
getAttributeLockmodeExclusive()
Returns whether the exclusive lock mode is supported. |
boolean |
getAttributeLockmodeShared()
Returns whether the shared lock mode is supported. |
boolean |
getAttributeLockmodeSharedPromotable()
Returns whether the shared promotable lock mode is supported. |
boolean |
getAttributeMultiInstanceSupport()
Returns whether Update/Insert/Actions can act on multiple instances. |
java.lang.String[] |
getAttributeNames()
Returns an array with the names of all the attributes which are set for this aspect. |
boolean |
getAttributeNoChange()
Returns whether Update/Insert/Delete or Action without COL_AFFECTS_NOTHING attribute being set is supported in this aspect. |
boolean |
getAttributeRowwiseOperation()
Returns whether row wise operations are available in this aspect. |
java.lang.String |
getAttributeStringValue(java.lang.String attributeName)
Returns the value that is stored in the aspect for the given attribute. |
java.lang.String |
getDescription()
Returns the description of this aspect. |
java.lang.String[] |
getFieldAttributeNames(java.lang.String fieldName)
Returns an array with the names of all the attributes for a specified field. |
java.lang.String[] |
getFieldAttributeNames(java.lang.String rowKey,
java.lang.String fieldName)
Returns an array with the names of all the attributes which are set for a structure field of given aspect row. |
java.lang.String |
getFieldAttributeStringValue(java.lang.String fieldName,
java.lang.String attributeName)
Returns the value that is stored in the aspect for the given attribute of the given field. |
java.lang.String |
getFieldAttributeStringValue(java.lang.String rowKey,
java.lang.String fieldName,
java.lang.String attributeName)
Returns the value that is stored for the given attribute for the given aspect row. |
IKeyAspectDescriptor |
getKeyDescriptor()
Returns the key aspect descriptor for this aspect. |
java.lang.String |
getName()
Returns the name of the aspect. |
IRelationDescriptor |
getRelationDescriptor(java.lang.String name)
Returns the descriptor for the relation with the specified name. |
IRelationDescriptor[] |
getRelationDescriptors()
Returns an array with descriptors of all relations for which this aspect is the source aspect. |
IServiceModuleDescriptor |
getServiceModuleDescriptor()
Returns the service module descriptor of the service module for which this aspect is cached in the repository. |
IStructureDescriptor |
getStructure()
Returns the structure desciptor for aspect rows of this aspect. |
IValueSetDescriptor |
getValueSetDescriptor(java.lang.String fieldName)
Returns the value set descriptor for the given field of the aspect structure. |
boolean |
isKeyAspect()
Returns whether this aspect is a key aspect. |
java.lang.String |
toString()
returns a string representation of this AspectDescriptor for test purposes only |
| Field Detail |
public static final java.lang.String ATTRIBUTE_EXTERNAL_KEYS
public static final java.lang.String ATTRIBUTE_FIELDWISE_OPERATION
public static final java.lang.String ATTRIBUTE_LOCKMODE_EXCLUSIVE
public static final java.lang.String ATTRIBUTE_LOCKMODE_SHARED_PROMOTABLE
public static final java.lang.String ATTRIBUTE_LOCKMODE_SHARED
public static final java.lang.String ATTRIBUTE_MULTI_INSTANCE_SUPPORT
public static final java.lang.String ATTRIBUTE_ROWWISE_OPERATION
public static final java.lang.String ATTRIBUTE_INSERT_RELATION
public static final java.lang.String ATTRIBUTE_INSERT_RELATION_REQUIRED
public static final java.lang.String ATTRIBUTE_NO_CHANGE
| Method Detail |
public java.lang.String getName()
public java.lang.String getDescription()
public IRelationDescriptor getRelationDescriptor(java.lang.String name)
public IRelationDescriptor[] getRelationDescriptors()
public IAspectActionDescriptor getAspectActionDescriptor(java.lang.String name)
public IAspectActionDescriptor[] getAspectActionDescriptors()
public IAspectGroupDescriptor getAspectGroupDescriptor(java.lang.String name)
public IAspectGroupDescriptor[] getAspectGroupDescriptors()
public IValueSetDescriptor getValueSetDescriptor(java.lang.String fieldName)
null is returned.fieldName - the name of the aspect structure field.null.public java.lang.String getAttributeStringValue(java.lang.String attributeName)
null ist returned.attributeName - The name of the attribute.null.public java.lang.String[] getAttributeNames()
public boolean getAttributeNoChange()
false.true if a change operation is not supported, otherwise falseUnsupportedOperationException - if the backend did not set the system property 'COL_NO_CHANGE' for this aspect.public boolean getAttributeExternalKeys()
false, keys are generated internally.
In any cases keys cannot be updated. However, if this is set to true,
the key fields can be filled in at the insert operation.
Defaults to false.true if externally provided keys can be
provided at newly created objects, otherwise falseUnsupportedOperationException - if the backend did not set the system property 'COL_EXTERNAL_KEYS' for this aspect.public boolean getAttributeFieldwiseOperation()
false.true if field wise operations are available, otherwise falseUnsupportedOperationException - if the backend did not set the system property 'COL_FIELDWISE_OP' for this aspect.public boolean getAttributeLockmodeExclusive()
false.true if the exclusive lock mode is supported, otherwise falseUnsupportedOperationException - if the backend did not set the system property 'COL_LOCKMODE_E' for this aspect.public boolean getAttributeLockmodeSharedPromotable()
false.true if the shared promotable lock mode is supported, otherwise falseUnsupportedOperationException - if the backend did not set the system property 'COL_LOCKMODE_SP' for this aspect.public boolean getAttributeLockmodeShared()
false.true if the shared lock mode is supported, otherwise falseUnsupportedOperationException - if the backend did not set the system property 'COL_LOCKMODE_S' for this aspect.public boolean getAttributeMultiInstanceSupport()
false, the update and insert methods as well as
the action.execute method can only act on single rows.
Defaults to false.true if Update/Insert/Actions can act on multiple instances, otherwise falseUnsupportedOperationException - if the backend did not set the system property 'COL_MULTIINSTANCE_SUPPORT' for this aspect.public boolean getAttributeRowwiseOperation()
false.true if row wise operations are available, otherwise falseUnsupportedOperationException - if the backend did not set the system property 'COL_ROWWISE_OP' for this aspect.public boolean getAttributeInsertRelationRequired()
true, if getAttributeInsertRelation()
does not return an empty string.true if the insert operation on this aspect requires
a related object to be specified, otherwise falseUnsupportedOperationException - if the backend did not set the system property 'COL_ROWWISE_OP' for this aspect.getAttributeInsertRelation()public java.lang.String getAttributeInsertRelation()
UnsupportedOperationException - if the backend did not set the system property 'COL_ROWWISE_OP' for this aspect.getAttributeInsertRelationRequired()
public java.lang.String getFieldAttributeStringValue(java.lang.String fieldName,
java.lang.String attributeName)
null ist returned.fieldName - The name of the field for which the attribute
is stored.attributeName - The name of the attribute.null.public java.lang.String[] getFieldAttributeNames(java.lang.String fieldName)
java.lang.IllegalArgumentException - if the field does not exist
in this aspect.getStructure(),
IStructureDescriptor.getFieldDescriptor(int)
public java.lang.String getFieldAttributeStringValue(java.lang.String rowKey,
java.lang.String fieldName,
java.lang.String attributeName)
null ist returned.
This method will return the value that was dynamically set for the
attribute of the structure field for the given aspect row. If no
value was set dynamically, the value which was statically set for
the structure field in the aspect is returned.rowKey - The key of the aspect rowfieldName - The name of the field for which the attribute
is stored.attributeName - The name of the attribute.null.
public java.lang.String[] getFieldAttributeNames(java.lang.String rowKey,
java.lang.String fieldName)
getFieldAttributeStringValue(String rowKey, String fieldName, String attributeName)rowKey - The key of the aspect rowgetFieldAttributeStringValue(String, String, String)
public java.lang.String getActionAttributeStringValue(java.lang.String rowKey,
java.lang.String actionName,
java.lang.String attributeName)
null ist returned.
This method will return the value that was dynamically set for the
attribute of the aspect action for the given aspect row. If no
value was set dynamically, the value which was statically set for
the attribute of the aspect action is returned.rowKey - The key of the aspect rowactionName - The name of the action for which the attribute
is stored.attributeName - The name of the attribute.null.
public java.lang.String[] getActionAttributeNames(java.lang.String rowKey,
java.lang.String actionName)
getActionAttributeStringValue(String rowKey, String fieldName, String attributeName)rowKey - The key of the aspect rowactionName - The name of the actiongetActionAttributeStringValue(String, String, String)
public java.lang.String getActionAttributeStringValue(java.lang.String actionName,
java.lang.String attributeName)
null ist returned.actionName - The name of the field for which the attribute
is stored.attributeName - The name of the attribute.null.public java.lang.String[] getActionAttributeNames(java.lang.String actionName)
actionName - The name of the actionjava.lang.IllegalArgumentException - if the action does not exist
in this aspect.public java.lang.String getActionAttributeRelation(java.lang.String actionName)
actionName - The name of the actionpublic int getActionAttributeAffects(java.lang.String actionName)
actionName - The name of the actionIAspectActionDescriptor.AFFECTS_NOTHING,
IAspectActionDescriptor.AFFECTS_OUTRECORDS,
IAspectActionDescriptor.AFFECTS_ASPECT,
IAspectActionDescriptor#AFFECTS_ANYTHING
public int getActionAttributeAffects(java.lang.String rowKey,
java.lang.String actionName)
rowKey - The key of the aspect rowactionName - The name of the actionIAspectActionDescriptor.AFFECTS_NOTHING,
IAspectActionDescriptor.AFFECTS_OUTRECORDS,
IAspectActionDescriptor.AFFECTS_ASPECT,
IAspectActionDescriptor#AFFECTS_ANYTHINGpublic void clearRowAttributes(java.lang.String rowKey)
getFieldAttributeStringValue(String rowKey, String fieldName, String attributeName)
will return only the statically set attributes for the aspectsrowKey - The key of the aspect rowgetFieldAttributeStringValue(String, String, String)public void clearRowAttributes()
public boolean isKeyAspect()
false for
all aspect descriptors which are not an instance of IKeyDescriptortrue if the aspect is a key aspect, false otherwise.IKeyAspectDescriptorpublic IStructureDescriptor getStructure()
public IServiceModuleDescriptor getServiceModuleDescriptor()
public IKeyAspectDescriptor getKeyDescriptor()
public java.lang.String toString()
toString in class java.lang.Object
|
Cool documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||