Package org.openqreg.bean

Examples of org.openqreg.bean.BrowserKey


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


      Connection con = null;
      try {
        con = DbHandler.getConnection();
        con.setAutoCommit(false);
        BrowserBean browser = (BrowserBean) BrowserFinderBase
            .findByPrimaryKey(con, new BrowserKey(browserId));
        browser.remove(con);
        con.commit();

      } catch (SQLException sqle) {
        try {
View Full Code Here

    if (hasService(userId, service)) {
      Connection con = null;
      try {
        con = DbHandler.getConnection();
        con.setAutoCommit(true);
        BrowserBean browser = (BrowserBean)BrowserFinderBase.findByPrimaryKey(new BrowserKey(browserId));
        browser.setStatus(newStatus);
        browser.store(con);
      } catch (SQLException sqle) {
        try {
          if (null != con) {
View Full Code Here

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

TOP

Related Classes of org.openqreg.bean.BrowserKey

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.