Package org.openqreg.bean

Examples of org.openqreg.bean.MessagegrouprelKey


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


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

          out.append("]\" value=\"1\" ");
          // there is a systemmessage
          // and there is a relation to this group
          if (null != messBean
              && null != MessagegrouprelFinderBase
                  .findByPrimaryKey(new MessagegrouprelKey(
                      messBean.getId(), groupBean.getId()))) {
            out.append("checked=\"true\" ");
          }
          out.append(" onClick=\"saveCheck();\"></td>\n");
          addColumn(out, groupBean.getId());
View Full Code Here

TOP

Related Classes of org.openqreg.bean.MessagegrouprelKey

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.