Package com.cordys.cpc.bsf.busobject

Examples of com.cordys.cpc.bsf.busobject.QueryObject


    }

    public static com.cordys.demo.servicedesk.dao.CALLSTATUS getCallstatusObject(String TENANTID, String STATUSID)
    {
        String queryText = "select * from \"CALLSTATUS\" where \"TENANTID\" = :TENANTID and \"STATUSID\" = :STATUSID";
        QueryObject query = new QueryObject(queryText);
        query.addParameter("TENANTID", "CALLSTATUS.TENANTID", QueryObject.PARAM_STRING, TENANTID);
        query.addParameter("STATUSID", "CALLSTATUS.STATUSID", QueryObject.PARAM_STRING, STATUSID);
        query.setResultClass(CALLSTATUS.class);
        return (CALLSTATUS)query.getObject();
    }
View Full Code Here


    }

    public static BusObjectIterator<com.cordys.demo.servicedesk.dao.CALLSTATUS> getCallstatusObjects(String fromTENANTID, String toTENANTID, String fromSTATUSID, String toSTATUSID, com.cordys.cpc.bsf.query.Cursor cursor)
    {
        String queryText = "select * from \"CALLSTATUS\" where \"TENANTID\" between :fromTENANTID and :toTENANTID and \"STATUSID\" between :fromSTATUSID and :toSTATUSID";
        QueryObject query = new QueryObject(queryText);
        query.addParameter("fromTENANTID", "CALLSTATUS.TENANTID", QueryObject.PARAM_STRING, BSF.getOrganization());
        query.addParameter("toTENANTID", "CALLSTATUS.TENANTID", QueryObject.PARAM_STRING, BSF.getOrganization());
        query.addParameter("fromSTATUSID", "CALLSTATUS.STATUSID", QueryObject.PARAM_STRING, fromSTATUSID);
        query.addParameter("toSTATUSID", "CALLSTATUS.STATUSID", QueryObject.PARAM_STRING, toSTATUSID);
        query.setResultClass(CALLSTATUS.class);
        query.setCursor(cursor);
        return query.getObjects();
    }
View Full Code Here

    }

    public static BusObjectIterator<com.cordys.demo.servicedesk.dao.CALLSTATUS> getCallstatusObjects(String fromTENANTID, String toTENANTID, String fromSTATUSID, String toSTATUSID)
    {
        String queryText = "select * from \"CALLSTATUS\" where \"TENANTID\" between :fromTENANTID and :toTENANTID and \"STATUSID\" between :fromSTATUSID and :toSTATUSID";
        QueryObject query = new QueryObject(queryText);
        query.addParameter("fromTENANTID", "CALLSTATUS.TENANTID", QueryObject.PARAM_STRING, BSF.getOrganization());
        query.addParameter("toTENANTID", "CALLSTATUS.TENANTID", QueryObject.PARAM_STRING, BSF.getOrganization());
        query.addParameter("fromSTATUSID", "CALLSTATUS.STATUSID", QueryObject.PARAM_STRING, fromSTATUSID);
        query.addParameter("toSTATUSID", "CALLSTATUS.STATUSID", QueryObject.PARAM_STRING, toSTATUSID);
        query.setResultClass(CALLSTATUS.class);
        return query.getObjects();
    }
View Full Code Here

    }

    public static BusObjectIterator<com.cordys.demo.servicedesk.dao.CALLSTATUS> getNextCallstatusObjects(String TENANTID, String STATUSID, com.cordys.cpc.bsf.query.Cursor cursor)
    {
        String queryText = "select * from \"CALLSTATUS\" where (\"TENANTID\" > :TENANTID) or (\"TENANTID\" = :TENANTID and \"STATUSID\" > :STATUSID) order by \"TENANTID\" asc, \"STATUSID\" asc";
        QueryObject query = new QueryObject(queryText);
        query.addParameter("TENANTID", "CALLSTATUS.TENANTID", QueryObject.PARAM_STRING, TENANTID);
        query.addParameter("STATUSID", "CALLSTATUS.STATUSID", QueryObject.PARAM_STRING, STATUSID);
        query.setResultClass(CALLSTATUS.class);
        query.setCursor(cursor);
        return query.getObjects();
    }
View Full Code Here

    }

    public static BusObjectIterator<com.cordys.demo.servicedesk.dao.CALLSTATUS> getPreviousCallstatusObjects(String TENANTID, String STATUSID, com.cordys.cpc.bsf.query.Cursor cursor)
    {
        String queryText = "select * from \"CALLSTATUS\" where (\"TENANTID\" < :TENANTID) or (\"TENANTID\" = :TENANTID and \"STATUSID\" < :STATUSID) order by \"TENANTID\" desc, \"STATUSID\" desc";
        QueryObject query = new QueryObject(queryText);
        query.addParameter("TENANTID", "CALLSTATUS.TENANTID", QueryObject.PARAM_STRING, TENANTID);
        query.addParameter("STATUSID", "CALLSTATUS.STATUSID", QueryObject.PARAM_STRING, STATUSID);
        query.setResultClass(CALLSTATUS.class);
        query.setCursor(cursor);
        return query.getObjects();
    }
View Full Code Here

TOP

Related Classes of com.cordys.cpc.bsf.busobject.QueryObject

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.