Class SavePersistentEntitySubCommand
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.SavePersistentEntitySubCommand
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGlobalReplacement(TypeInstanceIdentifier old_id, TypeInstanceIdentifier new_id)
Supported API: trueint
Supported API: true
Supported API: trueintgetIndex(AssociationTypeIdentifier the_association_type_identifier, TypeInstanceIdentifier the_type_instance_identifier, int start_index)
Supported API: trueintgetIndex(TypeInstanceIdentifier the_type_instance_identifier)
Supported API: truegetTypeInstance(int the_index)
Supported API: truevoidinitialize(SavePersistentEntityCommand save_command)
Supported API: truebooleanisHandled(int the_index)
Supported API: truevoidmakeHandled(int the_index)
Supported API: truevoidmergeResult(TypeInstance result_type_instance, int the_index)
Supported API: truepersist(TypeInstance the_source)
Supported API: truevoidprocessReplacements(TypeInstance replacing_type_instance, int the_index)
Supported API: true
-
Constructor Details
-
SavePersistentEntitySubCommand
public SavePersistentEntitySubCommand()Creates a new instance.
Supported API: true
-
-
Method Details
-
initialize
Supported API: true- Parameters:
save_command-- Throws:
CommandException
-
getCurrentIndex
public int getCurrentIndex()
Supported API: true- Returns:
- int
-
getIndex
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
Supported API: true- Parameters:
the_index-- Returns:
- TypeInstance
-
isHandled
public boolean isHandled(int the_index)
Supported API: true- Parameters:
the_index-- Returns:
- boolean
-
persist
Supported API: true- Parameters:
the_source-- Returns:
- TypeInstance
- Throws:
CommandException
-
processReplacements
Supported API: true- Parameters:
replacing_type_instance-the_index-
-
mergeResult
Supported API: true- Parameters:
result_type_instance-the_index-
-
makeHandled
public void makeHandled(int the_index)
Supported API: true- Parameters:
the_index-
-
addGlobalReplacement
Supported API: true- Parameters:
old_id-new_id-
-
getGlobalReplacements
Supported API: true- Returns:
- Map
-