|
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.IndexTable
For every expression or group found in the LDAP database there will be exactly on table in the cache database. The cache tables are numbered consecutively when they are created. The index table holds the relation between the name of the expression or group - represented by its MD5 checksum - and the table containig the data.
Constructor Summary | |
IndexTable(String exprKey,
String tableName,
long creationTime)
Creates a new instance of IndexTable |
Method Summary | |
static boolean |
createIndexTable(JdbcConnectionPool pool)
Creates a new database table todolist. |
void |
deleteIndex(JdbcConnectionPool pool)
Deletes the current object from the database. |
long |
getCreationTime()
Retrieves the creationtime-field of the current object |
String |
getExprKey()
Retrieves the exprkey-field of the current object. |
String |
getTableName()
Retrieves the tablename-field of the current object. |
void |
insertIndex(JdbcConnectionPool pool)
Inserts the current object into the index table |
static boolean |
searchIndex(JdbcConnectionPool pool,
String expressionName)
Searches the index for a name of an expression or group |
static boolean |
searchIndex2(JdbcConnectionPool pool,
String tablename)
Searches the index for a name of a cache table |
static Set |
selectAllTableNames(JdbcConnectionPool pool)
Reads all table names from the index table |
static IndexTable |
selectIndex(JdbcConnectionPool pool,
String name)
Reads one record from the index table |
void |
setCreationTime(long creationTime)
Sets the creationtime-field of the current object |
void |
setExprKey(String exprKey)
Sets the exprkey-field of the current object. |
void |
setTableName(String tableName)
Sets the tablename-field of the current object. |
void |
updateIndex(JdbcConnectionPool pool)
Writes the content of the current object back to the database |
void |
writeIndex(JdbcConnectionPool pool)
Writes the content of the current object back to the database. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IndexTable(String exprKey, String tableName, long creationTime)
exprKey
- the MD5 sum of the name of the expression or grouptableName
- the name of the tablecreationTime
- the creation time of the cache table in milliseconds since January, 1st 1970.Method Detail |
public static boolean createIndexTable(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic static boolean searchIndex(JdbcConnectionPool pool, String expressionName) throws JdbcException
pool
- The database handle to useexpressionName
- The name to search for
JdbcException
- if a JDBC error occurspublic static boolean searchIndex2(JdbcConnectionPool pool, String tablename) throws JdbcException
pool
- The database handle to usetablename
- The name to search for
JdbcException
- if a JDBC error occurspublic static IndexTable selectIndex(JdbcConnectionPool pool, String name) throws JdbcException
pool
- The database handle to usename
- The name to search for
JdbcException
- if a JDBC error occurspublic static Set selectAllTableNames(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic void insertIndex(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic void updateIndex(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic void deleteIndex(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic void writeIndex(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic void setExprKey(String exprKey)
exprKey
- the MD5 sum of the name of the expression or grouppublic void setTableName(String tableName)
tableName
- the name of the cache tablepublic void setCreationTime(long creationTime)
creationTime
- the creation time of the cache table in milliseconds since January, 1st 1970.public String getExprKey()
public String getTableName()
public long getCreationTime()
|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |