Codota Logo
DbEntityOperation.setRowsAffected
Code IndexAdd Codota to your IDE (free)

How to use
setRowsAffected
method
in
org.camunda.bpm.engine.impl.db.entitymanager.operation.DbEntityOperation

Best Java code snippets using org.camunda.bpm.engine.impl.db.entitymanager.operation.DbEntityOperation.setRowsAffected (Showing top 3 results out of 315)

  • Common ways to obtain DbEntityOperation
private void myMethod () {
DbEntityOperation d =
  • Codota Iconnew DbEntityOperation()
  • Smart code suggestions by Codota
}
origin: camunda/camunda-bpm-platform

@Override
protected void deleteEntity(DbEntityOperation operation) {
 final DbEntity dbEntity = operation.getEntity();
 // get statement
 String deleteStatement = dbSqlSessionFactory.getDeleteStatement(dbEntity.getClass());
 ensureNotNull("no delete statement for " + dbEntity.getClass() + " in the ibatis mapping files", "deleteStatement", deleteStatement);
 LOG.executeDatabaseOperation("DELETE", dbEntity);
 // execute the delete
 int nrOfRowsDeleted = executeDelete(deleteStatement, dbEntity);
 operation.setRowsAffected(nrOfRowsDeleted);
 // It only makes sense to check for optimistic locking exceptions for objects that actually have a revision
 if (dbEntity instanceof HasDbRevision && nrOfRowsDeleted == 0) {
  operation.setFailed(true);
  return;
 }
 // perform post delete action
 entityDeleted(dbEntity);
}
origin: camunda/camunda-bpm-platform

@Override
protected void deleteEntity(DbEntityOperation operation) {
 final DbEntity dbEntity = operation.getEntity();
 // get statement
 String deleteStatement = dbSqlSessionFactory.getDeleteStatement(dbEntity.getClass());
 ensureNotNull("no delete statement for " + dbEntity.getClass() + " in the ibatis mapping files", "deleteStatement", deleteStatement);
 LOG.executeDatabaseOperation("DELETE", dbEntity);
 // execute the delete
 int nrOfRowsDeleted = executeDelete(deleteStatement, dbEntity);
 operation.setRowsAffected(nrOfRowsDeleted);
 // It only makes sense to check for optimistic locking exceptions for objects that actually have a revision
 if (dbEntity instanceof HasDbRevision && nrOfRowsDeleted == 0) {
  operation.setFailed(true);
  return;
 }
 // perform post delete action
 entityDeleted(dbEntity);
}
origin: org.camunda.bpm/camunda-engine

@Override
protected void deleteEntity(DbEntityOperation operation) {
 final DbEntity dbEntity = operation.getEntity();
 // get statement
 String deleteStatement = dbSqlSessionFactory.getDeleteStatement(dbEntity.getClass());
 ensureNotNull("no delete statement for " + dbEntity.getClass() + " in the ibatis mapping files", "deleteStatement", deleteStatement);
 LOG.executeDatabaseOperation("DELETE", dbEntity);
 // execute the delete
 int nrOfRowsDeleted = executeDelete(deleteStatement, dbEntity);
 operation.setRowsAffected(nrOfRowsDeleted);
 // It only makes sense to check for optimistic locking exceptions for objects that actually have a revision
 if (dbEntity instanceof HasDbRevision && nrOfRowsDeleted == 0) {
  operation.setFailed(true);
  return;
 }
 // perform post delete action
 entityDeleted(dbEntity);
}
org.camunda.bpm.engine.impl.db.entitymanager.operationDbEntityOperationsetRowsAffected

Popular methods of DbEntityOperation

  • getEntity
  • <init>
  • getEntityType
  • setEntity
  • setOperationType
  • equals
  • getFlushRelevantEntityReferences
  • getOperationType
  • setFailed
  • setFlushRelevantEntityReferences

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JButton (javax.swing)
  • JComboBox (javax.swing)
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now