blackboard.persist.role
Interface PortalRoleDbPersister


public interface PortalRoleDbPersister


Nested Class Summary
static class PortalRoleDbPersister.Default
          A utility class that provides quick access to the PortalRoleDbPersister instance associated with the default instance of the database BbPersistenceManager.
 
Field Summary
static java.lang.String TYPE
           
 
Method Summary
 void deleteById(Id id)
          Deletes the PortalRole 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 PortalRole identified by the given Id value using the supplied connection.
 void persist(PortalRole role)
          Inserts or updates the supplied PortalRole using a connection from the associated persistence manager's database container.
 void persist(PortalRole role, java.sql.Connection con)
          Inserts or updates the supplied PortalRole using the supplied connection.
 

Field Detail

TYPE

static final java.lang.String TYPE
See Also:
Constant Field Values
Method Detail

persist

void persist(PortalRole role)
             throws ValidationException,
                    PersistenceException
Inserts or updates the supplied PortalRole 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.

Throws:
ValidationException - if the object is not in a consistent state to be persisted.
PersistenceException - if some other exception happens while persisting the object.

persist

void persist(PortalRole role,
             java.sql.Connection con)
             throws ValidationException,
                    PersistenceException
Inserts or updates the supplied PortalRole 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.

Throws:
ValidationException - if the object is not in a consistent state to be persisted.
PersistenceException - if some other exception happens while persisting the object.

deleteById

void deleteById(Id id)
                throws KeyNotFoundException,
                       PersistenceException
Deletes the PortalRole identified by the given Id value using a connection from the associated persistence manager's database container.

Throws:
KeyNotFoundException - if an object with the given Id value can not be found
PersistenceException - if some other exception happens during the delete operation

deleteById

void deleteById(Id id,
                java.sql.Connection con)
                throws KeyNotFoundException,
                       PersistenceException
Deletes the PortalRole identified by the given Id value using the supplied connection.

Throws:
KeyNotFoundException - if an object with the given Id value can not be found
PersistenceException - if some other exception happens during the delete operation


Copyright © 2003 Blackboard, Inc. All Rights Reserved.