public abstract class AbstractIndexHandler<T extends org.camunda.bpm.engine.impl.db.DbEntity> extends Object implements IndexHandler<T>
| Constructor and Description |
|---|
AbstractIndexHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIndexMatch(T entity,
String... indexValues) |
boolean |
checkIndexMatch(T entity,
T newEntity) |
com.datastax.driver.core.Statement |
getDeleteStatement(CassandraPersistenceSession cassandraPersistenceSession,
T entity) |
protected abstract String |
getIndexName() |
protected String |
getIndexValue(String... indexValues) |
protected abstract String |
getIndexValue(T entity) |
com.datastax.driver.core.Statement |
getInsertStatement(CassandraPersistenceSession cassandraPersistenceSession,
T entity) |
String |
getUniqueValue(Map<String,Object> params,
CassandraPersistenceSession cassandraPersistenceSession,
String... indexValues) |
List<com.datastax.driver.core.Statement> |
getUpdateStatements(CassandraPersistenceSession cassandraPersistenceSession,
T entity,
T oldEntity) |
protected abstract String |
getValue(T entity) |
List<String> |
getValues(Map<String,Object> params,
CassandraPersistenceSession cassandraPersistenceSession,
String... indexValues) |
static void |
prepare(CassandraProcessEngineConfiguration config) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisUniqueprotected abstract String getIndexName()
public String getUniqueValue(Map<String,Object> params, CassandraPersistenceSession cassandraPersistenceSession, String... indexValues)
getUniqueValue in interface IndexHandler<T extends org.camunda.bpm.engine.impl.db.DbEntity>public List<String> getValues(Map<String,Object> params, CassandraPersistenceSession cassandraPersistenceSession, String... indexValues)
getValues in interface IndexHandler<T extends org.camunda.bpm.engine.impl.db.DbEntity>public com.datastax.driver.core.Statement getInsertStatement(CassandraPersistenceSession cassandraPersistenceSession, T entity)
getInsertStatement in interface IndexHandler<T extends org.camunda.bpm.engine.impl.db.DbEntity>public com.datastax.driver.core.Statement getDeleteStatement(CassandraPersistenceSession cassandraPersistenceSession, T entity)
getDeleteStatement in interface IndexHandler<T extends org.camunda.bpm.engine.impl.db.DbEntity>public List<com.datastax.driver.core.Statement> getUpdateStatements(CassandraPersistenceSession cassandraPersistenceSession, T entity, T oldEntity)
getUpdateStatements in interface IndexHandler<T extends org.camunda.bpm.engine.impl.db.DbEntity>public boolean checkIndexMatch(T entity, T newEntity)
checkIndexMatch in interface IndexHandler<T extends org.camunda.bpm.engine.impl.db.DbEntity>public static void prepare(CassandraProcessEngineConfiguration config)
Copyright © 2016 camunda services GmbH. All rights reserved.