org.springframework.batch.item.database.support
Class DefaultDataFieldMaxValueIncrementerFactory

java.lang.Object
  extended by org.springframework.batch.item.database.support.DefaultDataFieldMaxValueIncrementerFactory
All Implemented Interfaces:
DataFieldMaxValueIncrementerFactory

public class DefaultDataFieldMaxValueIncrementerFactory
extends Object
implements DataFieldMaxValueIncrementerFactory

Default implementation of the DataFieldMaxValueIncrementerFactory interface. Valid types are: Valid values are:

Author:
Lucas Ward

Constructor Summary
DefaultDataFieldMaxValueIncrementerFactory(DataSource dataSource)
           
 
Method Summary
 DataFieldMaxValueIncrementer getIncrementer(String incrementerType, String incrementerName)
          Return the DataFieldMaxValueIncrementer for the provided database type.
 String[] getSupportedIncrementerTypes()
          Returns the list of supported database incrementer types
 boolean isSupportedIncrementerType(String incrementerType)
          Returns boolean indicated whether or not the provided string is supported by this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDataFieldMaxValueIncrementerFactory

public DefaultDataFieldMaxValueIncrementerFactory(DataSource dataSource)
Method Detail

getIncrementer

public DataFieldMaxValueIncrementer getIncrementer(String incrementerType,
                                                   String incrementerName)
Description copied from interface: DataFieldMaxValueIncrementerFactory
Return the DataFieldMaxValueIncrementer for the provided database type.

Specified by:
getIncrementer in interface DataFieldMaxValueIncrementerFactory
Parameters:
incrementerType - string represented database type
incrementerName - incrementer name to create. In many cases this may be the sequence name
Returns:
incrementer

isSupportedIncrementerType

public boolean isSupportedIncrementerType(String incrementerType)
Description copied from interface: DataFieldMaxValueIncrementerFactory
Returns boolean indicated whether or not the provided string is supported by this factory.

Specified by:
isSupportedIncrementerType in interface DataFieldMaxValueIncrementerFactory

getSupportedIncrementerTypes

public String[] getSupportedIncrementerTypes()
Description copied from interface: DataFieldMaxValueIncrementerFactory
Returns the list of supported database incrementer types

Specified by:
getSupportedIncrementerTypes in interface DataFieldMaxValueIncrementerFactory


Copyright © 2008 SpringSource. All Rights Reserved.