blackboard.persist
Interface IdentifiableDbPersister<T extends Identifiable>

All Superinterfaces:
Persister
All Known Subinterfaces:
CourseCourseDbPersister

public interface IdentifiableDbPersister<T extends Identifiable>
extends Persister

Generically defines common persistence methods for Identifiable objects. This (paired with the abstract implementation) simplifies the implementation of persisters.

Since:
7.2
Version:
$Revision: #1 $ $Date: 2007/06/27 $

Method Summary
 void deleteById(Id id)
          Generically delete any Identifiable object by Id.
 void deleteById(Id id, java.sql.Connection conn)
          Generically delete any Identifiable object by Id.
 void persist(T t)
          Generically persist any identifiable object
 void persist(T t, java.sql.Connection conn)
          Generically persist any identifiable object
 
Methods inherited from interface blackboard.persist.Persister
getAppVersion, init
 

Method Detail

persist

void persist(T t)
             throws ValidationException,
                    PersistenceException
Generically persist any identifiable object

Parameters:
t - Identifiable object
Throws:
ValidationException
PersistenceException

persist

void persist(T t,
             java.sql.Connection conn)
             throws ValidationException,
                    PersistenceException
Generically persist any identifiable object

Parameters:
t - Identifiable object
Throws:
ValidationException
PersistenceException

deleteById

void deleteById(Id id)
                throws PersistenceException
Generically delete any Identifiable object by Id.

Parameters:
id - The id of the persistent object
Throws:
PersistenceException

deleteById

void deleteById(Id id,
                java.sql.Connection conn)
                throws PersistenceException
Generically delete any Identifiable object by Id.

Parameters:
id - The id of the persistent object
Throws:
PersistenceException


Copyright © 2003 Blackboard, Inc. All Rights Reserved.