Class AbstractJdbcBatchMetadataDao
java.lang.Object
org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
JdbcExecutionContextDao,JdbcJobExecutionDao,JdbcJobInstanceDao,JdbcStepExecutionDao
public abstract class AbstractJdbcBatchMetadataDao
extends Object
implements org.springframework.beans.factory.InitializingBean
Encapsulates common functionality needed by JDBC batch metadata DAOs - provides
jdbcTemplate for subclasses and handles table prefixes.
- Author:
- Robert Kasanicky, Mahmoud Ben Hassine
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final StringDefault value for the table prefix property. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintprotected org.springframework.jdbc.core.JdbcOperationsprotected Stringprotected StringvoidsetClobTypeToUse(int clobTypeToUse) voidsetJdbcTemplate(org.springframework.jdbc.core.JdbcOperations jdbcTemplate) voidsetTablePrefix(String tablePrefix) Public setter for the table prefix property.
-
Field Details
-
DEFAULT_TABLE_PREFIX
Default value for the table prefix property.- See Also:
-
DEFAULT_EXIT_MESSAGE_LENGTH
public static final int DEFAULT_EXIT_MESSAGE_LENGTH- See Also:
-
DEFAULT_SHORT_CONTEXT_LENGTH
public static final int DEFAULT_SHORT_CONTEXT_LENGTH- See Also:
-
-
Constructor Details
-
AbstractJdbcBatchMetadataDao
public AbstractJdbcBatchMetadataDao()
-
-
Method Details
-
getQuery
-
getTablePrefix
-
setTablePrefix
Public setter for the table prefix property. This will be prefixed to all the table names before queries are executed. Defaults toDEFAULT_TABLE_PREFIX.- Parameters:
tablePrefix- the tablePrefix to set
-
setJdbcTemplate
public void setJdbcTemplate(org.springframework.jdbc.core.JdbcOperations jdbcTemplate) -
getJdbcTemplate
protected org.springframework.jdbc.core.JdbcOperations getJdbcTemplate() -
getClobTypeToUse
public int getClobTypeToUse() -
setClobTypeToUse
public void setClobTypeToUse(int clobTypeToUse) -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-