@ Override public void add ( IEntityLock lock ) throws LockingException { Connection conn = null ; try { conn = RDBMServices . getConnection ( ) ; primDeleteExpired ( new Date ( ) , lock . getEntityType ( ) , lock . getEntityKey ( ) , conn ) ; primAdd ( lock , conn ) ; } catch ( SQLException sqle ) { throw new LockingException ( "Problem creating " + lock , sqle ) ; } finally { RDBMServices . releaseConnection ( conn ) ; } }
Adds the lock to the underlying store .