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:
-
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 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: trueMethods inherited from class com.ptc.core.command.common.bean.entity.AbstractPersistentEntityCommand
readVersionMethods inherited from class com.ptc.core.command.common.bean.entity.AbstractEntityCommand
getResult, getResultList, getSource, readVersion, setResult, setSource, setSource, setSourceMethods 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
-
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
-