Package io.ebean.migration.ddl
Interface DdlAutoCommit
-
public interface DdlAutoCommit
Detect non transactional SQL statements that must run after normal sql statements with connection set to auto commit true.
-
-
Field Summary
Fields Modifier and Type Field Description static DdlAutoCommitCOCKROACHstatic DdlAutoCommitNONEstatic DdlAutoCommitPOSTGRES
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static DdlAutoCommitforPlatform(String name)Return the implementation for the given platform.booleanisAutoCommit()Return true if auto commit true should be used for all DDL for the database platform.booleantransactional(String sql)Return false if the SQL is non transactional and should run with auto commit.
-
-
-
Field Detail
-
NONE
static final DdlAutoCommit NONE
-
POSTGRES
static final DdlAutoCommit POSTGRES
-
COCKROACH
static final DdlAutoCommit COCKROACH
-
-
Method Detail
-
forPlatform
static DdlAutoCommit forPlatform(String name)
Return the implementation for the given platform.
-
transactional
boolean transactional(String sql)
Return false if the SQL is non transactional and should run with auto commit.
-
isAutoCommit
boolean isAutoCommit()
Return true if auto commit true should be used for all DDL for the database platform.
-
-