blackboard.cms.metadata
Class MetadataTemplateManager

java.lang.Object
  extended byblackboard.cms.metadata.MetadataTemplateManager

public class MetadataTemplateManager
extends java.lang.Object

The MetadataTemplateManager class provides a representation of a MetadataTemplateManager within the Blackboard application. This object provides load, save and delete methods for managing a single or multiple MetadataTemplate items.

Since:
Bb CS 1.0
Version:
$Revision: $

Constructor Summary
MetadataTemplateManager()
           
 
Method Summary
static void deleteById(blackboard.persist.Id id)
          Deletes the MetadataTemplate identified by the Id using default connection.
static void deleteById(blackboard.persist.Id id, java.sql.Connection con)
          Deletes the MetadataTemplate identified by the Id using the supplied connection.
static void deleteByKey(java.lang.String key)
          Deletes the MetadataTemplate identified by the given string key using default connection.
static void deleteByKey(java.lang.String key, java.sql.Connection con)
          Deletes the MetadataTemplate identified by the given string key using supplied connection.
static java.util.List loadAll()
          Loads all the MetadataTemplate items using the default connection.
static java.util.List loadAll(java.sql.Connection con)
          Loads all the MetadataTemplate items using the supplied connection.
static MetadataTemplate loadById(blackboard.persist.Id id)
          Loads a MetadataTemplate identified by the given Id using the default connection.
static MetadataTemplate loadById(blackboard.persist.Id id, java.sql.Connection con)
          Loads a MetadataTemplate identified by the given Id using the supplied connection.
static MetadataTemplate loadByKey(java.lang.String key)
          Loads a MetadataTemplate identified by the given the key using the default connection.
static MetadataTemplate loadByKey(java.lang.String key, java.sql.Connection con)
          Loads a MetadataTemplate identified by the given the key using the supplied connection.
static void save(MetadataTemplate metadata)
          Inserts or updates the MetadataTemplate using the default connection.
static void save(MetadataTemplate metadata, java.sql.Connection con)
          Inserts or updates the MetadataTemplate using the supplied connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataTemplateManager

public MetadataTemplateManager()
Method Detail

save

public static void save(MetadataTemplate metadata,
                        java.sql.Connection con)
                 throws blackboard.persist.PersistenceException
Inserts or updates the MetadataTemplate using the supplied connection.

Parameters:
metadata - a MetadataTemplate to be saved.
con - a Connection to be used to save this MetadataTemplate.
Throws:
blackboard.persist.PersistenceException

save

public static void save(MetadataTemplate metadata)
                 throws blackboard.persist.PersistenceException
Inserts or updates the MetadataTemplate using the default connection.

Parameters:
metadata - a MetadataTemplate to be saved.
Throws:
blackboard.persist.PersistenceException

deleteById

public static void deleteById(blackboard.persist.Id id)
                       throws blackboard.persist.PersistenceException
Deletes the MetadataTemplate identified by the Id using default connection.

Parameters:
id - the Id of the MetadataTemplate to be deleted using default connection.
Throws:
blackboard.persist.PersistenceException

deleteById

public static void deleteById(blackboard.persist.Id id,
                              java.sql.Connection con)
                       throws blackboard.persist.PersistenceException
Deletes the MetadataTemplate identified by the Id using the supplied connection.

Parameters:
id - the Id of the MetadataTemplate to be deleted using the supplied connection.
con - a Connection to be used.
Throws:
blackboard.persist.PersistenceException

deleteByKey

public static void deleteByKey(java.lang.String key)
                        throws blackboard.persist.PersistenceException
Deletes the MetadataTemplate identified by the given string key using default connection.

Parameters:
key - the String of the MetadataTemplate to be deleted using default connection.
Throws:
blackboard.persist.PersistenceException

deleteByKey

public static void deleteByKey(java.lang.String key,
                               java.sql.Connection con)
                        throws blackboard.persist.PersistenceException
Deletes the MetadataTemplate identified by the given string key using supplied connection.

Parameters:
key - the String of the MetadataTemplate to be deleted using supplied connection.
con - a Connection to be used.
Throws:
blackboard.persist.PersistenceException

loadById

public static MetadataTemplate loadById(blackboard.persist.Id id,
                                        java.sql.Connection con)
                                 throws blackboard.persist.PersistenceException
Loads a MetadataTemplate identified by the given Id using the supplied connection.

Parameters:
id - the Id of the MetadataTemplate to be loaded using the supplied connection.
con - a Connection to be used.
Returns:
a MetadataTemplate that is identified by the given Id. Returns null (instead of KeyNotFoundException) if the MetadataTemplate is not found.
Throws:
blackboard.persist.PersistenceException

loadById

public static MetadataTemplate loadById(blackboard.persist.Id id)
                                 throws blackboard.persist.PersistenceException
Loads a MetadataTemplate identified by the given Id using the default connection.

Parameters:
id - the Id of the MetadataTemplate to be loaded using the default connection.
Returns:
a MetadataTemplate that is identified by the given Id. Returns null (instead of KeyNotFoundException) if the MetadataTemplate is not found.
Throws:
blackboard.persist.PersistenceException

loadByKey

public static MetadataTemplate loadByKey(java.lang.String key,
                                         java.sql.Connection con)
                                  throws blackboard.persist.PersistenceException
Loads a MetadataTemplate identified by the given the key using the supplied connection.

Parameters:
key - the String of the MetadataTemplate to be loaded using the supplied connection.
con - a Connection to be used.
Returns:
a MetadataTemplate that is identified by the given String. Returns null (instead of KeyNotFoundException) if the MetadataTemplate is not found.
Throws:
blackboard.persist.PersistenceException

loadByKey

public static MetadataTemplate loadByKey(java.lang.String key)
                                  throws blackboard.persist.PersistenceException
Loads a MetadataTemplate identified by the given the key using the default connection.

Parameters:
key - the String of the MetadataTemplate to be loaded using the default connection.
Returns:
a MetadataTemplate that is identified by the given String. Returns null (instead of KeyNotFoundException) if the MetadataTemplate is not found.
Throws:
blackboard.persist.PersistenceException

loadAll

public static java.util.List loadAll(java.sql.Connection con)
                              throws blackboard.persist.PersistenceException
Loads all the MetadataTemplate items using the supplied connection.

Parameters:
con - a Connection to be used.
Returns:
a List of all MetadataTemplate items in the system.
Throws:
blackboard.persist.PersistenceException

loadAll

public static java.util.List loadAll()
                              throws blackboard.persist.PersistenceException
Loads all the MetadataTemplate items using the default connection.

Returns:
a List of all MetadataTemplate items in the system.
Throws:
blackboard.persist.PersistenceException


Copyright © 2003-2004 Blackboard, Inc. All Rights Reserved.