|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.iiit.access.server.util.db.PropertyTable
Every database controlled by the cache manager will contain a property table. These table can be used like property files, they contain records with pairs of key and values. Until now they will be used only to store the number of the next cache table to create.
Method Summary | |
static boolean |
createPropertyTable(JdbcConnectionPool pool)
Creates a new property table |
static void |
insertProperty(JdbcConnectionPool pool,
String property,
String value)
Inserts a new record into the property table |
static boolean |
searchProperty(JdbcConnectionPool pool,
String property)
Test whether a property with a given name is there |
static String |
selectProperty(JdbcConnectionPool pool,
String property)
Retrieves one property record |
static String |
selectProperty(JdbcConnectionPool pool,
String property,
String defaultValue)
Retrieves one property record |
static void |
updateProperty(JdbcConnectionPool pool,
String property,
String value)
Updates a record in the property table |
static void |
writeProperty(JdbcConnectionPool pool,
String property,
String value)
Writes a record into the property table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean createPropertyTable(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic static String selectProperty(JdbcConnectionPool pool, String property) throws JdbcException
pool
- The database handle to useproperty
- The name of the property to search for
JdbcException
- if a JDBC error occurspublic static String selectProperty(JdbcConnectionPool pool, String property, String defaultValue) throws JdbcException
pool
- The database handle to useproperty
- The name of the property to search fordefaultValue
- a default value.
JdbcException
- if a JDBC error occurspublic static boolean searchProperty(JdbcConnectionPool pool, String property) throws JdbcException
pool
- The database handle to useproperty
- The name of the property to search for
JdbcException
- if a JDBC error occurspublic static void insertProperty(JdbcConnectionPool pool, String property, String value) throws JdbcException
pool
- The database handle to useproperty
- The name of the propertyvalue
- The value of the property
JdbcException
- if a JDBC error occurspublic static void updateProperty(JdbcConnectionPool pool, String property, String value) throws JdbcException
pool
- The database handle to useproperty
- The name of the propertyvalue
- The value of the property
JdbcException
- if a JDBC error occurspublic static void writeProperty(JdbcConnectionPool pool, String property, String value) throws JdbcException
pool
- The database handle to useproperty
- The name of the propertyvalue
- The value of the property
JdbcException
- if a JDBC error occurs
|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |