Package de.danet.an.util

Examples of de.danet.an.util.UniversalPrepStmt.executeUpdate()


    prepStmt = new UniversalPrepStmt
        (ds, con, "UPDATE SimpleAppl "
         + "SET ActivityKey = ? WHERE DBId = ?");
    prepStmt.setString (1, auk == null ? null : auk.activityKey());
    prepStmt.setLong (2, instId);
    if (prepStmt.executeUpdate() == 0) {
        throw new InvalidKeyException
      ("No application instance with key = " + instId);
    }
    if (logger.isDebugEnabled()) {
        logger.debug ("Application " + instId
View Full Code Here


        prepStmt.setString (offset++, resourceKey);
    }
    prepStmt.setTimestamp
        (offset++, new Timestamp (System.currentTimeMillis()));
    prepStmt.setBinary(offset++, state);
    prepStmt.executeUpdate();
    if (logger.isDebugEnabled()) {
        logger.debug
      ("Created application " + instId + " for " + auk);
    }
    return instId;
View Full Code Here

      prepStmt.setString(offset++, paProcessMgrVersion);
      prepStmt.setTimestamp
    (offset++, new Timestamp (paCreateTime.getTime()));
      prepStmt.setString(offset++, paDescription);
      prepStmt.setInt(offset++, paFlags);
      prepStmt.executeUpdate();
      ((ProcessDataStore)paProcessData).setConnection (con);
      try {
    ((PersistentMap)paProcessData).store();
      } catch (PersistentMapSQLException e) {
    throw (SQLException)e.getCause();
View Full Code Here

        prepStmt.setLargeString(offset++, myProcDef);
    }
    // for where clause
    prepStmt.setLong
        (offset++, ((Long)ctx.getPrimaryKey()).longValue());
    int rowCount = prepStmt.executeUpdate();
    myProcDef = null;
    if (rowCount == 0) {
        throw new NoSuchEntityException
      ("Storing row for DBId "
       + (Long)ctx.getPrimaryKey() + " failed.");
View Full Code Here

  try {
      if (doDelete) {
    prepStmt = new UniversalPrepStmt
        (ds, con, "DELETE FROM Deadline WHERE Activity = ?");
    prepStmt.setLong(1, ak.longValue());
    prepStmt.executeUpdate();
    prepStmt.close ();
                prepStmt = null;
      }
      if (dls != null && dls.size () > 0) {
    prepStmt = new UniversalPrepStmt
View Full Code Here

        prepStmt.setInt(offset++, entry++);
        prepStmt.setLargeString(offset++, dl.getCondition());
        prepStmt.setString (offset++, dl.getExceptionName());
        prepStmt.setInt(offset++, dl.getExecution());
        prepStmt.setInt(offset++, dl.getState());
        prepStmt.executeUpdate();
    }
      }
  } finally {
      JDBCUtil.closeAll (null, prepStmt, null);
  }
View Full Code Here

        prepStmt.setInt(offset++, td.conditionType());
        prepStmt.setString(offset++, td.condition());
    } catch (NumberFormatException re) {
        throw new SQLException(re.getMessage());
    }
    prepStmt.executeUpdate();
      }
  } finally {
      try {
    JDBCUtil.closeAll (null, prepStmt, con);
      } catch (SQLException e) {
View Full Code Here

                prepStmt.setInt(offset++,
                        ((t.hasPendingToken() ? FLAGS_HAS_PENDING_TOKEN : 0)));
                prepStmt.setLong(offset++,
                        ((Long)ctx.getPrimaryKey()).longValue());
                prepStmt.setString(offset++, t.id());
                prepStmt.executeUpdate();
            }
            updatedTransitions.clear();
        } finally {
            try {
                JDBCUtil.closeAll (null, prepStmt, null);
View Full Code Here

     
      // misc. data
      setupAuditEventInsertData (event, prepStmt, offset, primKey);
     
      // execute insert statement
      int rowCount = prepStmt.executeUpdate();
      if (rowCount == 0) {
    throw new EJBException
        ("Inserting audit event >>> " + event + " <<< failed.");
      }
     
View Full Code Here

            (ds, con, "DELETE FROM DataAuditEventOldData WHERE "
             + "MapId IN (SELECT DBId FROM AuditEvents "
             + "WHERE ProcessKey = ?)");
    }
    prepStmt.setString(1, procKey);
    prepStmt.executeUpdate();
    prepStmt.close ();
    prepStmt = null;

                if (dbProperties.isMySQL()
                    && dbProperties.driverMajorVersion() == 5) {
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.