org.kuali.kfs.gl.dataaccess
Interface ReversalDao

All Known Implementing Classes:
ReversalDaoOjb

public interface ReversalDao

An interface that declares the methods needed for reversal services to interact with the database


Method Summary
 void delete(Reversal re)
          Deletes a reversal record
 Iterator getByDate(Date before)
          Returns all reversals that should have reversed on or before the given date
 Reversal getByTransaction(Transaction t)
          Looks up the reversal that matches the keys from the given transaction
 int getMaxSequenceNumber(Transaction t)
          Find the maximum transactionLedgerEntrySequenceNumber in the entry table for a specific transaction.
 void save(Reversal re)
          Saves a reversal record
 

Method Detail

save

void save(Reversal re)
Saves a reversal record

Parameters:
re - a reversal to save

getMaxSequenceNumber

int getMaxSequenceNumber(Transaction t)
Find the maximum transactionLedgerEntrySequenceNumber in the entry table for a specific transaction. This is used to make sure that rows added have a unique primary key.

Parameters:
t - a transaction to find the maximum sequence number for
Returns:
the max sequence number for the given transaction

getByTransaction

Reversal getByTransaction(Transaction t)
Looks up the reversal that matches the keys from the given transaction

Parameters:
t - the given transaction
Returns:
the reversal that matches the keys of that transaction

getByDate

Iterator getByDate(Date before)
Returns all reversals that should have reversed on or before the given date

Parameters:
before - the date that reversals retrieved should reverse on or before
Returns:
an iterator of reversal records

delete

void delete(Reversal re)
Deletes a reversal record

Parameters:
re - a reversal to delete


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.