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
IEDBDatabase
doVacuum
in interface IEDBDatabase
EDBException
public void testDB() throws java.lang.Exception
IEDBDatabase
testDB
in interface IEDBDatabase
java.lang.Exception
public void insert(java.lang.String type, java.lang.String id, java.lang.String content) throws EDBException
IEDBDatabase
insert
in interface IEDBDatabase
EDBException
public java.util.Vector getAllTypes() throws EDBException
IEDBDatabase
getAllTypes
in interface IEDBDatabase
EDBException
public java.util.Vector getAllValuesOfType(java.lang.String type) throws EDBException
IEDBDatabase
getAllValuesOfType
in interface IEDBDatabase
EDBException
public void removeType(java.lang.String type) throws EDBException
IEDBDatabase
removeType
in interface IEDBDatabase
EDBException
public void remove(java.lang.String type, java.lang.String key) throws EDBException
IEDBDatabase
remove
in interface IEDBDatabase
EDBException
Copyright © 2023. All rights reserved.