|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.agena.minerva.model.querymodel.ClassQueryModel
public class ClassQueryModel
The root class of the Class/query model. It maintains the list of data sources, class to query attachments, and master queries.
Field Summary | |
---|---|
static ClassQueryModel |
classQueryModel
|
Constructor Summary | |
---|---|
ClassQueryModel(uk.co.agena.minervaapps.basicminerva.MinervaMainFrame mmf)
Constructor. |
Method Summary | |
---|---|
void |
closeDatabaseConnections()
Closes all database connections. |
QueryInstance |
findMasterQuery(java.lang.String queryName)
Finds a named query instance in the master query list. |
QueryInstance |
findMasterUpdate(java.lang.String queryName)
|
java.util.Vector |
getDataSources()
|
java.util.Vector |
getMasterQueries()
|
java.util.Vector |
getMasterUpdates()
|
StructureElement |
getStructureRoot()
|
Substitution |
getSubstitution(java.lang.String name)
|
void |
loadModel(Model model,
java.lang.String filename)
A base model is used as a template to define a hierarchy of types and the BNs used to instantiate those types. |
void |
loadUsingModel(Model model,
java.lang.String filename)
|
void |
runStructureQueries()
|
void |
setDataSources(java.util.Vector dataSources)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ClassQueryModel classQueryModel
Constructor Detail |
---|
public ClassQueryModel(uk.co.agena.minervaapps.basicminerva.MinervaMainFrame mmf)
Method Detail |
---|
public Substitution getSubstitution(java.lang.String name) throws QueryException
QueryException
public QueryInstance findMasterQuery(java.lang.String queryName)
queryName
-
public QueryInstance findMasterUpdate(java.lang.String queryName)
public void loadModel(Model model, java.lang.String filename) throws QueryException
An XML file is then used to specify database queries which can be used to create specific instances of each type and to populate nodes with data.
model
- The base model being loaded.filename
- XML file defining queries to create instance of model.
java.lang.Exception
java.io.IOException
QueryException
public void loadUsingModel(Model model, java.lang.String filename) throws QueryException
QueryException
public void closeDatabaseConnections()
public void runStructureQueries() throws QueryException
QueryException
public java.util.Vector getDataSources()
public void setDataSources(java.util.Vector dataSources)
public java.util.Vector getMasterQueries()
public java.util.Vector getMasterUpdates()
public StructureElement getStructureRoot()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |