org.sakaiproject.search.transaction.impl
Class TransactionSequenceImpl

java.lang.Object
  extended by org.sakaiproject.search.transaction.impl.TransactionSequenceImpl
All Implemented Interfaces:
TransactionSequence

public class TransactionSequenceImpl
extends Object
implements TransactionSequence

Author:
ieb Unit test
See Also:
org.sakaiproject.search.indexer.impl.test.SequenceGeneratorDisabled

Constructor Summary
TransactionSequenceImpl()
           
 
Method Summary
 void destroy()
           
 DataSource getDatasource()
           
 long getLocalId()
          This retuns the next id for the local JVM
 long getMaxValue()
           
 long getMinValue()
           
 String getName()
           
 long getNextId()
          This returns a safe clusterwide id
 void init()
          Loads the first transaction to initialize
 void setDatasource(DataSource datasource)
           
 void setMaxValue(long maxValue)
           
 void setMinValue(long minValue)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionSequenceImpl

public TransactionSequenceImpl()
Method Detail

destroy

public void destroy()

init

public void init()
Loads the first transaction to initialize


getNextId

public long getNextId()
Description copied from interface: TransactionSequence
This returns a safe clusterwide id

Specified by:
getNextId in interface TransactionSequence
Returns:

getDatasource

public DataSource getDatasource()
Returns:
the datasource

setDatasource

public void setDatasource(DataSource datasource)
Parameters:
datasource - the datasource to set

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

getLocalId

public long getLocalId()
Description copied from interface: TransactionSequence
This retuns the next id for the local JVM

Specified by:
getLocalId in interface TransactionSequence
Returns:

getMaxValue

public long getMaxValue()
Returns:
the maxValue

setMaxValue

public void setMaxValue(long maxValue)
Parameters:
maxValue - the maxValue to set

getMinValue

public long getMinValue()
Returns:
the minValue

setMinValue

public void setMinValue(long minValue)
Parameters:
minValue - the minValue to set


Copyright © 2003-2012 Sakai Project. All Rights Reserved.