com.ptc.core.command.common.bean.entity
Class CreatePersistentEntityCommand

java.lang.Object
  extended by com.ptc.core.command.common.bean.AbstractCommand
      extended by com.ptc.core.command.common.bean.AbstractServerCommand
          extended by com.ptc.core.command.common.bean.entity.AbstractEntityCommand
              extended by com.ptc.core.command.common.bean.entity.AbstractPersistentEntityCommand
                  extended by com.ptc.core.command.common.bean.entity.CreatePersistentEntityCommand
All Implemented Interfaces:
com.ptc.core.command.common.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:
Serialized Form

Constructor Summary
CreatePersistentEntityCommand()
          Creates a new instance.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreatePersistentEntityCommand

public CreatePersistentEntityCommand()
Creates a new instance.

Supported API: true