hibergui.persister
Interface Persister<T>


public interface Persister<T>

Data Access Object-ok közös interfésze.


Method Summary
 void commit()
          Commits the recent changes on the storage.
 void delete(T entity)
          Deletes the business entity from the storage.
 void rollback()
          Rolls back the recent changes on the storage.
 void save(T entity)
          Saves the business entity onto the storage.
 void update(T entity)
          Updates the business entity on the storage.
 

Method Detail

commit

void commit()
            throws java.lang.Exception
Commits the recent changes on the storage.

Throws:
java.lang.Exception

rollback

void rollback()
              throws java.lang.Exception
Rolls back the recent changes on the storage.

Throws:
java.lang.Exception

save

void save(T entity)
          throws java.lang.Exception
Saves the business entity onto the storage.

Parameters:
entity - the business entity to be saved
Throws:
java.lang.Exception

update

void update(T entity)
            throws java.lang.Exception
Updates the business entity on the storage.

Parameters:
entity - the business entity to be updated
Throws:
java.lang.Exception

delete

void delete(T entity)
            throws java.lang.Exception
Deletes the business entity from the storage.

Parameters:
entity - the business entity to be deleted
Throws:
java.lang.Exception