|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A relation.
| Method Summary | |
void |
delete()
Delete a given relation. |
void |
deleteProperties(IPropertyNameList propertyNameList)
Delete several specified properties (if they exist). |
void |
deleteProperty(IPropertyName propertyName)
Delete a specific property. |
java.lang.String |
getID()
Get the relation's unique id. the id is only unique with respect to the relation's type. |
IOrderedRelationPosition |
getPosition()
Get the relation's positioning. (only supported for IOrderedRelation
s). |
IPropertyMap |
getProperties()
Get all properties of the relation. |
IPropertyMap |
getProperties(IPropertyNameList propertyNameList)
Get several specified properties. |
IProperty |
getProperty(IPropertyName propertyName)
Get a specific property. |
IRelationOperand |
getSource()
Get the relation's source operand. |
java.lang.Object |
getSourceOperand()
Get the relation's source operand's value. |
IRelationOperand |
getTarget()
Get the relation's target operand. |
java.lang.Object |
getTargetOperand()
Get the relation's target operand's value. |
IRelationType |
getType()
Get the relation's type. |
void |
setPosition(IOrderedRelationPosition position)
Change the relation's position (only supported for IOrderedRelation
s). |
void |
setProperties(IPropertyMap properties)
Set several specified properties. |
void |
setProperty(IProperty property)
Set a specific property. |
IRelation |
setSource(IRelationOperand source)
Set the relation's source operand. |
IRelation |
setSourceOperand(java.lang.Object source)
Set the relation's source operand by value. |
IRelation |
setTarget(IRelationOperand target)
Set the relation's target operand. |
IRelation |
setTargetOperand(java.lang.Object target)
Set the relation's target operand value. |
| Method Detail |
public java.lang.String getID()
String with the unique id of the relation.public IRelationType getType()
IRelationType of the relation.
public IRelationOperand getSource()
throws AccessDeniedException,
ResourceException
IRelationOperand with the wrapped source operand
of the relation or null if the source isn't retrievable
any more.AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the operand is not gettable
within the context of the relation type.ResourceException - if there was an error while
retrieving the source operand.
public java.lang.Object getSourceOperand()
throws AccessDeniedException,
ResourceException
Object with the unwrapped source operand of the
relation.AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the operand is not gettable
within the context of the relation type.ResourceException - if there was an error while
retrieving the source operand.
public IRelation setSource(IRelationOperand source)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
source - the IRelationOperand with the wrapped operand to
set as source operand for the relation.IRelation with the new target operand.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the source is null
.AccessDeniedException - if the source is not settable
within the context of the relation type.ResourceException - if there was an error while setting
the source operand.
public IRelation setSourceOperand(java.lang.Object source)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
source - an Object with the operand value to set as
source operand for the relation.IRelation with the new target operand.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the source value is
null .AccessDeniedException - if the source is not settable
within the context of the relation type.ResourceException - if there was an error while setting
the source operand.
public IRelationOperand getTarget()
throws AccessDeniedException,
ResourceException
IRelationOperand with the wrapped target operand
of the relation or null if the target isn't retrievable
any more.AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the operand is not gettable
within the context of the relation type.ResourceException - if there was an error while
retrieving the target operand.
public java.lang.Object getTargetOperand()
throws AccessDeniedException,
ResourceException
Object with the unwrapped target operand value of
the relation.AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the operand is not gettable
within the context of the relation type.ResourceException - if there was an error while
retrieving the target operand.
public IRelation setTarget(IRelationOperand target)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
target - the IRelationOperand with the wrapped operand to
set as target operand for the relation.IRelation with the new target operand.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the target is null
.AccessDeniedException - if the target is not settable
within the context of the relation type.ResourceException - if there was an error while setting
the target operand.
public IRelation setTargetOperand(java.lang.Object target)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
target - the Object with the operand value to set as
target operand for the relation.IRelation with the new target operand.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the target is null
.AccessDeniedException - if the target is not settable
within the context of the relation type.ResourceException - if there was an error while setting
the target operand.
public IPropertyMap getProperties()
throws AccessDeniedException,
ResourceException
IPropertyMap with the references to all properties
of the relation.AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the properties are not
gettable within the context of the relation type.ResourceException - if there was an error in the
relation manager.
public IPropertyMap getProperties(IPropertyNameList propertyNameList)
throws AccessDeniedException,
ResourceException
propertyNameList - a IPropertyNameList as a list with the
names of the requested properties.IPropertyMap with the references to the requested
and exisiting properties. The list might be empty if no properties
with the given names where found. if the given list of names was
null all properties are selected.AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the properties are not
gettable within the context of the relation type.ResourceException - if there was an error in the
relation manager.
public void setProperties(IPropertyMap properties)
throws AccessDeniedException,
ResourceException
null .properties - a IPropertyMap as a list of properties to
add or change.AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the properties are not
gettable within the context of the relation type.ResourceException - if there was an error in the
relation manager.
public void deleteProperties(IPropertyNameList propertyNameList)
throws AccessDeniedException,
ResourceException
null .propertyNameList - a IPropertyNameList as a list with the
names of the properties to delete.AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the properties are not
deleteable within the context of the relation type.ResourceException - if there was an error in the
relation manager.
public IProperty getProperty(IPropertyName propertyName)
throws AccessDeniedException,
ResourceException
propertyName - a IPropertyName with the name of the
property to read.IProperty with a reference to the property or
null if the property was not found or the given property name
was null .AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the property is not gettable
within the context of the relation type.ResourceException - if there was an error in the
relation manager.
public void setProperty(IProperty property)
throws AccessDeniedException,
ResourceException
null
, nothing happens.property - the IProperty to set.AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the property is not settable
within the context of the relation type.ResourceException - if there was an error in the
relation manager.
public void deleteProperty(IPropertyName propertyName)
throws AccessDeniedException,
ResourceException
null
, the method will return without doing anything.propertyName - TBD: Description of the incoming method parameterAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the property is not
deleteable within the context of the relation type.ResourceException - if there was an error in the
relation manager.
public void delete()
throws AccessDeniedException,
ResourceException
AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the given context (as passed
when retrieving the relation type) has no permissions to delete the
relation.ResourceException - if there was an internal error in
the relation manager.
public IOrderedRelationPosition getPosition()
throws NotSupportedException,
ResourceException
IOrderedRelation
s).IOrderedRelationPosition of the relation. is
OrderedRelationType.LAST , if it's the last relation with
respect to the relations type and source, otherwise the type is
OrderType.AFTER and the relative is the predecessors id.NotSupportedException - Exception raised in failure situationResourceException - Exception raised in failure situationNotSupportedException - if this relation does not
belong to a ordered relation type.ResourceException - if there was an internal error in
the relation manager.
public void setPosition(IOrderedRelationPosition position)
throws NotSupportedException,
InvalidArgumentException,
ResourceException
IOrderedRelation
s).position - the new IOrderedRelationPosition for this
relation. if null, the relation's position remains
unchanged.- Throws:
NotSupportedException - Exception raised in failure situationInvalidArgumentException - Exception raised in failure situationResourceException - Exception raised in failure situationNotSupportedException - if this relation does not
belong to a ordered relation type.InvalidArgumentException - if the given position can
not be used for this relation.ResourceException - if there was an internal error in
the relation manager.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||