Class DefaultJdbcCustomization
java.lang.Object
com.github.kagkarlsson.scheduler.jdbc.DefaultJdbcCustomization
- All Implemented Interfaces:
JdbcCustomization
- Direct Known Subclasses:
MariaDBJdbcCustomization,MssqlJdbcCustomization,MySQL8JdbcCustomization,MySQLJdbcCustomization,OracleJdbcCustomization,PostgreSqlJdbcCustomization
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateGenericSelectForUpdateQuery(String tableName, int limit, String requiredAndCondition, boolean orderByPriority) createSelectDueQuery(String tableName, int limit, String andCondition, boolean orderByPriority) getInstant(ResultSet rs, String columnName) getName()getQueryLimitPart(int limit) byte[]getTaskData(ResultSet rs, String columnName) lockAndFetchSingleStatement(JdbcTaskRepositoryContext ctx, Instant now, int limit, boolean orderByPriority) voidsetInstant(PreparedStatement p, int index, Instant value) voidsetTaskData(PreparedStatement p, int index, byte[] value) booleanbooleanboolean
-
Field Details
-
UTC
-
-
Constructor Details
-
DefaultJdbcCustomization
public DefaultJdbcCustomization(boolean persistTimestampInUTC)
-
-
Method Details
-
setInstant
- Specified by:
setInstantin interfaceJdbcCustomization- Throws:
SQLException
-
getInstant
- Specified by:
getInstantin interfaceJdbcCustomization- Throws:
SQLException
-
setTaskData
- Specified by:
setTaskDatain interfaceJdbcCustomization- Throws:
SQLException
-
getTaskData
- Specified by:
getTaskDatain interfaceJdbcCustomization- Throws:
SQLException
-
supportsExplicitQueryLimitPart
public boolean supportsExplicitQueryLimitPart()- Specified by:
supportsExplicitQueryLimitPartin interfaceJdbcCustomization
-
getQueryLimitPart
- Specified by:
getQueryLimitPartin interfaceJdbcCustomization
-
supportsSingleStatementLockAndFetch
public boolean supportsSingleStatementLockAndFetch()- Specified by:
supportsSingleStatementLockAndFetchin interfaceJdbcCustomization
-
lockAndFetchSingleStatement
public List<Execution> lockAndFetchSingleStatement(JdbcTaskRepositoryContext ctx, Instant now, int limit, boolean orderByPriority) - Specified by:
lockAndFetchSingleStatementin interfaceJdbcCustomization
-
supportsGenericLockAndFetch
public boolean supportsGenericLockAndFetch()- Specified by:
supportsGenericLockAndFetchin interfaceJdbcCustomization
-
createGenericSelectForUpdateQuery
public String createGenericSelectForUpdateQuery(String tableName, int limit, String requiredAndCondition, boolean orderByPriority) - Specified by:
createGenericSelectForUpdateQueryin interfaceJdbcCustomization
-
createSelectDueQuery
public String createSelectDueQuery(String tableName, int limit, String andCondition, boolean orderByPriority) - Specified by:
createSelectDueQueryin interfaceJdbcCustomization
-
getName
- Specified by:
getNamein interfaceJdbcCustomization
-