Examples of SUser


Examples of org.xooof.xooofoscope.struct.SUser

   
    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

Examples of org.xooof.xooofoscope.struct.SUser

  public SUser fetchByPK(Integer userId) throws DAOException {

    if (userId == null) {
      throw new UserDAOException("userId cannot be null");
    }
    SUser user = null;
    PreparedStatement statement = null;
    ResultSet result;
    Connection connection = DAOHelper.getDBConnection();
    try {
      try {
        statement = connection.prepareStatement(FETCHBYPK_QRY);
        statement.setInt(1, userId.intValue());
        result = statement.executeQuery();
        if (result.next()) {
          user = new SUser();
          user.setObjId(result.getString("id"));
          user.setObjClass(SUser.class.getName());
          user.setName(result.getString("name"));
          if (result.next()) {
            throw new UserDAOException(
              "Multiple rows exists for userId " + userId.toString());
          }
        } else {
View Full Code Here

Examples of org.xooof.xooofoscope.struct.SUser

  /* (non-Javadoc)
   * @see org.xooof.xooofoscope.dao.IUserDAO#fetchAll()
   */
  public SUserArrayList fetchAll() throws DAOException {

    SUser user = null;
    SUserArrayList userList = new SUserArrayList();
    PreparedStatement statement = null;
    ResultSet result;
    Connection connection = DAOHelper.getDBConnection();
    try {
      try {
        statement = connection.prepareStatement(FETCHALL_QRY);
        result = statement.executeQuery();
        while (result.next()) {
          user = new SUser();
          user.setObjId(result.getString("id"));
          user.setObjClass(SUser.class.getName());
          user.setName(result.getString("name"));
          userList.add(user);
        }
      } catch (SQLException exc) {
        throw new UserDAOException(exc.getMessage());
      } //End catch IOException
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.