Package org.xooof.xooofoscope.struct

Examples of org.xooof.xooofoscope.struct.SObjRef


  throws XMLDispatcherUserException, XMLDispatcherAppException, javax.ejb.CreateException {

    /* First check that the given user already exist in the DB */
   
    UserHome bc = (UserHome) xdCtx.getBusinessClass("User");
    SObjRef objRef = new SObjRef();
    objRef.setObjId(rqst.getUserId());
    objRef.setObjClass(SObjRef.class.getName());
    SUser user = bc.query(xdCtx, objRef);
    if (user == null) {
      if (logcat.isDebugEnabled()) logcat.debug("Bad user ID given : " + rqst.getUserId());
      throw new XMLDispatcherUserException("User with ID " + rqst.getUserId() + " does not exist in the database");     
     
View Full Code Here


  }

  protected SJobDetails loadImpl(XMLDispatcherContext xdCtx)
    throws XMLDispatcherUserException, XMLDispatcherAppException {
      InstrumentHome bc = (InstrumentHome) xdCtx.getBusinessClass("Instrument");
      SObjRef objRef = new SObjRef();
      objRef.setObjId(getInstrumentId());
      objRef.setObjClass(SObjRef.class.getName());
      SInstrument instrument = bc.query(xdCtx, objRef);
      SJobDetails jobDetails=new SJobDetails();
      jobDetails.setObjId(getId());
      jobDetails.setObjClass(SJobDetails.class.getName());
      jobDetails.setActualBeginDateTime(SQLtoXS(getActualBeginDateTime()));
View Full Code Here

    /*
     * Fetch all linked instruments *
     */
    
    InstrumentHome bc = (InstrumentHome) xdCtx.getBusinessClass("Instrument");
    SObjRef objRef = new SObjRef();
    objRef.setObjId(getId());
    objRef.setObjClass(SObjRef.class.getName());
    SInstrumentArrayList  instrumentList = bc.queryByTelescope(xdCtx, objRef);
   
    rply.setInstrumentsList(instrumentList);
   
    return rply;
View Full Code Here

TOP

Related Classes of org.xooof.xooofoscope.struct.SObjRef

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.