Class AutodetectJdbcCustomization
- java.lang.Object
-
- com.github.kagkarlsson.scheduler.jdbc.AutodetectJdbcCustomization
-
- All Implemented Interfaces:
JdbcCustomization
public class AutodetectJdbcCustomization extends Object implements JdbcCustomization
-
-
Field Summary
Fields Modifier and Type Field Description static StringMICROSOFT_SQL_SERVERstatic StringPOSTGRESQL
-
Constructor Summary
Constructors Constructor Description AutodetectJdbcCustomization(DataSource dataSource)
-
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()
-
-
-
Field Detail
-
MICROSOFT_SQL_SERVER
public static final String MICROSOFT_SQL_SERVER
- See Also:
- Constant Field Values
-
POSTGRESQL
public static final String POSTGRESQL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AutodetectJdbcCustomization
public AutodetectJdbcCustomization(DataSource dataSource)
-
-
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
-
-