|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EVEDemo.MW.Main
The main class in the "middleware" layer.
Here, we initialize the object structure by loading all the views from
the VKB, the ISs from the MKB. Instantiating an object of the IS class
reads the appropriate information from the DB
The RMI-support has been discontinued.
Field Summary | |
private static int |
AliveCounter
The Flag which will be changed by the alived user. |
private boolean |
changed
has there been a change made? |
(package private) java.util.Vector |
DBManagers
a vector of DBManager objects to connect to physical databases |
static boolean |
DEBUG
Debug flag |
static double |
expTime
The Global variable to terminate the process. |
static int |
lcount
XIN: Please explain or remove count total local queries. |
(package private) DBManager |
localDBManager
a handle (type DBManager) for the local DB-Manager |
private MKB |
mainMKB
the MKB object |
private VKB |
mainVKB
the VKB object |
private VSA |
mainVSA
the VSA object |
(package private) java.util.Properties |
props
handle to eve.properties |
private QueryEngine |
queryEngine
a handle to the Query Engine |
static int |
rcount
XIN: Please explain or remove. count total remote queries. |
private java.util.Vector |
Views
the vector of View objects |
Constructor Summary | |
Main()
Constructed for create Main object in the Start class. |
Method Summary | |
boolean |
addAttribute(java.lang.String isName,
java.lang.String relName,
java.lang.String attName,
java.lang.String attType)
|
boolean |
addRelation(java.lang.String isName,
java.lang.String relName,
java.util.Vector attNames,
java.util.Vector attTypes)
Adds a relation by calling the appropriate method in the MKB |
void |
AliveMsg()
The current connect user will use this function to increase the counter. |
boolean |
changeAttributeName(java.lang.String isName,
java.lang.String relName,
java.lang.String attName,
java.lang.String newName)
Renames an attribute by calling the appropriate method in the MKB |
boolean |
changeRelationName(java.lang.String isName,
java.lang.String relName,
java.lang.String newName)
Renames a relation by calling the appropriate method in the MKB |
DBManager |
createDBManager(java.lang.String ISName,
java.lang.String sDBType,
java.lang.String sDBURL,
java.lang.String sUsername,
java.lang.String sPassword)
Constructed used by MKBParser. |
boolean |
deleteAttribute(java.lang.String isName,
java.lang.String relName,
java.lang.String attName)
Deletes an attribute by calling the appropriate method in the MKB. |
boolean |
deleteRelation(java.lang.String isName,
java.lang.String relName)
Deletes a relation by calling the appropriate method in the MKB |
java.util.Vector |
getAllViews()
return the collection of views. |
private java.util.Vector |
getAllViewsFromVKB()
Get all view names from the VKB and create View objects for each name. |
boolean |
getChangeStatus()
Returns if there has been a capability change and resets "changed" bit to false. |
java.lang.String |
getCorrectDefinitionx(java.lang.String theViewName)
An attempt at fixing some RMI problem. |
java.lang.String |
getCorrectOldDefinitionx(java.lang.String theViewName)
An attempt at fixing some RMI problem. |
DBManager |
getDBManagerFromISName(java.lang.String theIS)
searches for a DBManager from an IS name |
java.util.Vector |
getDBManagers()
this vector contains objects of class DBManager |
IS |
getISfromName(java.lang.String theIS)
searches for an IS object by name |
DBManager |
getLocalDBManager()
|
MKB |
getMKB()
returns a handle to the Main MKB |
com.sun.java.swing.ImageIcon |
getMyIcon(java.lang.String filename)
|
QueryEngine |
getQueryEngine()
|
Table |
getTable(java.lang.String isName,
java.lang.String SQL)
Get extent of a single relation as a Table object. |
Table |
getViewExtent(java.lang.String viewName,
boolean old_view_extent)
Get Extent of a specific view. |
VKB |
getVKB()
|
static void |
incLcount()
XIN: Please explain or remove increase the lcount |
static void |
incRcount()
XIN: Please explain or remove. increase the rcount |
boolean |
isISChangeRunning()
Returns if a user is currently able to make capability changes |
void |
reset()
Reset Middle Layer. |
void |
saveViews(Main something)
Save all Views |
void |
startUpdate()
this method is used to demonstrate incremental view maintenance and is currently not used. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final boolean DEBUG
public static int rcount
public static int lcount
private java.util.Vector Views
java.util.Vector DBManagers
DBManager localDBManager
private MKB mainMKB
private VKB mainVKB
private VSA mainVSA
private QueryEngine queryEngine
private boolean changed
java.util.Properties props
public static double expTime
private static int AliveCounter
Constructor Detail |
public Main()
Method Detail |
public static void incRcount()
public static void incLcount()
public MKB getMKB()
private java.util.Vector getAllViewsFromVKB()
public boolean deleteAttribute(java.lang.String isName, java.lang.String relName, java.lang.String attName)
isName
- name of the IS the attribute is inrelName
- name of the relation the attribute is inattName
- name of the attribute to deletepublic boolean addAttribute(java.lang.String isName, java.lang.String relName, java.lang.String attName, java.lang.String attType)
public boolean changeAttributeName(java.lang.String isName, java.lang.String relName, java.lang.String attName, java.lang.String newName)
isName
- name of the IS the attribute is inrelName
- name of the relation the attribute is inattName
- name of the attribute to renamenewName
- new name of the attributepublic boolean addRelation(java.lang.String isName, java.lang.String relName, java.util.Vector attNames, java.util.Vector attTypes)
isName
- name of the IS the relation is inrelName
- name of the relation to addattNames
- names of the attribute to add to relNameattTypes
- types of the attributespublic boolean deleteRelation(java.lang.String isName, java.lang.String relName)
isName
- name of the IS the relation is inrelName
- name of the relation to deletepublic boolean changeRelationName(java.lang.String isName, java.lang.String relName, java.lang.String newName)
isName
- name of the IS the relation is inrelName
- name of the relation to renamenewName
- new name of the relationpublic IS getISfromName(java.lang.String theIS)
public boolean getChangeStatus()
public boolean isISChangeRunning()
public void reset()
public void AliveMsg()
public java.lang.String getCorrectDefinitionx(java.lang.String theViewName)
public java.lang.String getCorrectOldDefinitionx(java.lang.String theViewName)
public java.util.Vector getAllViews()
koeller 030799: Added support for the QC-Module. This is a
new function aimed at selecting one of several view version
suggested by the QC-Module. The vector Views contains
views like before, but here the new "Versions" attribute (a
vector of objects of class "version") is initialized.
public void saveViews(Main something)
public Table getViewExtent(java.lang.String viewName, boolean old_view_extent)
viewName
- Name of the View.public Table getTable(java.lang.String isName, java.lang.String SQL)
isName,
- SQL-querypublic void startUpdate()
public com.sun.java.swing.ImageIcon getMyIcon(java.lang.String filename)
public DBManager createDBManager(java.lang.String ISName, java.lang.String sDBType, java.lang.String sDBURL, java.lang.String sUsername, java.lang.String sPassword)
public DBManager getDBManagerFromISName(java.lang.String theIS)
public java.util.Vector getDBManagers()
public DBManager getLocalDBManager()
public VKB getVKB()
public QueryEngine getQueryEngine()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |