org.springframework.batch.admin.service
Class JdbcSearchableJobInstanceDao

java.lang.Object
  extended by org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
      extended by org.springframework.batch.core.repository.dao.JdbcJobInstanceDao
          extended by org.springframework.batch.admin.service.JdbcSearchableJobInstanceDao
All Implemented Interfaces:
SearchableJobInstanceDao, org.springframework.batch.core.repository.dao.JobInstanceDao, org.springframework.beans.factory.InitializingBean

public class JdbcSearchableJobInstanceDao
extends org.springframework.batch.core.repository.dao.JdbcJobInstanceDao
implements SearchableJobInstanceDao

Author:
Dave Syer

Field Summary
 
Fields inherited from class org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
DEFAULT_EXIT_MESSAGE_LENGTH, DEFAULT_TABLE_PREFIX
 
Constructor Summary
JdbcSearchableJobInstanceDao()
           
 
Method Summary
 void afterPropertiesSet()
           
 int countJobInstances(java.lang.String name)
           
 
Methods inherited from class org.springframework.batch.core.repository.dao.JdbcJobInstanceDao
createJobInstance, createJobKey, getJobInstance, getJobInstance, getJobInstance, getJobInstances, getJobNames, setJobIncrementer
 
Methods inherited from class org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
getClobTypeToUse, getJdbcTemplate, getQuery, getTablePrefix, setClobTypeToUse, setJdbcTemplate, setTablePrefix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.batch.core.repository.dao.JobInstanceDao
createJobInstance, getJobInstance, getJobInstance, getJobInstance, getJobInstances, getJobNames
 

Constructor Detail

JdbcSearchableJobInstanceDao

public JdbcSearchableJobInstanceDao()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.batch.core.repository.dao.JdbcJobInstanceDao
Throws:
java.lang.Exception
See Also:
JdbcJobExecutionDao.afterPropertiesSet()

countJobInstances

public int countJobInstances(java.lang.String name)
Specified by:
countJobInstances in interface SearchableJobInstanceDao
Parameters:
name - the name of the job instances
Returns:
the number of instances
See Also:
(String)


Copyright © 2011. All Rights Reserved.