com.pnpconsult.zeiterfassung.helper
Class BillManager

java.lang.Object
  extended bycom.pnpconsult.zeiterfassung.helper.AbstractObjectManager2
      extended bycom.pnpconsult.zeiterfassung.helper.BillManager

public class BillManager
extends AbstractObjectManager2

Version:
$Id: BillManager.java,v 1.13 2004/08/02 20:36:08 powerpete Exp $
Author:
M. Petersen

Constructor Summary
BillManager()
           
 
Method Summary
 void delete(long id)
           
 Bill load(long id)
           
 java.util.List loadAll()
           
 java.util.Collection loadNotPrinted()
           
 java.util.Collection loadPrinted()
           
 java.util.Collection loadPrintedAndNotArchived()
           
 Bill loadSame(Bill bill)
          Returns a bill that is overlapped by the given bill object.
 java.util.List loadUserEntries(Bill bill)
           
 void reset(long id)
           
 void save(Bill bill)
           
 void update(Bill bill)
           
 
Methods inherited from class com.pnpconsult.zeiterfassung.helper.AbstractObjectManager2
delete, find, find, find, load, loadAll, loadAllNotArchived, save, save, sort, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BillManager

public BillManager()
Method Detail

load

public Bill load(long id)
          throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

loadAll

public java.util.List loadAll()
                       throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

loadUserEntries

public java.util.List loadUserEntries(Bill bill)
                               throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

delete

public void delete(long id)
            throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

save

public void save(Bill bill)
          throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

loadSame

public Bill loadSame(Bill bill)
              throws net.sf.hibernate.HibernateException
Returns a bill that is overlapped by the given bill object. Should be used to prevent creating duplicate bills with the same entries.

Parameters:
bill - The Billobject.
Returns:
One overlapping Billobject or null if no overlapping object exists.
Throws:
net.sf.hibernate.HibernateException - On Hibernate error.
jface.util.factory.FactoryException - On configuration error.

loadNotPrinted

public java.util.Collection loadNotPrinted()
                                    throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

loadPrinted

public java.util.Collection loadPrinted()
                                 throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

update

public void update(Bill bill)
            throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

loadPrintedAndNotArchived

public java.util.Collection loadPrintedAndNotArchived()
                                               throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

reset

public void reset(long id)
           throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException


Copyright © 2003-2004 PNP Unternehmensberatung. All Rights Reserved.