|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ptc.core.command.common.bean.AbstractCommand
com.ptc.core.command.common.bean.AbstractServerCommand
com.ptc.core.command.common.bean.entity.AbstractEntityCommand
com.ptc.core.command.common.bean.entity.PrepareEntityCommand
public class PrepareEntityCommand
This command can be used to prepare one or more source objects(TypeInstance)
for further processing. The preparation required is identified by the
nextOperation property of the filter AttributeContainerSpec
or by specialization of this class.
The object returned result may or may not represent a persisted object as this command can prepare templates for new object creation or for performing searches for persistent entities.
| Constructor Summary | |
|---|---|
PrepareEntityCommand()
Supported API: true |
|
| Method Summary | |
|---|---|
void |
setSource(TypeIdentifier identifier)
Sets the source [or input] of the command to the given TypeIdentifier. |
void |
setSource(TypeIdentifier identifier,
AttributeContainer instanceData)
Sets the source [or input] of the command to the given TypeIdentifier. |
void |
setSource(TypeInstance instance)
Sets the source [or input] of the command to the given TypeInstance. |
void |
setSource(TypeInstanceIdentifier instanceId)
Sets the source [or input] of the command to the given TypeInstanceIdentifier. |
void |
setSource(TypeInstanceIdentifier instanceId,
AttributeContainer instanceData)
Sets the source [or input] of the command to the given TypeInstanceIdentifier. |
void |
setSources(TypeInstanceIdentifier[] instanceIds)
Sets the sources [or inputs] of the command to the given TypeInstanceIdentifier[]. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrepareEntityCommand()
| Method Detail |
|---|
public void setSource(TypeInstanceIdentifier instanceId)
throws WTPropertyVetoException,
UnsupportedOperationException
TypeInstanceIdentifier.
The outcome of this is that the object represented by the TypeInstanceIdentifier
is prepared based upon the filter and returned as aTypeInstance.
setSource in class com.ptc.core.command.common.bean.entity.AbstractEntityCommandinstanceId -
WTPropertyVetoException
UnsupportedOperationException
public void setSource(TypeInstance instance)
throws WTPropertyVetoException,
UnsupportedOperationException
TypeInstance.
If the TypeInstance represents an already persistent
instance, a fresh copy is returned from persistent storage. Any attributes
on the supplied TypeInstance are treated as initial values
on the returned TypeInstance, assuming that the attributes
are represented in the supplied filter.
setSource in class com.ptc.core.command.common.bean.entity.AbstractEntityCommandinstance -
WTPropertyVetoException
UnsupportedOperationException
public void setSource(TypeInstanceIdentifier instanceId,
AttributeContainer instanceData)
throws WTPropertyVetoException,
UnsupportedOperationException
TypeInstanceIdentifier.
The command result represents a refreshed copy of the object identified
by the TypeInstanceIdentifier. If the nextOperation
identified in the filter is some form of creation, theAttributeContainer
can be used to supply initial values.
setSource in class com.ptc.core.command.common.bean.entity.AbstractEntityCommandinstanceId - instanceData -
WTPropertyVetoException
UnsupportedOperationException
public void setSource(TypeIdentifier identifier,
AttributeContainer instanceData)
throws WTPropertyVetoException,
UnsupportedOperationException
TypeIdentifier.
The command result represents a instance of the specified TypeIdentifier
based upon the nextOperation specified in the AttributeContainerSpec
filter. This method is typically used in some form of creation or
search when an existing instance is not required. The supplied AttributeContainer
can be used to supply initial values that are populated in the returned
instance.
identifier - instanceData -
WTPropertyVetoException
UnsupportedOperationException
public void setSource(TypeIdentifier identifier)
throws WTPropertyVetoException,
UnsupportedOperationException
TypeIdentifier.
The command result represents a instance of the specified TypeIdentifier
based upon the nextOperation specified in the AttributeContainerSpec
filter. This method is typically used in some form of creation or
search when an existing instance is not required.
identifier -
WTPropertyVetoException
UnsupportedOperationExceptionpublic void setSources(TypeInstanceIdentifier[] instanceIds)
TypeInstanceIdentifier[].
The outcome of this is that the objects represented by the TypeInstanceIdentifier[]
are prepared based upon the filter and returned as aTypeInstance[].
instanceIds -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||