Class CreatePersistentEntityCommand

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.CreatePersistentEntityCommand
All Implemented Interfaces:
Command, com.ptc.core.command.common.ServerCommand, Externalizable, Serializable

public class CreatePersistentEntityCommand extends com.ptc.core.command.common.bean.entity.AbstractPersistentEntityCommand implements Externalizable
This command can be used to create in the database an existing in-memory instance of a persistable entity (i.e., object). It takes as input a TypeInstance playing the role of the requestor of the command. It returns as output a TypeInstance overriding the inherited result.

In order for the requestor to be correctly created in the database it must represent an appropriate persistable type of object. Otherwise, an exception will be thrown indicating that the entity is not a persistent kind of object.



Supported API: true

Extendable: true
See Also:
  • Field Summary

    Fields inherited from class com.ptc.core.command.common.bean.AbstractServerCommand

    SERVER

    Fields inherited from interface com.ptc.core.command.common.Command

    FEEDBACK_SPEC, LOCALE

    Fields inherited from interface com.ptc.core.command.common.ServerCommand

    COMMAND_CONTEXT, CONTAINER_IDENTIFIER, FILTER
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Methods inherited from class com.ptc.core.command.common.bean.entity.AbstractPersistentEntityCommand

    readVersion

    Methods inherited from class com.ptc.core.command.common.bean.entity.AbstractEntityCommand

    getRequestor, getResult, getResultList, getSource, readVersion, setResult, setSource, setSource, setSource

    Methods inherited from class com.ptc.core.command.common.bean.AbstractServerCommand

    execute, getCommandContext, getContainerIdentifier, getFilter, isExecutable, putOnCommandContext, readVersion, setCommandContext, setContainerIdentifier, setFilter

    Methods inherited from class com.ptc.core.command.common.bean.AbstractCommand

    getFeedbackSpec, getLocale, getSelectorTypename, getTargetLanguage, readVersion, setFeedbackSpec, setLocale, setTargetLanguage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.ptc.core.command.common.Command

    getFeedbackSpec, getLocale, getSelectorTypename, getTargetLanguage, setFeedbackSpec, setLocale, setTargetLanguage
  • Constructor Details

    • CreatePersistentEntityCommand

      public CreatePersistentEntityCommand()
      Creates a new instance.

      Supported API: true