|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScoreDbPersister
The ScoreDbPersister
interface provides a standard set of methods
used to store Score
objects into the
Blackboard database schema.
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 |
deleteById(Id id)
Deletes the Score 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 Score identified by the given Id
value using the supplied connection. |
void |
persist(BbList scores)
Inserts or updates the supplied ScoreList , Score
by Score , using a connection from the associated persistence
manager's database container. |
void |
persist(BbList scores,
java.sql.Connection con)
Inserts or updates the supplied ScoreList , Score
by Score , using the supplied connection. |
void |
persist(Score score)
Inserts or updates the supplied Score using a connection
from the associated persistence manager's database container. |
void |
persist(Score score,
java.sql.Connection con)
Inserts or updates the supplied Score 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(Score score) throws ValidationException, PersistenceException
Score
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.
score
- the Score
to be persisted
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(Score score, java.sql.Connection con) throws ValidationException, PersistenceException
Score
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.
score
- the Score
to be persistedcon
- a connection supplied by the caller's database context
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(BbList scores) throws ValidationException, PersistenceException
ScoreList
, Score
by Score
, using a connection from the associated persistence
manager's database container. If an object's Id is set and is associated
with the same container, then an update is done, otherwise a new object is
inserted.
scores
- the ScoreList
to be persistedcon
- a connection supplied by the caller's database context
ValidationException
- if any of the objects is not in a consistent
state to be persisted.
PersistenceException
- if some other exception happens while
persisting the objects.void persist(BbList scores, java.sql.Connection con) throws ValidationException, PersistenceException
ScoreList
, Score
by Score
, using the supplied connection. The connection must
be to the same database as is used by the associated persistence manager.
If an object's Id is set and is associated with the same container, then an
update is done, otherwise a new object is inserted.
scores
- the ScoreList
to be persisted
ValidationException
- if any of the objects is not in a consistent
state to be persisted.
PersistenceException
- if some other exception happens while
persisting the objects.void deleteById(Id id) throws KeyNotFoundException, PersistenceException
Score
identified by the given Id
value using a connection from the associated persistence manager's database
container.
id
- the Id
of the Score
to be deleted
KeyNotFoundException
- if an object with the given Id
value can not be found
PersistenceException
- if some other exception happens during the
delete operationvoid deleteById(Id id, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
Score
identified by the given Id
value using the supplied connection.
id
- the Id
of the Score
to be deletedcon
- a connection supplied by the caller's database context
KeyNotFoundException
- if an object with the given Id
value can not be found
PersistenceException
- if some other exception happens during the
delete operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |