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

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

public class SavePersistentEntitySubCommand
extends com.ptc.core.command.common.bean.entity.AbstractPersistentEntityCommand
implements Externalizable



Supported API: true

Extendable: true

See Also:
Serialized Form

Constructor Summary
SavePersistentEntitySubCommand()
          Creates a new instance.
 
Method Summary
 void addGlobalReplacement(TypeInstanceIdentifier old_id, TypeInstanceIdentifier new_id)
          

Supported API: true
 int getCurrentIndex()
          

Supported API: true
 Map getGlobalReplacements()
          

Supported API: true
 int getIndex(AssociationTypeIdentifier the_association_type_identifier, TypeInstanceIdentifier the_type_instance_identifier, int start_index)
          

Supported API: true
 int getIndex(TypeInstanceIdentifier the_type_instance_identifier)
          

Supported API: true
 TypeInstance getTypeInstance(int the_index)
          

Supported API: true
 void initialize(SavePersistentEntityCommand save_command)
          

Supported API: true
 boolean isHandled(int the_index)
          

Supported API: true
 void makeHandled(int the_index)
          

Supported API: true
 void mergeResult(TypeInstance result_type_instance, int the_index)
          

Supported API: true
 TypeInstance persist(TypeInstance the_source)
          

Supported API: true
 void processReplacements(TypeInstance replacing_type_instance, int the_index)
          

Supported API: true
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SavePersistentEntitySubCommand

public SavePersistentEntitySubCommand()
Creates a new instance.

Supported API: true

Method Detail

initialize

public void initialize(SavePersistentEntityCommand save_command)
                throws com.ptc.core.command.common.CommandException


Supported API: true

Parameters:
save_command -
Throws:
com.ptc.core.command.common.CommandException

getCurrentIndex

public int getCurrentIndex()


Supported API: true

Returns:
int

getIndex

public int getIndex(TypeInstanceIdentifier the_type_instance_identifier)


Supported API: true

Parameters:
the_type_instance_identifier -
Returns:
int

getIndex

public int getIndex(AssociationTypeIdentifier the_association_type_identifier,
                    TypeInstanceIdentifier the_type_instance_identifier,
                    int start_index)


Supported API: true

Parameters:
the_association_type_identifier -
the_type_instance_identifier -
start_index -
Returns:
int

getTypeInstance

public TypeInstance getTypeInstance(int the_index)


Supported API: true

Parameters:
the_index -
Returns:
TypeInstance

isHandled

public boolean isHandled(int the_index)


Supported API: true

Parameters:
the_index -
Returns:
boolean

persist

public TypeInstance persist(TypeInstance the_source)
                     throws com.ptc.core.command.common.CommandException


Supported API: true

Parameters:
the_source -
Returns:
TypeInstance
Throws:
com.ptc.core.command.common.CommandException

processReplacements

public void processReplacements(TypeInstance replacing_type_instance,
                                int the_index)


Supported API: true

Parameters:
replacing_type_instance -
the_index -

mergeResult

public void mergeResult(TypeInstance result_type_instance,
                        int the_index)


Supported API: true

Parameters:
result_type_instance -
the_index -

makeHandled

public void makeHandled(int the_index)


Supported API: true

Parameters:
the_index -

addGlobalReplacement

public void addGlobalReplacement(TypeInstanceIdentifier old_id,
                                 TypeInstanceIdentifier new_id)


Supported API: true

Parameters:
old_id -
new_id -

getGlobalReplacements

public Map getGlobalReplacements()


Supported API: true

Returns:
Map