All Packages Class Hierarchy This Package Previous Next Index
Class DSRG.MW.DBMOracle
java.lang.Object
|
+----DSRG.MW.DBManager
|
+----DSRG.MW.DBMOracle
- public class DBMOracle
- extends DBManager
- implements Serializable
-
date_datatype
-
-
numeric_datatype
-
Oracle specific data types.
-
DBMOracle()
- Constructor.
-
DBMOracle(String, String, String, String)
- Constructor that takes input for the user and passwd...
-
addAttribute(String, String, String, int)
- addAttribute.
-
addRelation(String, Vector, Vector)
- /**
addRelation.
-
deleteAttribute(String, String)
- deleteAttribute.
-
deleteRelation(String, boolean)
- deleteRelation.
-
getSchema(String)
- Helper function.
-
renameAttribute(String, String, String)
- renameAttribute.
-
renameRelation(String, String)
-
renameRelation
2/4/98 koeller
-
resetDB(String)
-
Reset the Oracle database.
-
storeRelation(Table)
-
stores a Table object in a database.
numeric_datatype
private final String numeric_datatype
- Oracle specific data types.
date_datatype
private final String date_datatype
DBMOracle
public DBMOracle()
- Constructor.
DBMOracle
public DBMOracle(String myISName,
String usr,
String pswd,
String URL)
- Constructor that takes input for the user and passwd... rather than
using the dflt eve, eve;
addRelation
public boolean addRelation(String relName,
Vector attNames,
Vector attTypes)
- /**
addRelation.
creates only the schema, does not insert data
or anything
The types have to be like "VARCHAR2(.."
otherwise they're overwritten by "VARCHAR2(31)
10/9/97 koeller
- Overrides:
- addRelation in class DBManager
deleteRelation
public boolean deleteRelation(String name,
boolean silent)
- deleteRelation.
- Parameters:
- name - the name of the relation to be deleted
- silent - a flag that shows if the error message for deleting
a non-existent relation should be suppressed.
- Overrides:
- deleteRelation in class DBManager
renameAttribute
public boolean renameAttribute(String RelationName,
String oldName,
String newName)
- renameAttribute.
10/6/97 koeller
- Overrides:
- renameAttribute in class DBManager
addAttribute
public boolean addAttribute(String RelationName,
String AttributeName,
String type,
int size)
- addAttribute.
Extents are being ignored, not needed/possible for the demo
10/6/97 koeller
- Overrides:
- addAttribute in class DBManager
deleteAttribute
public boolean deleteAttribute(String RelationName,
String attributeName)
- deleteAttribute.
This overwrites any table in the database that is called "tmp31415926".
10/6/97 koeller
- Overrides:
- deleteAttribute in class DBManager
renameRelation
public boolean renameRelation(String oldName,
String newName)
- renameRelation
2/4/98 koeller
- Overrides:
- renameRelation in class DBManager
storeRelation
public boolean storeRelation(Table table)
- stores a Table object in a database.
Creates a schema and stores data in there.
Uses the relation's name and attribute names and lengths
everything is created as "VARCHAR2" !!
This is for view recomputation and should only be used on LocalIS
- Overrides:
- storeRelation in class DBManager
getSchema
private String getSchema(String relationName)
- Helper function.
This will read the Schema of a given table in the IS, concatenating it to
a string of the form
([columnname type,] columnname type)
resetDB
public void resetDB(String filename)
- Reset the Oracle database. this is a hack for the EVE-Demo. It
runs a SQL-script whose name is defined in the eve.properties.
All Packages Class Hierarchy This Package Previous Next Index