blackboard.persist.content
Interface EntityContentFileDbLoader

All Superinterfaces:
Loader

public interface EntityContentFileDbLoader
extends Loader

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

Nested Class Summary
static class EntityContentFileDbLoader.Default
          A utility class that provides quick access to the ContentFileDbLoader 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
 java.util.List<EntityContentFile> loadByEntityId(Id folderId)
           
 java.util.List<EntityContentFile> loadByEntityId(Id folderId, java.sql.Connection con)
           
 EntityContentFile loadById(Id id)
          Load the ContentFile with the given Id from the database in a lightweight fashion using a connection obtained through this object's database context.
 EntityContentFile loadById(Id id, java.sql.Connection con)
          Load the ContentFile with the given Id from the database in a lightweight fashion using the supplied connection.
 
Methods inherited from interface blackboard.persist.Loader
getAppVersion, init
 

Field Detail

TYPE

static final java.lang.String TYPE
Type used to obtain an instance of the class configured to provide the implementation for this interface. Used when making a call to BbPersistenceManager.getLoader(String).

See Also:
Constant Field Values
Method Detail

loadById

EntityContentFile loadById(Id id)
                           throws KeyNotFoundException,
                                  PersistenceException
Load the ContentFile with the given Id from the database in a lightweight fashion using a connection obtained through this object's database context.

Parameters:
id - the Id of the EntityContentFile that should be loaded
Throws:
KeyNotFoundException - if there is no ContentFile in the database with the given id
PersistenceException - if some other error occurs while loading the object

loadById

EntityContentFile loadById(Id id,
                           java.sql.Connection con)
                           throws KeyNotFoundException,
                                  PersistenceException
Load the ContentFile with the given Id from the database in a lightweight fashion using the supplied connection.

Parameters:
id - the Id of the EntityContentFile that should be loaded
con - the Connection to use to perform the load. Can be null.
Throws:
KeyNotFoundException - if there is no ContentFile in the database with the given id
PersistenceException - if some other error occurs while loading the object

loadByEntityId

java.util.List<EntityContentFile> loadByEntityId(Id folderId)
                                                 throws KeyNotFoundException,
                                                        PersistenceException
Parameters:
folderId -
Returns:
Throws:
KeyNotFoundException
PersistenceException

loadByEntityId

java.util.List<EntityContentFile> loadByEntityId(Id folderId,
                                                 java.sql.Connection con)
                                                 throws KeyNotFoundException,
                                                        PersistenceException
Parameters:
folderId -
con -
Returns:
Throws:
KeyNotFoundException
PersistenceException


Copyright © 2003 Blackboard, Inc. All Rights Reserved.