Class IsPersistedAutoCommand
- java.lang.Object
-
- com._1c.g5.v8.dt.form.mapping.cmi.criteria.IsPersistedAutoCommand
-
- All Implemented Interfaces:
IQuery<Boolean,CommandInterfaceMapping>
public class IsPersistedAutoCommand extends Object implements IQuery<Boolean,CommandInterfaceMapping>
Check any auto command is persisted.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IsPersistedAutoCommand(Command command, AbstractDataPath enPath, AbstractDataPath ruPath)
Creates a new query.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IsPersistedAutoCommand
isPersisted(Command command, AbstractDataPath enPath, AbstractDataPath ruPath)
Creates a new queryBoolean
select(CommandInterfaceMapping root, Map<Object,? extends List<IMappingModel<? extends org.eclipse.emf.ecore.EObject>>> mapping)
The method selects data fromMapping
.
-
-
-
Constructor Detail
-
IsPersistedAutoCommand
protected IsPersistedAutoCommand(Command command, AbstractDataPath enPath, AbstractDataPath ruPath)
Creates a new query.- Parameters:
command
- the searching command.enPath
- the en path of auto command.ruPath
- the ru path of auto command.
-
-
Method Detail
-
isPersisted
public static final IsPersistedAutoCommand isPersisted(Command command, AbstractDataPath enPath, AbstractDataPath ruPath)
Creates a new query- Parameters:
command
- the searching command.enPath
- the en path of auto command.ruPath
- the ru path of auto command.- Returns:
- return new query.
-
select
public Boolean select(CommandInterfaceMapping root, Map<Object,? extends List<IMappingModel<? extends org.eclipse.emf.ecore.EObject>>> mapping)
The method selects data fromMapping
. Data can get from mapping root model(IMappingRoot
) or map of relation between domain model and basic mapping model (TBasicModel
).- Specified by:
select
in interfaceIQuery<Boolean,CommandInterfaceMapping>
- Parameters:
root
- - is root mapping object.mapping
- - is map of relation (domain model - basic mapping model)- Returns:
- the result of query.
-
-