Package org.openqreg.bean

Examples of org.openqreg.bean.ServiceKey


      for (Servicegroup servicegroup : ServicegroupFinderBase
          .findAll(con)) {
        key = servicegroup.getUsergroupid().toUpperCase()
            + servicegroup.getServiceid().toUpperCase();
        servBean = (ServiceBean) ServiceFinderBase.findByPrimaryKey(
            con, new ServiceKey(servicegroup.getServiceid()));
        tmpAccessTable.put(key, servBean.getStatus().toString());
      }
      accessTable = tmpAccessTable;
    } catch (Exception e) {
      logger.log(Level.FATAL, "Unable to populate access table", e);
View Full Code Here


/**
* @return The primaryKey
*
*/
public PrimaryKey getPrimaryKey() {
return new ServiceKey(getId());
}
View Full Code Here

*/
public static Object findByPrimaryKey(Connection con, PrimaryKey key) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
ServiceBean valueObject = null;
ServiceKey primaryKey = (ServiceKey) key;
try{
pStmt = con.prepareStatement(ServiceBeanBase.SELECT_STATEMENT);
pStmt.setObject(1, primaryKey.getId());
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
}
View Full Code Here

    addDefaultAnswer(user, sr, sa);
   
    // sa.setStatus("fetched");
    sa.setStatus(AjaxWidgetAnswer.STATUS_FETCHED);
    sa.setService((ServiceBean) ServiceFinderBase
        .findByPrimaryKey(new ServiceKey(sr.getServiceId())));

    sa.setServiceGroups(ServicegroupFinder.findByServiceid(sr.getServiceId()));
   
    sa.setUserGroups(UsergroupFinderBase.findAll());
    return sa;
View Full Code Here

   * @see org.openqregtag.AbstractStepHandlerTag#populateKeysAndBeans()
   */
  @Override
  protected void populateKeysAndBeans(Connection con) throws SQLException {
    serviceBean = (ServiceBean) ServiceFinderBase
        .findByPrimaryKey(new ServiceKey(serviceid));
  }
View Full Code Here

TOP

Related Classes of org.openqreg.bean.ServiceKey

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.