Examples of Procedure


Examples of com.wordpress.salaboy.model.Procedure

 
        PersistenceService persistenceService = PersistenceServiceProvider.getPersistenceService();
        ContextTrackingService trackingService = ContextTrackingProvider.getTrackingService();

        //create a new Procedure: this is the representation of the Procedure Service
        Procedure newProcedure = new Procedure(procedureName);

        //Get the requested ProcedureService from Spring
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("procedures-beans.xml");
        ProcedureService procedureService = (ProcedureService) context.getBean(procedureName);

        //Store the procedure so it has a valid id
        persistenceService.storeProcedure(newProcedure);

        //Configure the ProcedureService
        procedureService.configure(emergencyId, newProcedure, parameters);

        //Update the procedure.
        persistenceService.storeProcedure(newProcedure);

        //the process is attached to the emergency
        trackingService.attachProcedure(emergencyId, newProcedure.getId());

        return procedureService;
    }
View Full Code Here

Examples of jfix.functor.Procedure

    }
  }

  private void traverseAndSave(Object candidate) {
    if (candidate != null) {
      traverseAndExecute(candidate, new Procedure() {
        public void execute(Object object) {
          traverseAndSave(object);
        }
      });
      if (candidate instanceof Persistent) {
View Full Code Here

Examples of jfix.functor.Procedure

  private void traverseAndDelete(Object candidate) {
    if (candidate != null) {
      // Don't cascade delete on values.
      if (!(candidate instanceof Persistent.Value)) {
        traverseAndExecute(candidate, new Procedure() {
          public void execute(Object object) {
            traverseAndDelete(object);
          }
        });
      }
View Full Code Here

Examples of jfun.yan.lifecycle.Procedure

      String nuts_resource){
    setSpringAware(module_name, processor, processor.getClassLoader(), nuts_resource);
  }
  private static DefaultLifecycleManager.DefaultLifecycle newBeanLifecycle(
      DefaultLifecycleManager man){
    return man.newLifecycle().disposer(new Procedure(){
      public void invoke(Object self, Object[] args) throws Throwable {
        ((DisposableBean)self).destroy();
      }
    });
  }
View Full Code Here

Examples of objot.bytecode.Procedure

    targetName = Bytecode.utf(target.getName() + ".");
    y = y_;
    cons = y.cons;
    clazzCi = cons.addClass(target);
    ao = ao_;
    wp = new Procedure(cons);
    wo = new Code(cons, ao.bytes, ao.beginBi);
    wp.setCode(wo);
  }
View Full Code Here

Examples of org.apache.cayenne.map.Procedure

        }

        // set schema for procedures...
        Iterator procedures = dataMap.getProcedures().iterator();
        while (procedures.hasNext()) {
            Procedure procedure = (Procedure) procedures.next();
            if (doAll || Util.isEmptyString(procedure.getSchema())) {
                if (!Util.nullSafeEquals(defaultSchema, procedure.getSchema())) {
                    procedure.setSchema(defaultSchema);

                    // any way to batch events, a big change will flood the app with
                    // procedure events..?
                    mediator.fireProcedureEvent(new ProcedureEvent(this, procedure));
                }
View Full Code Here

Examples of org.apache.cayenne.map.Procedure

*/
public class ProcedureValidator extends TreeNodeValidator {

    @Override
    public void validateObject(ProjectPath treeNodePath, Validator validator) {
        Procedure procedure = (Procedure) treeNodePath.getObject();
        validateName(procedure, treeNodePath, validator);

        // check that return value is present
        if (procedure.isReturningValue()) {
            List<ProcedureParameter> parameters = procedure.getCallParameters();
            if (parameters.size() == 0) {
                validator.registerWarning(
                    "Procedure returns a value, but has no parameters.",
                    treeNodePath);
            }
View Full Code Here

Examples of org.apache.cayenne.map.Procedure

        protected boolean isNameInUse(String name, Object namingContext) {
         
            // it doesn't matter if we create a parameter with
            // a duplicate name.. parameters are positional anyway..
            // still try to use unique names for visual consistency
            Procedure procedure = (Procedure) namingContext;
            for (final ProcedureParameter parameter : procedure.getCallParameters()) {
                if (name.equals(parameter.getName())) {
                    return true;
                }
            }
View Full Code Here

Examples of org.apache.cayenne.map.Procedure

            return "UntitledProcedure";
        }

        @Override
        protected Object create(String name, Object namingContext) {
            return new Procedure(name);
        }
View Full Code Here

Examples of org.apache.cayenne.map.Procedure

                    procedures,
                    ProjectTraversal.mapObjectComparator);
        }

        while (procedures.hasNext()) {
            Procedure procedure = (Procedure) procedures.next();
            ProjectPath procedurePath = path.appendToPath(procedure);
            handler.projectNode(procedurePath);

            if (handler.shouldReadChildren(procedure, path)) {
                this.traverseProcedureParameters(
                        procedure.getCallParameters().iterator(),
                        procedurePath);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.