public class DBModelFetcher
extends java.lang.Object
| Constructor and Description |
|---|
DBModelFetcher() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.ArrayList<XMLDBModel> |
load(java.util.ArrayList<XMLDBModel> modelList)
Given an ArrayList of XMLDBModel objects that are not populated with
MoML strings, query the database to obtain the MoML and then return
the revised ArrayList.
|
static XMLDBModel |
load(java.lang.String name)
Given a model name representing the model to load, return
an XMLDBModel object that contains the MoML.
|
static XMLDBModel |
loadUsingId(java.lang.String id)
Given a model id representing the model to load, return
an XMLDBModel object that contains the MoML.
|
public static XMLDBModel loadUsingId(java.lang.String id) throws DBConnectionException, DBExecutionException
id - The id of the model to be loaded.DBConnectionException - Thrown if there a problem with the database connection.DBExecutionException - Thrown if there is a problem executing the database task.public static XMLDBModel load(java.lang.String name) throws DBConnectionException, DBExecutionException
name - The name of the model to be loaded.DBConnectionException - Thrown if there a problem with the database connection.DBExecutionException - Thrown if there is a problem executing the database task.public static java.util.ArrayList<XMLDBModel> load(java.util.ArrayList<XMLDBModel> modelList) throws DBConnectionException, DBExecutionException
modelList - An ArrayList of XMLDBModel objects
without associated MoML strings.DBConnectionException - Thrown if there a problem with the database connection.DBExecutionException - Thrown if there is a problem executing the database task.