|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ForumDbPersister
This interface describes the set of methods that all database persisters for
Forum objects must implement.
A database persister allows an object to be stored (either inserted or updated)
within the database or to be deleted from the database. Persisting methods
are named according to the type of persistence that is performed.
| Nested Class Summary | |
|---|---|
static class |
ForumDbPersister.Default
|
| Field Summary | |
|---|---|
static java.lang.String |
TYPE
Type used to obtain an instance of the class configured to provide the implementation for this interface. |
| Method Summary | |
|---|---|
void |
deleteByConferenceId(Id confId)
Deletes the Forums in the Conference with the
given Id value using a connection from the associated
persistence manager's database container. |
void |
deleteByConferenceId(Id confId,
java.sql.Connection con)
Deletes the Forums in the Conference with the
given Id value using the supplied connection. |
void |
deleteById(Id id)
Deletes the Forum identified by the given Id
value using a connection from the associated persistence manager's
database container. |
void |
deleteById(Id id,
java.sql.Connection con)
Deletes the Forum identified by the given Id
value using the supplied connection. |
void |
persist(Forum forum)
Inserts or updates the supplied Forum using a connection from
the associated persistence manager's database container. |
void |
persist(Forum forum,
java.sql.Connection con)
Inserts or updates the supplied Forum using the supplied
connection. |
void |
reposition(Id forumId,
int newPosition)
A utility class that provides quick access to the ForumDbPersister
instance associated with the default instance of the database BbPersistenceManager. |
void |
reposition(Id fourmId,
int newPosition,
java.sql.Connection con)
A utility class that provides quick access to the ForumDbPersister
instance from the database using the supplied connection. |
| Methods inherited from interface blackboard.persist.Persister |
|---|
getAppVersion, init |
| Field Detail |
|---|
static final java.lang.String TYPE
BbPersistenceManager.getPersister(String)
| Method Detail |
|---|
void persist(Forum forum)
throws ValidationException,
PersistenceException
Forum using a connection from
the associated persistence manager's database container. If the object's
id is set and is associated with the same container, then an update is done,
otherwise a new object is inserted.
ValidationException - if the object is not in a consistent state
to be persisted.
PersistenceException - if some other exception happens while
persisting the object.
void persist(Forum forum,
java.sql.Connection con)
throws ValidationException,
PersistenceException
Forum using the supplied
connection. The connection must be to the same database as is used by the
associated persistence manager. If the object's id is set and is associated
with this persistence manager's same container, then an update is done,
otherwise a new object is inserted.
ValidationException - if the object is not in a consistent state
to be persisted.
PersistenceException - if some other exception happens while
persisting the object.
void deleteById(Id id)
throws KeyNotFoundException,
PersistenceException
Forum identified by the given Id
value using a connection from the associated persistence manager's
database container.
KeyNotFoundException - if an object with the given Id
value can not be found
PersistenceException - if some other exception happens during the
delete operation
void deleteById(Id id,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
Forum identified by the given Id
value using the supplied connection.
KeyNotFoundException - if an object with the given Id
value can not be found
PersistenceException - if some other exception happens during the
delete operation
void deleteByConferenceId(Id confId)
throws KeyNotFoundException,
PersistenceException
Forums in the Conference with the
given Id value using a connection from the associated
persistence manager's database container.
KeyNotFoundException - if an object with the given Id
value can not be found
PersistenceException - if some other exception happens during the
delete operation
void deleteByConferenceId(Id confId,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
Forums in the Conference with the
given Id value using the supplied connection.
KeyNotFoundException - if an object with the given Id
value can not be found
PersistenceException - if some other exception happens during the
delete operation
void reposition(Id forumId,
int newPosition)
throws KeyNotFoundException,
PersistenceException
ForumDbPersister
instance associated with the default instance of the database BbPersistenceManager.
Loader and/or Persister instances
within some scope, it will likely be more efficient to retrieve the default
database persistence manager directly, and then retrieve loader/persister
instances from it instead of making several calls to this and/or other
loader/persister utility classes.
KeyNotFoundException
PersistenceException
void reposition(Id fourmId,
int newPosition,
java.sql.Connection con)
throws KeyNotFoundException,
PersistenceException
ForumDbPersister
instance from the database using the supplied connection.
Loader and/or Persister instances
within some scope, it will likely be more efficient to retrieve the default
database persistence manager directly, and then retrieve loader/persister
instances from it instead of making several calls to this and/or other
loader/persister utility classes.
KeyNotFoundException
PersistenceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||