it.amattioli.workstate.specifications.DefaultMachineSpecification Maven / Gradle / Ivy
package it.amattioli.workstate.specifications;
import it.amattioli.dominate.Entity;
import it.amattioli.dominate.specifications.Assembler;
import it.amattioli.dominate.specifications.dflt.PredicateAssembler;
import it.amattioli.dominate.specifications.dflt.SpecificationPredicate;
public class DefaultMachineSpecification> extends MachineSpecification {
public DefaultMachineSpecification(String propertyName, String workflowName) {
super(propertyName, workflowName);
}
public DefaultMachineSpecification(String propertyName, String workflowName, MachineSpecification chained) {
super(propertyName, workflowName, chained);
}
@Override
public void itselfAssembleQuery(Assembler assembler) {
((PredicateAssembler)assembler).addAssembledPredicate(new SpecificationPredicate(this));
}
@Override
public boolean itselfSupportsAssembler(Assembler assembler) {
return assembler instanceof PredicateAssembler;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy