Examples of UserKey


Examples of org.openqreg.bean.UserKey

      // loop remaining services and create them
      for (String uId : fileShareUsers) {
        FileshareuserBean fsuBean = new FileshareuserBean();
        fsuBean.setFileid(fileBean.getId());
        fsuBean.setUserid(uId);
        fileUser = (User) UserFinderBase.findByPrimaryKey(new UserKey(
            uId));
        if (null != fileUser) {
          // set correct label ending up on switch
          fsuBean.setUserdescription(fileUser.getFirstname() + " "
              + fileUser.getLastname());
View Full Code Here

Examples of org.openqreg.bean.UserKey

*/
public static Object findByPrimaryKey(Connection con, PrimaryKey key) throws SQLException {
PreparedStatement pStmt = null;
ResultSet rs = null;
UserBean valueObject = null;
UserKey primaryKey = (UserKey) key;
try{
pStmt = con.prepareStatement(UserBeanBase.SELECT_STATEMENT);
pStmt.setObject(1, primaryKey.getId());
rs = pStmt.executeQuery();
while (rs.next()){
valueObject = populate(rs);
valueObject.afterPopulate(con);
}
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.