Class NewEntityCommand
java.lang.Object
com.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.NewEntityCommand
- All Implemented Interfaces:
Command,com.ptc.core.command.common.ServerCommand,Externalizable,Serializable
public class NewEntityCommand
extends com.ptc.core.command.common.bean.entity.AbstractEntityCommand
implements Externalizable
This command can be used to make a new in-memory instance of either a
transient or persistent entity (i.e., object). It takes as input a
TypeIdentifier
playing the role of the requestor of the command.
It returns as output an AttributeContainer inherited as
the result.
Supported API: true
Extendable: true
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the attribute: identifier; The inputTypeIdentifier.Overrides the inherited method to throwUnsupportedOperationException.voidsetIdentifier(TypeIdentifier a_Identifier) Sets the value of the attribute: identifier; The inputTypeIdentifier.voidsetSource(TypeInstanceIdentifier instanceId) Overrides inherited method to throwUnsupportedOperationException.voidsetSource(TypeInstanceIdentifier instanceId, AttributeContainer instanceData) Overrides inherited method to throwUnsupportedOperationException.voidsetSource(TypeInstance instance) Overrides the inherited method to throwUnsupportedOperationException.voidsetSources(TypeInstanceIdentifier[] instanceIds) Sets the sources [or inputs] of the command to the givenTypeInstanceIdentifier[].
-
Constructor Details
-
NewEntityCommand
public NewEntityCommand()Creates a new instance.
Supported API: true
-
-
Method Details
-
getIdentifier
Gets the value of the attribute: identifier; The inputTypeIdentifier.
Supported API: true- Returns:
- TypeIdentifier
-
setIdentifier
Sets the value of the attribute: identifier; The inputTypeIdentifier.
Supported API: true- Parameters:
a_Identifier-- Throws:
WTPropertyVetoException
-
setSource
Overrides the inherited method to throwUnsupportedOperationException. Since only aTypeIdentifiermakes sense to be given as the input, then nothing else should be allowed.
Supported API: true- Overrides:
setSourcein classcom.ptc.core.command.common.bean.entity.AbstractEntityCommand- Parameters:
instance-- Throws:
UnsupportedOperationException
-
getSource
Overrides the inherited method to throwUnsupportedOperationException. Since only aTypeIdentifiermakes sense to be given as the input, then nothing else should be allowed.
Supported API: true- Overrides:
getSourcein classcom.ptc.core.command.common.bean.entity.AbstractEntityCommand- Returns:
- TypeInstance
- Throws:
UnsupportedOperationException
-
setSource
Overrides inherited method to throwUnsupportedOperationException. Since only aTypeIdentifiermakes sense to be given as the input, then nothing else should be allowed.
Supported API: true- Overrides:
setSourcein classcom.ptc.core.command.common.bean.entity.AbstractEntityCommand- Parameters:
instanceId-- Throws:
UnsupportedOperationException
-
setSource
public void setSource(TypeInstanceIdentifier instanceId, AttributeContainer instanceData) throws UnsupportedOperationException Overrides inherited method to throwUnsupportedOperationException. Since only aTypeIdentifiermakes sense to be given as the input, then nothing else should be allowed.
Supported API: true- Overrides:
setSourcein classcom.ptc.core.command.common.bean.entity.AbstractEntityCommand- Parameters:
instanceId-instanceData-- Throws:
UnsupportedOperationException
-
setSources
Sets the sources [or inputs] of the command to the givenTypeInstanceIdentifier[]. The outcome of this is that the objects represented by theTypeInstanceIdentifier[]are prepared based upon the filter and returned as aTypeInstance[].
Supported API: true- Parameters:
instanceIds-
-