public class EDBDatabaseJDBC extends java.lang.Object implements IEDBDatabase
| Constructor and Description |
|---|
EDBDatabaseJDBC(EDBConfigurationJDBC dbConf) |
| Modifier and Type | Method and Description |
|---|---|
void |
doVacuum()
Makes some database cleanups to save space
|
java.util.Vector |
getAllTypes()
Returns all types stored in this database
|
java.util.Vector |
getAllValuesOfType(java.lang.String type)
Returns all values of a given type stored in this database
|
void |
insert(java.lang.String type,
java.lang.String id,
java.lang.String content)
Inserts some value of a given type with a given key into the database
|
void |
remove(java.lang.String type,
java.lang.String key)
Removes a value with a given type and key form this database
|
void |
removeType(java.lang.String type)
Removes a type from this database, i.e. all values of the given type and the type itself will be deleted
|
void |
testDB()
Does a basic test, if this DB would work.
|
public EDBDatabaseJDBC(EDBConfigurationJDBC dbConf)
public void doVacuum()
throws EDBException
IEDBDatabasedoVacuum in interface IEDBDatabaseEDBExceptionpublic void testDB()
throws java.lang.Exception
IEDBDatabasetestDB in interface IEDBDatabasejava.lang.Exceptionpublic void insert(java.lang.String type,
java.lang.String id,
java.lang.String content)
throws EDBException
IEDBDatabaseinsert in interface IEDBDatabaseEDBExceptionpublic java.util.Vector getAllTypes()
throws EDBException
IEDBDatabasegetAllTypes in interface IEDBDatabaseEDBExceptionpublic java.util.Vector getAllValuesOfType(java.lang.String type)
throws EDBException
IEDBDatabasegetAllValuesOfType in interface IEDBDatabaseEDBExceptionpublic void removeType(java.lang.String type)
throws EDBException
IEDBDatabaseremoveType in interface IEDBDatabaseEDBExceptionpublic void remove(java.lang.String type,
java.lang.String key)
throws EDBException
IEDBDatabaseremove in interface IEDBDatabaseEDBExceptionCopyright © 2023. All rights reserved.