org.apache.commons.transaction.file
Class NoOpTransactionIdToPathMapper
java.lang.Object
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOpTransactionIdToPathMapper
public NoOpTransactionIdToPathMapper()
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-2011 Apache Software Foundation. All Rights Reserved.