Class DefaultJdbcCustomization
- java.lang.Object
-
- com.github.kagkarlsson.scheduler.jdbc.DefaultJdbcCustomization
-
- All Implemented Interfaces:
JdbcCustomization
- Direct Known Subclasses:
MssqlJdbcCustomization,PostgreSqlJdbcCustomization
public class DefaultJdbcCustomization extends Object implements JdbcCustomization
-
-
Constructor Summary
Constructors Constructor Description DefaultJdbcCustomization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetInstant(ResultSet rs, String columnName)StringgetName()StringgetQueryLimitPart(int limit)byte[]getTaskData(ResultSet rs, String columnName)List<Execution>lockAndFetch(com.github.kagkarlsson.scheduler.jdbc.JdbcTaskRepositoryContext ctx, Instant now, int limit)voidsetInstant(PreparedStatement p, int index, Instant value)voidsetTaskData(PreparedStatement p, int index, byte[] value)booleansupportsExplicitQueryLimitPart()booleansupportsLockAndFetch()
-
-
-
Method Detail
-
setInstant
public void setInstant(PreparedStatement p, int index, Instant value) throws SQLException
- Specified by:
setInstantin interfaceJdbcCustomization- Throws:
SQLException
-
getInstant
public Instant getInstant(ResultSet rs, String columnName) throws SQLException
- Specified by:
getInstantin interfaceJdbcCustomization- Throws:
SQLException
-
setTaskData
public void setTaskData(PreparedStatement p, int index, byte[] value) throws SQLException
- Specified by:
setTaskDatain interfaceJdbcCustomization- Throws:
SQLException
-
getTaskData
public byte[] getTaskData(ResultSet rs, String columnName) throws SQLException
- Specified by:
getTaskDatain interfaceJdbcCustomization- Throws:
SQLException
-
supportsExplicitQueryLimitPart
public boolean supportsExplicitQueryLimitPart()
- Specified by:
supportsExplicitQueryLimitPartin interfaceJdbcCustomization
-
getQueryLimitPart
public String getQueryLimitPart(int limit)
- Specified by:
getQueryLimitPartin interfaceJdbcCustomization
-
supportsLockAndFetch
public boolean supportsLockAndFetch()
- Specified by:
supportsLockAndFetchin interfaceJdbcCustomization
-
lockAndFetch
public List<Execution> lockAndFetch(com.github.kagkarlsson.scheduler.jdbc.JdbcTaskRepositoryContext ctx, Instant now, int limit)
- Specified by:
lockAndFetchin interfaceJdbcCustomization
-
getName
public String getName()
- Specified by:
getNamein interfaceJdbcCustomization
-
-