Class RetrievePersistentEntityCommand
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.AbstractPersistentEntityCommand
com.ptc.core.command.common.bean.entity.RetrievePersistentEntityCommand
- All Implemented Interfaces:
Command,com.ptc.core.command.common.ServerCommand,Externalizable,Serializable
public class RetrievePersistentEntityCommand
extends com.ptc.core.command.common.bean.entity.AbstractPersistentEntityCommand
implements Externalizable
This command can be used to refresh the given persistent entity or retrieve
one from the database. It takes as input a
Supported API: true
Extendable: true
TypeInstance
to the source of the command. It returns as output a TypeInstance
that is the result of either a refresh or retrieve.
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from class com.ptc.core.command.common.bean.AbstractServerCommand
SERVERFields inherited from interface com.ptc.core.command.common.Command
FEEDBACK_SPEC, LOCALEFields inherited from interface com.ptc.core.command.common.ServerCommand
COMMAND_CONTEXT, CONTAINER_IDENTIFIER, FILTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetSource(TypeInstance instance) Overrides the inherited method to throwUnsupportedOperationException.voidsetSources(TypeInstanceIdentifier[] instanceIds) Sets the sources [or inputs] of the command to the givenTypeInstanceIdentifier[].Methods inherited from class com.ptc.core.command.common.bean.entity.AbstractPersistentEntityCommand
readVersionMethods inherited from class com.ptc.core.command.common.bean.entity.AbstractEntityCommand
getRequestor, getResult, getSource, readVersion, setResultMethods inherited from class com.ptc.core.command.common.bean.AbstractServerCommand
execute, getCommandContext, getContainerIdentifier, getFilter, isExecutable, putOnCommandContext, readVersion, setCommandContext, setContainerIdentifier, setFilterMethods inherited from class com.ptc.core.command.common.bean.AbstractCommand
getFeedbackSpec, getLocale, getSelectorTypename, getTargetLanguage, readVersion, setFeedbackSpec, setLocale, setTargetLanguageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.core.command.common.Command
getFeedbackSpec, getLocale, getSelectorTypename, getTargetLanguage, setFeedbackSpec, setLocale, setTargetLanguage
-
Constructor Details
-
RetrievePersistentEntityCommand
public RetrievePersistentEntityCommand()Creates a new instance.
Supported API: true
-
-
Method Details
-
setSources
Sets the sources [or inputs] of the command to the givenTypeInstanceIdentifier[]. The outcome of this is that the objects represented by theTypeInstanceIdentifier[]are retrieved based upon the filter and returned as aTypeInstance[].
Supported API: true- Parameters:
instanceIds-
-
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
-