| java.lang.Object freecs.auth.sqlConnectionPool.PoolElement
PoolElement | public class PoolElement (Code) | | |
ACTIVE | final public static short ACTIVE(Code) | | |
IDLE | final public static short IDLE(Code) | | |
INVALID | final public static short INVALID(Code) | | |
isActivehasBeenUsedcleanedUp | volatile boolean isActivehasBeenUsedcleanedUp(Code) | | |
validUntil | long validUntil(Code) | | |
checkWarnings | public void checkWarnings(Statement s, String prefix)(Code) | | Checks the given Statement for SQLWarnings and logs them.
Parameters: s - The statement to check for Warnings |
cleanup | public synchronized void cleanup()(Code) | | causes this PoolElement to close all open cursors and the connection to it's jdbc-source
|
finalize | public void finalize()(Code) | | |
grab | public synchronized short grab()(Code) | | Grabs control over this PoolElement and returns true on success
true if the control over this PoolElement was grabbed successfully |
loginUser | public User loginUser(String username, String password, String cookie) throws Exception(Code) | | Checks if there is already a PreparedStatement for retrieving the user-data and
constructs it, if it doesn't exist. Afterwards the login will be checked and
the user-object will be constructed if the credentials are correct. Null will
be returned, if the credentials did not return a user-record.
User the user which is allowed to log in or null if no match was found throws: Exception - if technical error occures (connection problems, ...) |
release | public void release()(Code) | | Clears all parameters given to the PreparedStatements and all their warnings.
Afterwards this PoolElement is marked as inactive (isActive = false)
|
|
|