|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CartridgeDbLoader
This interface describes the set of methods that all database loaders for
Cartridge
objects must implement.
Loading methods are named according to the criteria used for loading and the
type of load that is performed.
Nested Class Summary | |
---|---|
static class |
CartridgeDbLoader.Default
A utility class that provides quick access to the CartridgeDbLoader
instance associated with the default instance of the database BbPersistenceManager . |
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 | |
---|---|
Cartridge |
loadById(Id id)
Load the Cartridge with the given Id from the database using a connection obtained through this object's database context. |
Cartridge |
loadById(Id id,
java.sql.Connection con)
Load the Cartridge with the given Id from the database using the supplied connection. |
Cartridge |
loadByIdentifierAndPublisherName(java.lang.String strIdentifier,
java.lang.String strPublisherName)
Load the Cartridge with the given identifier (string-based id) and publisher name from the database using a connection obtained through this object's database context. |
Cartridge |
loadByIdentifierAndPublisherName(java.lang.String strIdentifier,
java.lang.String strPublisherName,
java.sql.Connection con)
Load the Cartridge with the given identifier (string-based id) and publisher name from the database using the supplied connection. |
Methods inherited from interface blackboard.persist.Loader |
---|
getAppVersion, init |
Field Detail |
---|
static final java.lang.String TYPE
BbPersistenceManager.getLoader(String)
Method Detail |
---|
Cartridge loadById(Id id) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Cartridge
that should be loaded
KeyNotFoundException
- if there is no Cartridge in the database with
the given id
PersistenceException
- if some other error occurs while loading
the objectCartridge loadById(Id id, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
id
- the Id
of the Cartridge
that should be loadedcon
- the Connection
to use to perform the load. Can be null.
KeyNotFoundException
- if there is no Cartridge in the database with
the given id
PersistenceException
- if some other error occurs while loading
the objectCartridge loadByIdentifierAndPublisherName(java.lang.String strIdentifier, java.lang.String strPublisherName) throws KeyNotFoundException, PersistenceException
strIdentifier
- the string-based id of the Cartridge
that should
be loadedstrPublisherName
- the name of the publisher whose created the cartridge
KeyNotFoundException
- if there is no Cartridge in the database with
the given identifier and publisher name
PersistenceException
- if some other error occurs while loading
the objectCartridge loadByIdentifierAndPublisherName(java.lang.String strIdentifier, java.lang.String strPublisherName, java.sql.Connection con) throws KeyNotFoundException, PersistenceException
strIdentifier
- the string-based id of the Cartridge
that should
be loadedstrPublisherName
- the name of the publisher whose created the cartridge
KeyNotFoundException
- if there is no Cartridge in the database with
the given identifier and publisher name
PersistenceException
- if some other error occurs while loading
the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |