Tabnine Logo
DbEntityOperation.getEntityType
Code IndexAdd Tabnine to your IDE (free)

How to use
getEntityType
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.getEntityType (Showing top 9 results out of 1,395)

origin: camunda/camunda-bpm-platform

public boolean addOperation(DbEntityOperation newOperation) {
 if(newOperation.getOperationType() == INSERT) {
  return getInsertsForType(newOperation.getEntityType(), true)
    .add(newOperation);
 } else if(newOperation.getOperationType() == DELETE) {
  return getDeletesByType(newOperation.getEntityType(), true)
    .add(newOperation);
 } else { // UPDATE
  return getUpdatesByType(newOperation.getEntityType(), true)
    .add(newOperation);
 }
}
origin: camunda/camunda-bpm-platform

public boolean addOperation(DbEntityOperation newOperation) {
 if(newOperation.getOperationType() == INSERT) {
  return getInsertsForType(newOperation.getEntityType(), true)
    .add(newOperation);
 } else if(newOperation.getOperationType() == DELETE) {
  return getDeletesByType(newOperation.getEntityType(), true)
    .add(newOperation);
 } else { // UPDATE
  return getUpdatesByType(newOperation.getEntityType(), true)
    .add(newOperation);
 }
}
origin: camunda/camunda-bpm-platform

public void failedOperation(DbOperation operation) {
 if (operation instanceof DbEntityOperation) {
  DbEntityOperation entityOperation = (DbEntityOperation) operation;
  if(JobEntity.class.isAssignableFrom(entityOperation.getEntityType())) {
   // could not lock the job -> remove it from list of acquired jobs
   acquiredJobs.removeJobId(entityOperation.getEntity().getId());
  }
 }
}
origin: camunda/camunda-bpm-platform

public void failedOperation(DbOperation operation) {
 if (operation instanceof DbEntityOperation) {
  DbEntityOperation entityOperation = (DbEntityOperation) operation;
  if(JobEntity.class.isAssignableFrom(entityOperation.getEntityType())) {
   // could not lock the job -> remove it from list of acquired jobs
   acquiredJobs.removeJobId(entityOperation.getEntity().getId());
  }
 }
}
origin: org.camunda.bpm/camunda-engine

public boolean addOperation(DbEntityOperation newOperation) {
 if(newOperation.getOperationType() == INSERT) {
  return getInsertsForType(newOperation.getEntityType(), true)
    .add(newOperation);
 } else if(newOperation.getOperationType() == DELETE) {
  return getDeletesByType(newOperation.getEntityType(), true)
    .add(newOperation);
 } else { // UPDATE
  return getUpdatesByType(newOperation.getEntityType(), true)
    .add(newOperation);
 }
}
origin: org.camunda.bpm/camunda-engine

public void failedOperation(DbOperation operation) {
 if (operation instanceof DbEntityOperation) {
  DbEntityOperation entityOperation = (DbEntityOperation) operation;
  if(JobEntity.class.isAssignableFrom(entityOperation.getEntityType())) {
   // could not lock the job -> remove it from list of acquired jobs
   acquiredJobs.removeJobId(entityOperation.getEntity().getId());
  }
 }
}
origin: OrienteerBAP/Orienteer

@SuppressWarnings("unchecked")
@Override
protected void deleteEntity(DbEntityOperation operation) {
  db.activateOnCurrentThread();
  ((IEntityHandler<DbEntity>) HandlersManager.get().getHandler(operation.getEntityType()))
                    .delete(operation.getEntity(), this);
}
origin: OrienteerBAP/Orienteer

@SuppressWarnings("unchecked")
@Override
protected void insertEntity(DbEntityOperation operation) {
  db.activateOnCurrentThread();
  ((IEntityHandler<DbEntity>) HandlersManager.get().getHandler(operation.getEntityType()))
                    .create(operation.getEntity(), this);
}
origin: OrienteerBAP/Orienteer

@SuppressWarnings("unchecked")
@Override
protected void updateEntity(DbEntityOperation operation) {
  db.activateOnCurrentThread();
  ((IEntityHandler<DbEntity>) HandlersManager.get().getHandler(operation.getEntityType()))
                    .update(operation.getEntity(), this);
}
org.camunda.bpm.engine.impl.db.entitymanager.operationDbEntityOperationgetEntityType

Popular methods of DbEntityOperation

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

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JTextField (javax.swing)
  • Option (scala)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now