|
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.admindb.ToDoList
Implements a wrapper for the database table "todolist" This table holds names of expression or group definition which have changed in the LDAP database and therefore must be updated in the cache database.
Constructor Summary | |
ToDoList(String expression,
long touchTime,
boolean locked)
Creates a new instance of ToDoList |
Method Summary | |
static boolean |
createToDoList(JdbcConnectionPool pool)
Creates a new database table todolist. |
void |
deleteToDo(JdbcConnectionPool pool)
Deletes the current object from the database. |
static void |
fillToDoList(JdbcConnectionPool pool,
Set values)
Inserts a list of names into the database |
String |
getExpression()
Retrieves the expression field of the current object |
boolean |
getLocked()
Retrieves the lock field of the current object |
long |
getTouchTime()
Retrieves the touchtime field of the current object |
void |
insertToDo(JdbcConnectionPool pool)
Inserts a the current object into the database |
static boolean |
searchToDo(JdbcConnectionPool pool,
String cn)
Searches for a name |
static ToDoList |
selectToDo(JdbcConnectionPool pool)
Reads and returns the first record out of the todolist. |
void |
setExpression(String expression)
Sets the expression field of the current object |
void |
setLocked(boolean locked)
Sets the lock field of the current object |
void |
setTouchTime(long touchTime)
Sets the touchtime field of the current object |
void |
updateToDo(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 ToDoList(String expression, long touchTime, boolean locked)
expression
- The name of the expression or group definitiontouchTime
- The time when the change was recognized in milliseconds since January, 1st 1970locked
- Before the update of the cache db starts this field will be set to '1'.
This flag is used for optimization. If another change of the
same expression or group is recognized, it will not be added
to the todolist if this flag is still zero.Method Detail |
public static boolean createToDoList(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic static void fillToDoList(JdbcConnectionPool pool, Set values) throws JdbcException
pool
- The database handle to usevalues
- The names to insert
JdbcException
- if a JDBC error occurspublic static boolean searchToDo(JdbcConnectionPool pool, String cn) throws JdbcException
pool
- The database handle to usecn
- the name to search for
JdbcException
- if a JDBC error occurspublic void insertToDo(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic static ToDoList selectToDo(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic void updateToDo(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic void deleteToDo(JdbcConnectionPool pool) throws JdbcException
pool
- The database handle to use
JdbcException
- if a JDBC error occurspublic void setExpression(String expression)
expression
- the expressionpublic void setTouchTime(long touchTime)
touchTime
- the time in milliseconds since January, 1st 1970public void setLocked(boolean locked)
locked
- true if the record should be locked, false otherwisepublic String getExpression()
public long getTouchTime()
public boolean getLocked()
|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |