com.metamatrix.common.id.dbid.spi
Interface DBIDSourceTransaction

All Superinterfaces:
TransactionInterface
All Known Implementing Classes:
DBIDResourceTransaction

public interface DBIDSourceTransaction
extends TransactionInterface

Defines methods used by DBIDGenerator create ID blocks.


Method Summary
 ReservedIDBlock createIDBlock(long blockSize, java.lang.String context, boolean wrapNumber)
          Create and return a new ReservedIDBlock.
 
Methods inherited from interface com.metamatrix.common.connection.TransactionInterface
close, commit, isClosed, isReadonly, rollback
 

Method Detail

createIDBlock

ReservedIDBlock createIDBlock(long blockSize,
                              java.lang.String context,
                              boolean wrapNumber)
                              throws java.lang.Exception

Create and return a new ReservedIDBlock.

Read in nextID from database, createIDBlock, then update nextID in database.

Parameters:
blockSize - size of id block
context -
wrapNumber - is true when the context is at its maximum limit and the next block should start over at the beginning
Returns:
ReservedIDBlock
Throws:
java.lang.Exception - when an error updating or reading the database occurs


Copyright © 2009. All Rights Reserved.