org.apache.commons.transaction.file
Class NoOpTransactionIdToPathMapper

java.lang.Object
  extended by org.apache.commons.transaction.file.NoOpTransactionIdToPathMapper
All Implemented Interfaces:
TransactionIdToPathMapper

public class NoOpTransactionIdToPathMapper
extends Object
implements TransactionIdToPathMapper

Default implementation of TransactionIdToPathMapper, which expects transaction ids being strings and using them as path.

Since:
1.2
Version:
$Id: NoOpTransactionIdToPathMapper.java 493632 2007-01-07 01:57:31Z joerg $

Constructor Summary
NoOpTransactionIdToPathMapper()
           
 
Method Summary
 Object getIdForPath(String path)
          Maps the path string to a transaction id object.
 String getPathForId(Object txId)
          Maps the transaction id object to a path string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpTransactionIdToPathMapper

public NoOpTransactionIdToPathMapper()
Method Detail

getPathForId

public String getPathForId(Object txId)
Description copied from interface: TransactionIdToPathMapper
Maps the transaction id object to a path string.

Specified by:
getPathForId in interface TransactionIdToPathMapper
Parameters:
txId - the transaction id
Returns:
the path string

getIdForPath

public Object getIdForPath(String path)
Description copied from interface: TransactionIdToPathMapper
Maps the path string to a transaction id object.

Specified by:
getIdForPath in interface TransactionIdToPathMapper
Parameters:
path - the path
Returns:
the path string


Copyright © 2004-2009 Apache Software Foundation. All Rights Reserved.