Class TemporaryTableDialect
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.util.TemporaryTableDialect
-
public abstract class TemporaryTableDialect extends Object
Created by Viliam Repan (lazyman).
-
-
Constructor Summary
Constructors Constructor Description TemporaryTableDialect()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
dropTemporaryTableAfterUse()
Do we need to drop the temporary table after use?String
generateTemporaryTableName(String baseTableName)
Generate a temporary table name given the base table.String
getCreateTemporaryTablePostfix()
Get any fragments needing to be postfixed to the command for temporary table creation.String
getCreateTemporaryTableString()
Command used to create a temporary table.String
getDropTemporaryTableString()
Command used to drop a temporary table.static TemporaryTableDialect
getTempTableDialect(org.hibernate.dialect.Dialect dialect)
boolean
supportsTemporaryTables()
Does this dialect support temporary tables?
-
-
-
Method Detail
-
supportsTemporaryTables
public boolean supportsTemporaryTables()
Does this dialect support temporary tables?- Returns:
- True if temp tables are supported; false otherwise.
-
generateTemporaryTableName
public String generateTemporaryTableName(String baseTableName)
Generate a temporary table name given the base table.- Parameters:
baseTableName
- The table name from which to base the temp table name.- Returns:
- The generated temp table name.
-
getCreateTemporaryTableString
public String getCreateTemporaryTableString()
Command used to create a temporary table.- Returns:
- The command used to create a temporary table.
-
getCreateTemporaryTablePostfix
public String getCreateTemporaryTablePostfix()
Get any fragments needing to be postfixed to the command for temporary table creation.- Returns:
- Any required postfix.
-
getDropTemporaryTableString
public String getDropTemporaryTableString()
Command used to drop a temporary table.- Returns:
- The command used to drop a temporary table.
-
dropTemporaryTableAfterUse
public boolean dropTemporaryTableAfterUse()
Do we need to drop the temporary table after use?- Returns:
- True if the table should be dropped.
-
getTempTableDialect
public static TemporaryTableDialect getTempTableDialect(org.hibernate.dialect.Dialect dialect)
-
-