code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
protected int executeDelete(String deleteStatement, Object parameter) {
// map the statement
String mappedDeleteStatement = dbSqlSessionFactory.mapStatement(deleteStatement);
try {
return sqlSession.delete(mappedDeleteStatement, parameter);
} catch (Exception e) {
// Exception is wrapped lat... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | executeDelete | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
public int executeUpdate(String updateStatement, Object parameter) {
String mappedUpdateStatement = dbSqlSessionFactory.mapStatement(updateStatement);
try {
return sqlSession.update(mappedUpdateStatement, parameter);
} catch (Exception e) {
// Exception is wrapped later
throw e;
}
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | executeUpdate | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
public int update(String updateStatement, Object parameter) {
return ExceptionUtil.doWithExceptionWrapper(() -> sqlSession.update(updateStatement, parameter));
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | update | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public int executeNonEmptyUpdateStmt(String updateStmt, Object parameter) {
String mappedUpdateStmt = dbSqlSessionFactory.mapStatement(updateStmt);
//if mapped statement is empty, which can happens for some databases, we have no need to execute it
boolean isMappedStmtEmpty = ExceptionUtil.doWit... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | executeNonEmptyUpdateStmt | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public void flush() {
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | flush | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public void flushOperations() {
ExceptionUtil.doWithExceptionWrapper(this::flushBatchOperations);
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | flushOperations | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
public List<BatchResult> flushBatchOperations() {
try {
return sqlSession.flushStatements();
} catch (PersistenceException ex) {
// exception is wrapped later
throw ex;
}
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | flushBatchOperations | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public void close() {
ExceptionUtil.doWithExceptionWrapper(() -> {
sqlSession.close();
return null;
});
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | close | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public void commit() {
ExceptionUtil.doWithExceptionWrapper(() -> {
sqlSession.commit();
return null;
});
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | commit | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public void rollback() {
ExceptionUtil.doWithExceptionWrapper(() -> {
sqlSession.rollback();
return null;
});
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | rollback | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public void dbSchemaCheckVersion() {
try {
String dbVersion = getDbVersion();
if (!ProcessEngine.VERSION.equals(dbVersion)) {
throw LOG.wrongDbVersionException(ProcessEngine.VERSION, dbVersion);
}
List<String> missingComponents = new ArrayList<>();
if (!isEngineTab... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaCheckVersion | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected String getDbVersion() {
String selectSchemaVersionStatement = dbSqlSessionFactory.mapStatement("selectDbSchemaVersion");
return ExceptionUtil.doWithExceptionWrapper(() -> sqlSession.selectOne(selectSchemaVersionStatement));
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | getDbVersion | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaCreateIdentity() {
executeMandatorySchemaResource("create", "identity");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaCreateIdentity | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaCreateHistory() {
executeMandatorySchemaResource("create", "history");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaCreateHistory | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaCreateEngine() {
executeMandatorySchemaResource("create", "engine");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaCreateEngine | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaCreateCmmn() {
executeMandatorySchemaResource("create", "case.engine");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaCreateCmmn | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaCreateCmmnHistory() {
executeMandatorySchemaResource("create", "case.history");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaCreateCmmnHistory | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaCreateDmn() {
executeMandatorySchemaResource("create", "decision.engine");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaCreateDmn | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaCreateDmnHistory() {
executeMandatorySchemaResource("create", "decision.history");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaCreateDmnHistory | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaDropIdentity() {
executeMandatorySchemaResource("drop", "identity");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaDropIdentity | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaDropHistory() {
executeMandatorySchemaResource("drop", "history");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaDropHistory | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaDropEngine() {
executeMandatorySchemaResource("drop", "engine");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaDropEngine | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaDropCmmn() {
executeMandatorySchemaResource("drop", "case.engine");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaDropCmmn | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaDropCmmnHistory() {
executeMandatorySchemaResource("drop", "case.history");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaDropCmmnHistory | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaDropDmn() {
executeMandatorySchemaResource("drop", "decision.engine");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaDropDmn | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
protected void dbSchemaDropDmnHistory() {
executeMandatorySchemaResource("drop", "decision.history");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | dbSchemaDropDmnHistory | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
public void executeMandatorySchemaResource(String operation, String component) {
executeSchemaResource(operation, component, getResourceForDbOperation(operation, operation, component), false);
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | executeMandatorySchemaResource | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public boolean isEngineTablePresent(){
return isTablePresent("ACT_RU_EXECUTION");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | isEngineTablePresent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public boolean isHistoryTablePresent(){
return isTablePresent("ACT_HI_PROCINST");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | isHistoryTablePresent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public boolean isIdentityTablePresent(){
return isTablePresent("ACT_ID_USER");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | isIdentityTablePresent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public boolean isCmmnTablePresent() {
return isTablePresent("ACT_RE_CASE_DEF");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | isCmmnTablePresent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public boolean isCmmnHistoryTablePresent() {
return isTablePresent("ACT_HI_CASEINST");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | isCmmnHistoryTablePresent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public boolean isDmnTablePresent() {
return isTablePresent("ACT_RE_DECISION_DEF");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | isDmnTablePresent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public boolean isDmnHistoryTablePresent() {
return isTablePresent("ACT_HI_DECINST");
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | isDmnHistoryTablePresent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
public boolean isTablePresent(String tableName) {
tableName = prependDatabaseTablePrefix(tableName);
Connection connection = null;
try {
connection = ExceptionUtil.doWithExceptionWrapper(() -> sqlSession.getConnection());
DatabaseMetaData databaseMetaData = connection.getMetaData();
Result... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | isTablePresent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public List<String> getTableNamesPresent() {
List<String> tableNames = new ArrayList<>();
try {
ResultSet tablesRs = null;
try {
if (DbSqlSessionFactory.ORACLE.equals(getDbSqlSessionFactory().getDatabaseType())) {
tableNames = getTablesPresentInOracleDatabase();
... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | getTableNamesPresent | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
protected List<String> getTablesPresentInOracleDatabase() throws SQLException {
List<String> tableNames = new ArrayList<>();
Connection connection = null;
PreparedStatement prepStat = null;
ResultSet tablesRs = null;
String selectTableNamesFromOracle = "SELECT table_name FROM all_tables WHERE table_... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | getTablesPresentInOracleDatabase | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
public String prependDatabaseTablePrefix(String tableName) {
String prefixWithoutSchema = dbSqlSessionFactory.getDatabaseTablePrefix();
String schema = dbSqlSessionFactory.getDatabaseSchema();
if (prefixWithoutSchema == null) {
return tableName;
}
if (schema == null) {
return prefixWitho... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | prependDatabaseTablePrefix | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
public String getResourceForDbOperation(String directory, String operation, String component) {
String databaseType = dbSqlSessionFactory.getDatabaseType();
return "org/camunda/bpm/engine/db/" + directory + "/activiti." + databaseType + "." + operation + "."+component+".sql";
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | getResourceForDbOperation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
public void executeSchemaResource(String operation, String component, String resourceName, boolean isOptional) {
InputStream inputStream = null;
try {
inputStream = ReflectUtil.getResourceAsStream(resourceName);
if (inputStream == null) {
if (isOptional) {
LOG.missingSchemaResource... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | executeSchemaResource | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
public void executeSchemaResource(String schemaFileResourceName) {
FileInputStream inputStream = null;
try {
inputStream = new FileInputStream(new File(schemaFileResourceName));
executeSchemaResource("schema operation", "process engine", schemaFileResourceName, inputStream);
} catch (FileNotFoun... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | executeSchemaResource | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
private void executeSchemaResource(String operation, String component, String resourceName, InputStream inputStream) {
String sqlStatement = null;
String exceptionSqlStatement = null;
try {
Connection connection = ExceptionUtil.doWithExceptionWrapper(() -> sqlSession.getConnection());
Exception ... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | executeSchemaResource | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
protected String addSqlStatementPiece(String sqlStatement, String line) {
if (sqlStatement==null) {
return line;
}
return sqlStatement + " \n" + line;
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | addSqlStatementPiece | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
protected String readNextTrimmedLine(BufferedReader reader) throws IOException {
String line = reader.readLine();
if (line!=null) {
line = line.trim();
}
return line;
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | readNextTrimmedLine | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
protected boolean isMissingTablesException(Exception e) {
Throwable cause = e.getCause();
if (cause != null) {
String exceptionMessage = cause.getMessage();
if(cause.getMessage() != null) {
// Matches message returned from H2
if ((exceptionMessage.contains("Table")) && (exceptionMess... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | isMissingTablesException | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
protected String[] getTableTypes() {
// the PostgreSQL JDBC API changed in 42.2.11 and partitioned tables
// are not detected unless the corresponding table type flag is added.
if (DatabaseUtil.checkDatabaseType(DbSqlSessionFactory.POSTGRES)) {
return PG_JDBC_METADATA_TABLE_TYPES;
}
return JD... | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | getTableTypes | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
public SqlSession getSqlSession() {
return sqlSession;
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | getSqlSession | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
public DbSqlSessionFactory getDbSqlSessionFactory() {
return dbSqlSessionFactory;
} | @author Tom Baeyens
@author Joram Barrez
@author Daniel Meyer
@author Sebastian Menski
@author Roman Smirnov | getDbSqlSessionFactory | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSession.java | Apache-2.0 |
@Override
public Class< ? > getSessionType() {
return DbSqlSession.class;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getSessionType | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
@Override
public Session openSession() {
return jdbcBatchProcessing ? new BatchDbSqlSession(this) : new SimpleDbSqlSession(this);
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | openSession | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public DbSqlSession openSession(Connection connection, String catalog, String schema) {
return jdbcBatchProcessing ?
new BatchDbSqlSession(this, connection, catalog, schema) :
new SimpleDbSqlSession(this, connection, catalog, schema);
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | openSession | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public String getInsertStatement(DbEntity object) {
return getStatement(object.getClass(), insertStatements, "insert");
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getInsertStatement | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public String getUpdateStatement(DbEntity object) {
return getStatement(object.getClass(), updateStatements, "update");
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getUpdateStatement | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public String getDeleteStatement(Class<?> persistentObjectClass) {
return getStatement(persistentObjectClass, deleteStatements, "delete");
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getDeleteStatement | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public String getSelectStatement(Class<?> persistentObjectClass) {
return getStatement(persistentObjectClass, selectStatements, "select");
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getSelectStatement | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
private String getStatement(Class<?> persistentObjectClass, Map<Class<?>,String> cachedStatements, String prefix) {
String statement = cachedStatements.get(persistentObjectClass);
if (statement!=null) {
return statement;
}
statement = prefix+ClassNameUtil.getClassNameWithoutPackage(persistentObjec... | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getStatement | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
protected static void addDatabaseSpecificStatement(String databaseType, String activitiStatement, String ibatisStatement) {
Map<String, String> specificStatements = databaseSpecificStatements.get(databaseType);
if (specificStatements == null) {
specificStatements = new HashMap<>();
databaseSpecificS... | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | addDatabaseSpecificStatement | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public String mapStatement(String statement) {
if (statementMappings==null) {
return statement;
}
String mappedStatement = statementMappings.get(statement);
return (mappedStatement!=null ? mappedStatement : statement);
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | mapStatement | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setDatabaseType(String databaseType) {
this.databaseType = databaseType;
this.statementMappings = databaseSpecificStatements.get(databaseType);
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setDatabaseType | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public SqlSessionFactory getSqlSessionFactory() {
return sqlSessionFactory;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getSqlSessionFactory | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
this.sqlSessionFactory = sqlSessionFactory;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setSqlSessionFactory | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public IdGenerator getIdGenerator() {
return idGenerator;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getIdGenerator | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setIdGenerator(IdGenerator idGenerator) {
this.idGenerator = idGenerator;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setIdGenerator | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public String getDatabaseType() {
return databaseType;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getDatabaseType | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public Map<String, String> getStatementMappings() {
return statementMappings;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getStatementMappings | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setStatementMappings(Map<String, String> statementMappings) {
this.statementMappings = statementMappings;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setStatementMappings | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public Map<Class< ? >, String> getInsertStatements() {
return insertStatements;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getInsertStatements | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setInsertStatements(Map<Class< ? >, String> insertStatements) {
this.insertStatements = insertStatements;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setInsertStatements | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public Map<Class< ? >, String> getUpdateStatements() {
return updateStatements;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getUpdateStatements | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setUpdateStatements(Map<Class< ? >, String> updateStatements) {
this.updateStatements = updateStatements;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setUpdateStatements | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public Map<Class< ? >, String> getDeleteStatements() {
return deleteStatements;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getDeleteStatements | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setDeleteStatements(Map<Class< ? >, String> deleteStatements) {
this.deleteStatements = deleteStatements;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setDeleteStatements | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public Map<Class< ? >, String> getSelectStatements() {
return selectStatements;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getSelectStatements | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setSelectStatements(Map<Class< ? >, String> selectStatements) {
this.selectStatements = selectStatements;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setSelectStatements | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public boolean isDbIdentityUsed() {
return isDbIdentityUsed;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | isDbIdentityUsed | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setDbIdentityUsed(boolean isDbIdentityUsed) {
this.isDbIdentityUsed = isDbIdentityUsed;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setDbIdentityUsed | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public boolean isDbHistoryUsed() {
return isDbHistoryUsed;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | isDbHistoryUsed | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setDbHistoryUsed(boolean isDbHistoryUsed) {
this.isDbHistoryUsed = isDbHistoryUsed;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setDbHistoryUsed | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public boolean isCmmnEnabled() {
return cmmnEnabled;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | isCmmnEnabled | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setCmmnEnabled(boolean cmmnEnabled) {
this.cmmnEnabled = cmmnEnabled;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setCmmnEnabled | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public boolean isDmnEnabled() {
return dmnEnabled;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | isDmnEnabled | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setDmnEnabled(boolean dmnEnabled) {
this.dmnEnabled = dmnEnabled;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setDmnEnabled | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setDatabaseTablePrefix(String databaseTablePrefix) {
this.databaseTablePrefix = databaseTablePrefix;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setDatabaseTablePrefix | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public String getDatabaseTablePrefix() {
return databaseTablePrefix;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getDatabaseTablePrefix | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public String getDatabaseSchema() {
return databaseSchema;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | getDatabaseSchema | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void setDatabaseSchema(String databaseSchema) {
this.databaseSchema = databaseSchema;
} | In some situations you want to set the schema to use for table checks /
generation if the database metadata doesn't return that correctly, see
https://jira.codehaus.org/browse/ACT-1220,
https://jira.codehaus.org/browse/ACT-1062 | setDatabaseSchema | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/db/sql/DbSqlSessionFactory.java | Apache-2.0 |
public void handleInvocation(final DelegateInvocation invocation) throws Exception {
final ProcessApplicationReference processApplication = getProcessApplicationForInvocation(invocation);
if (processApplication != null && ProcessApplicationContextUtil.requiresContextSwitch(processApplication)) {
Context... | The default implementation of the DelegateInterceptor.
<p/>
This implementation has the following features:
<ul>
<li>it performs context switch into the target process application (if applicable)</li>
<li>it checks autorizations if {@link ProcessEngineConfigurationImpl#isAuthorizationEnabledForCustomCode()} is true</li... | handleInvocation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | Apache-2.0 |
@Override
public Void call() throws Exception {
handleInvocation(invocation);
return null;
} | The default implementation of the DelegateInterceptor.
<p/>
This implementation has the following features:
<ul>
<li>it performs context switch into the target process application (if applicable)</li>
<li>it checks autorizations if {@link ProcessEngineConfigurationImpl#isAuthorizationEnabledForCustomCode()} is true</li... | call | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | Apache-2.0 |
protected void handleInvocationInContext(final DelegateInvocation invocation) throws Exception {
CommandContext commandContext = Context.getCommandContext();
boolean wasAuthorizationCheckEnabled = commandContext.isAuthorizationCheckEnabled();
boolean wasUserOperationLogEnabled = commandContext.isUserOperati... | The default implementation of the DelegateInterceptor.
<p/>
This implementation has the following features:
<ul>
<li>it performs context switch into the target process application (if applicable)</li>
<li>it checks autorizations if {@link ProcessEngineConfigurationImpl#isAuthorizationEnabledForCustomCode()} is true</li... | handleInvocationInContext | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | Apache-2.0 |
protected boolean setExecutionContext(BaseDelegateExecution execution) {
if (execution instanceof ExecutionEntity) {
Context.setExecutionContext((ExecutionEntity) execution);
return true;
}
else if (execution instanceof CaseExecutionEntity) {
Context.setExecutionContext((CaseExecutionEntit... | @return true if the execution context is modified by this invocation | setExecutionContext | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | Apache-2.0 |
protected boolean isCurrentContextExecution(BaseDelegateExecution execution) {
CoreExecutionContext<?> coreExecutionContext = Context.getCoreExecutionContext();
return coreExecutionContext != null && coreExecutionContext.getExecution() == execution;
} | @return true if the execution context is modified by this invocation | isCurrentContextExecution | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | Apache-2.0 |
protected ProcessApplicationReference getProcessApplicationForInvocation(final DelegateInvocation invocation) {
BaseDelegateExecution contextExecution = invocation.getContextExecution();
ResourceDefinitionEntity contextResource = invocation.getContextResource();
if (contextExecution != null) {
retur... | @return true if the execution context is modified by this invocation | getProcessApplicationForInvocation | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DefaultDelegateInterceptor.java | Apache-2.0 |
public Object getInvocationResult() {
return invocationResult;
} | @return the result of the invocation (can be null if the invocation does
not return a result) | getInvocationResult | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DelegateInvocation.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DelegateInvocation.java | Apache-2.0 |
public BaseDelegateExecution getContextExecution() {
return contextExecution;
} | returns the execution in which context this delegate is invoked. may be null | getContextExecution | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DelegateInvocation.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DelegateInvocation.java | Apache-2.0 |
public ResourceDefinitionEntity getContextResource() {
return contextResource;
} | returns the execution in which context this delegate is invoked. may be null | getContextResource | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DelegateInvocation.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/delegate/DelegateInvocation.java | Apache-2.0 |
protected void invoke() throws Exception {
invocationResult = valueExpression.getValue(elContext);
} | Class responsible for handling Expression.getValue invocations
@author Daniel Meyer | invoke | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/delegate/ExpressionGetInvocation.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/delegate/ExpressionGetInvocation.java | Apache-2.0 |
@Override
protected void invoke() throws Exception {
valueExpression.setValue(elContext, value);
} | Class responsible for handling Expression.setValue() invocations.
@author Daniel Meyer | invoke | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/delegate/ExpressionSetInvocation.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/delegate/ExpressionSetInvocation.java | Apache-2.0 |
public String generatePrefix(String algorithmName){
return "{" + algorithmName + "}";
} | In order to distinguish between the used hashed algorithm
for the password encryption, as prefix is persisted with the
encrypted to the database.
The {@link DatabasePrefixHandler} is used to handle the prefix, especially for building
the prefix, retrieving the algorithm name from the prefix and
removing the prefix name... | generatePrefix | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/digest/DatabasePrefixHandler.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/digest/DatabasePrefixHandler.java | Apache-2.0 |
public String retrieveAlgorithmName(String encryptedPasswordWithPrefix) {
Matcher matcher = pattern.matcher(encryptedPasswordWithPrefix);
if(matcher.find()){
return matcher.group(1);
}
return null;
} | In order to distinguish between the used hashed algorithm
for the password encryption, as prefix is persisted with the
encrypted to the database.
The {@link DatabasePrefixHandler} is used to handle the prefix, especially for building
the prefix, retrieving the algorithm name from the prefix and
removing the prefix name... | retrieveAlgorithmName | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/digest/DatabasePrefixHandler.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/digest/DatabasePrefixHandler.java | Apache-2.0 |
public String removePrefix(String encryptedPasswordWithPrefix) {
int index = encryptedPasswordWithPrefix.indexOf("}");
if(!encryptedPasswordWithPrefix.startsWith("{") || index < 0){
return null;
}
return encryptedPasswordWithPrefix.substring(index+1);
} | In order to distinguish between the used hashed algorithm
for the password encryption, as prefix is persisted with the
encrypted to the database.
The {@link DatabasePrefixHandler} is used to handle the prefix, especially for building
the prefix, retrieving the algorithm name from the prefix and
removing the prefix name... | removePrefix | java | camunda/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/digest/DatabasePrefixHandler.java | https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/digest/DatabasePrefixHandler.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.