Package org.drools.command.runtime.rule

Examples of org.drools.command.runtime.rule.QueryCommand


  }

  public void marshal(Object object,
                      HierarchicalStreamWriter writer,
                      MarshallingContext context) {
      QueryCommand cmd = (QueryCommand) object;
      writer.addAttribute( "out-identifier",
                           cmd.getOutIdentifier() );
      writer.addAttribute( "name",
                           cmd.getName() );
      if ( cmd.getArguments() != null ) {
          for ( Object arg : cmd.getArguments() ) {
              writeItem( arg,
                         context,
                         writer );
          }
      }
View Full Code Here


                                 context,
                                 null );
          args.add( arg );
          reader.moveUp();
      }
      QueryCommand cmd = new QueryCommand( outIdentifier,
                                           name,
                                           args.toArray( new Object[args.size()] ) );

      return cmd;
  }
View Full Code Here

    public Command newAbortWorkItem(long workItemId) {
        return new AbortWorkItemCommand( workItemId);
    }

    public Command newQuery(String identifier, String name) {
        return new QueryCommand(identifier, name, null);
    }
View Full Code Here

    public Command newQuery(String identifier, String name) {
        return new QueryCommand(identifier, name, null);
    }

    public Command newQuery(String identifier, String name, Object[] arguments) {
        return new QueryCommand(identifier, name, arguments);
    }
View Full Code Here

        return (T) this.commandService.execute( new ExecuteCommand( command ) );
    }

    public QueryResults getQueryResults(String query,
                                        Object... arguments) {
        QueryCommand cmd = new QueryCommand( (String)null,
                                             query,
                                             arguments );
        return this.commandService.execute( cmd );
    }
View Full Code Here

        return (T) this.commandService.execute( command );
    }

    public QueryResults getQueryResults(String query,
                                        Object... arguments) {
        QueryCommand cmd = new QueryCommand( (String)null,
                                             query,
                                             arguments );
        return this.commandService.execute( cmd );
    }
View Full Code Here

    public Command newAbortWorkItem(long workItemId) {
        return new AbortWorkItemCommand( workItemId);
    }

    public Command newQuery(String identifier, String name) {
        return new QueryCommand(identifier, name, null);
    }
View Full Code Here

    public Command newQuery(String identifier, String name) {
        return new QueryCommand(identifier, name, null);
    }

    public Command newQuery(String identifier, String name, Object[] arguments) {
        return new QueryCommand(identifier, name, arguments);
    }
View Full Code Here

  }

  public void marshal(Object object,
                      HierarchicalStreamWriter writer,
                      MarshallingContext context) {
      QueryCommand cmd = (QueryCommand) object;
      writer.addAttribute( "out-identifier",
                           cmd.getOutIdentifier() );
      writer.addAttribute( "name",
                           cmd.getName() );
      if ( cmd.getArguments() != null ) {
          for ( Object arg : cmd.getArguments() ) {
              writeItem( arg,
                         context,
                         writer );
          }
      }
View Full Code Here

                                 context,
                                 null );
          args.add( arg );
          reader.moveUp();
      }
      QueryCommand cmd = new QueryCommand( outIdentifier,
                                           name,
                                           args.toArray( new Object[args.size()] ) );

      return cmd;
  }
View Full Code Here

TOP

Related Classes of org.drools.command.runtime.rule.QueryCommand

Copyright © 2018 www.massapicom. 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.