Examples of IQueryable


Examples of com.bleujin.framework.db.procedure.IQueryable

   
    public Rows getRows(IQueryable query) throws SQLException {
      return query.execQuery();
    }
    public Rows getRows(String strSQL, int listNum, int pageNo) throws SQLException {
      IQueryable query = createParameterQuery(strSQL) ;
      query.setPage(Page.create(listNum, pageNo)) ;
      return getRows(query);
    }
View Full Code Here

Examples of com.bleujin.framework.db.procedure.IQueryable

  }


    protected void handle(AfterTask atask)
    {
      IQueryable query = atask.getQueryable() ;
        final String procName = query.getProcSQL() ;
        final String procFullName = query.getProcFullSQL() ;
        final int misecond = Integer.parseInt(String.valueOf(atask.getEnd() - atask.getStart())) ;
        final DBController dc = new DBController(atask.getDBManager()) ;
        new Thread(){
            public void run(){
                try {
View Full Code Here

Examples of com.bleujin.framework.db.procedure.IQueryable

//            ( (showLevel / 4) % 2 == 1 && query instanceof UserProcedureBatch) ||
//            ( (showLevel / 2) % 2 == 1 && query instanceof UserCommand) ||
//            ( (showLevel / 1) % 2 == 1 && query instanceof UserProcedure)
//            );
//
      IQueryable query = atask.getQueryable() ;
        return  (this.showLevel == StdOutServant.All) || (
          ( (showLevel / 32) % 2 == 1 && query.getQueryType() == QueryType.CUSTOM_QUERY) ||
          ( (showLevel / 16) % 2 == 1 && query.getQueryType() == QueryType.USER_COMMAND_BATCH) ||
          ( (showLevel / 8) % 2 == 1 && query.getQueryType() ==  QueryType.USER_PROCEDURES) ||
          ( (showLevel / 4) % 2 == 1 && query.getQueryType() ==  QueryType.USER_PROCEDURE_BATCH) ||
          ( (showLevel / 2) % 2 == 1 && query.getQueryType() == QueryType.USER_COMMAND) ||
          ( (showLevel / 1) % 2 == 1 && query.getQueryType() == QueryType.USER_PROCEDURE)
          )  ;
    }
View Full Code Here

Examples of com.bleujin.framework.db.procedure.IQueryable

   
    public Rows getRows(IQueryable query) throws SQLException {
      return query.execQuery();
    }
    public Rows getRows(String strSQL, int listNum, int pageNo) throws SQLException {
      IQueryable query = createParameterQuery(strSQL) ;
      query.setPage(Page.create(listNum, pageNo)) ;
      return getRows(query);
    }
View Full Code Here

Examples of com.bleujin.framework.db.procedure.IQueryable

  public JSONParser(DBController dc){
    this.dc = dc ;
  }
 
  public QueryObj parseToQueryable(JSONObject jo) {
    IQueryable cmd = parse(jo) ;
   
    int ctype = parseCommandType(jo.getJSONObject(QUERY).get(CTYPE));
    return new QueryObj(cmd, ctype);
  }
View Full Code Here

Examples of com.bleujin.framework.db.procedure.IQueryable

    return new QueryObj(cmd, ctype);
  }

 
  private IQueryable parse(JSONObject jo){
    IQueryable cmd = null ;
    Object type = jo.getJSONObject(QUERY).get(TYPE);
    if ("userprocedure".equalsIgnoreCase(String.valueOf(type))) {
      cmd = parseUserProcedure(jo);
    } else if ("userprocedures".equalsIgnoreCase(String.valueOf(type))){
      cmd = parseUserProcedures(jo) ;
View Full Code Here

Examples of com.bleujin.framework.db.procedure.IQueryable

import com.bleujin.framework.db.procedure.Queryable;

public class TestPlan extends DBTestCase{

  public void testExecute() throws Exception {
    IQueryable q1 = dc.createUserCommand("explain plan for select * from yyyymmdd_tblc") ;
    int result = q1.execUpdate() ;
  }
View Full Code Here

Examples of org.eclipse.equinox.internal.provisional.p2.query.IQueryable

     * @return The IUs that match the query
     * @throws ProvisioningException
     */
    public static Collector getInstallableUnitsInRepositories(URI location, Query query, Collector collector,
                                                              IProgressMonitor monitor) throws ProvisioningException {
        IQueryable queryable;
        if (location != null) {
            queryable = getMetadataRepository(location);
        } else {
            queryable = ServiceHolder.getMetadataRepositoryManager();
        }
        return queryable.query(query, collector, monitor);
    }
View Full Code Here

Examples of org.eclipse.equinox.internal.provisional.p2.query.IQueryable

        }
        return queryable.query(query, collector, monitor);
    }

    public static IQueryable getQuerybleRepositoryManager(URI location) {
        IQueryable queryable;
        try {
            if (location != null) {
                queryable = getMetadataRepository(location);
            } else {
                queryable = ServiceHolder.getMetadataRepositoryManager();
View Full Code Here

Examples of org.eclipse.equinox.internal.provisional.p2.query.IQueryable

        super(queryContext);
    }

    public Collector perform() {
        Collector collector = new Collector();
        IQueryable queryable = queryContext.getQueryable();
        IProfile profile = ProvisioningUtils.getProfile();
        if (queryable == null || profile == null) {
            return collector;
        }

        Query query = new IUPropertyQuery(IInstallableUnit.PROP_TYPE_GROUP, Boolean.TRUE.toString());

        if (queryContext.isShowLatestVersionsOnly()) {
            query = new CompositeQuery(new Query[]{query, new LatestIUVersionQuery()});
        }

        collector = queryable.query(query, collector, null);

        if (queryContext.isHideAlreadyInstalled()) {
            Collector filteredCollection = new Collector();
            for (Iterator itr = collector.iterator(); itr.hasNext();) {
                IInstallableUnit iu = (IInstallableUnit) itr.next();
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.