|
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.cachedb.CacheTable
A cache table holds the complete result set of the expression or group it belongs to. Later on, when we want to know whether someone is member of the group described described by the expression, we are only interested in fact whether there is a record with the name of the user or not. We will never need the record itself.
Method Summary | |
static void |
createCacheTable(JdbcConnectionPool pool,
String name)
Creates a new empty cache table |
static void |
dropCacheTable(JdbcConnectionPool pool,
String name)
Drops a cache table which is no longer needed. |
static void |
dropLostTables(JdbcConnectionPool pool)
Searches for cache tables not contained in the index table. |
static void |
insertCacheTable(JdbcConnectionPool pool,
String name,
Set set,
boolean toLower)
Inserts a list of names into an already existing cache table. |
static boolean |
searchCacheTable(JdbcConnectionPool pool,
String name,
String user)
Searches a cache table for the name of an user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void createCacheTable(JdbcConnectionPool pool, String name) throws JdbcException
pool
- The database handle to usename
- The name of the table to create.
JdbcException
- if a JDBC error occurspublic static void dropCacheTable(JdbcConnectionPool pool, String name) throws JdbcException
pool
- The database handle to usename
- The name of the table to drop.
JdbcException
- if a JDBC error occurspublic static void insertCacheTable(JdbcConnectionPool pool, String name, Set set, boolean toLower) throws JdbcException
pool
- The database handle to usename
- The name of the table to fillset
- the names to insert into the tabletoLower
- forces all data to be converted to lower case if its value is true
JdbcException
- if a JDBC error occurspublic static boolean searchCacheTable(JdbcConnectionPool pool, String name, String user) throws JdbcException
pool
- The database handle to usename
- The name of the table to search inuser
- The name of the user to search for
JdbcException
- if a JDBC error occurspublic static void dropLostTables(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
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 |