org.apache.commons.transaction.file
Interface TransactionIdToPathMapper

All Known Implementing Classes:
NoOpTransactionIdToPathMapper

public interface TransactionIdToPathMapper

Maps transaction ids to paths and back.

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

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.
 

Method Detail

getPathForId

String getPathForId(Object txId)
Maps the transaction id object to a path string.

Parameters:
txId - the transaction id
Returns:
the path string

getIdForPath

Object getIdForPath(String path)
Maps the path string to a transaction id object.

Parameters:
path - the path
Returns:
the path string


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