org.springframework.batch.core.repository.dao
Class AbstractJdbcBatchMetadataDao

java.lang.Object
  extended by org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
All Implemented Interfaces:
InitializingBean
Direct Known Subclasses:
JdbcExecutionContextDao, JdbcJobExecutionDao, JdbcJobInstanceDao, JdbcStepExecutionDao, JobRepositoryTestUtils

public abstract class AbstractJdbcBatchMetadataDao
extends Object
implements InitializingBean

Encapsulates common functionality needed by JDBC batch metadata DAOs - provides jdbcTemplate for subclasses and handles table prefixes.

Author:
Robert Kasanicky

Field Summary
static int DEFAULT_EXIT_MESSAGE_LENGTH
           
static String DEFAULT_TABLE_PREFIX
          Default value for the table prefix property.
 
Constructor Summary
AbstractJdbcBatchMetadataDao()
           
 
Method Summary
 void afterPropertiesSet()
           
 int getClobTypeToUse()
           
protected  SimpleJdbcOperations getJdbcTemplate()
           
protected  String getQuery(String base)
           
protected  String getTablePrefix()
           
 void setClobTypeToUse(int clobTypeToUse)
           
 void setJdbcTemplate(SimpleJdbcOperations jdbcTemplate)
           
 void setTablePrefix(String tablePrefix)
          Public setter for the table prefix property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TABLE_PREFIX

public static final String DEFAULT_TABLE_PREFIX
Default value for the table prefix property.

See Also:
Constant Field Values

DEFAULT_EXIT_MESSAGE_LENGTH

public static final int DEFAULT_EXIT_MESSAGE_LENGTH
See Also:
Constant Field Values
Constructor Detail

AbstractJdbcBatchMetadataDao

public AbstractJdbcBatchMetadataDao()
Method Detail

getQuery

protected String getQuery(String base)

getTablePrefix

protected String getTablePrefix()

setTablePrefix

public void setTablePrefix(String tablePrefix)
Public setter for the table prefix property. This will be prefixed to all the table names before queries are executed. Defaults to DEFAULT_TABLE_PREFIX.

Parameters:
tablePrefix - the tablePrefix to set

setJdbcTemplate

public void setJdbcTemplate(SimpleJdbcOperations jdbcTemplate)

getJdbcTemplate

protected SimpleJdbcOperations getJdbcTemplate()

getClobTypeToUse

public int getClobTypeToUse()

setClobTypeToUse

public void setClobTypeToUse(int clobTypeToUse)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception


Copyright © 2013 SpringSource. All Rights Reserved.