Package org.openqreg.bean

Examples of org.openqreg.bean.SystemmessageKey


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


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

   * @see org.openqregtag.AbstractStepHandlerTag#populateKeysAndBeans()
   */
  @Override
  protected void populateKeysAndBeans(Connection con) throws SQLException {
    systemmessageBean = SystemmessageFinder
        .findByPrimaryKeyWithRels(new SystemmessageKey(fetch
            .getValueAsLong("SYSTEMMESSAGE_ID")));
    if (null != systemmessageBean) {
      relCol = MessagegrouprelFinder.findById(systemmessageBean.getId());
    }
  }
View Full Code Here

TOP

Related Classes of org.openqreg.bean.SystemmessageKey

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.