Package edu.wisc.library.ocfl.core.db
Class PostgresObjectDetailsDatabase
- java.lang.Object
-
- edu.wisc.library.ocfl.core.db.BaseObjectDetailsDatabase
-
- edu.wisc.library.ocfl.core.db.PostgresObjectDetailsDatabase
-
- All Implemented Interfaces:
ObjectDetailsDatabase
public class PostgresObjectDetailsDatabase extends BaseObjectDetailsDatabase
-
-
Constructor Summary
Constructors Constructor Description PostgresObjectDetailsDatabase(String tableName, DataSource dataSource, boolean storeInventory, long waitTime, TimeUnit timeUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetLockWaitTimeout(Connection connection, long waitMillis)Sets the amount of time to wait for a row lock before timing out.-
Methods inherited from class edu.wisc.library.ocfl.core.db.BaseObjectDetailsDatabase
addObjectDetails, deleteObjectDetails, retrieveObjectDetails, updateObjectDetails
-
-
-
-
Constructor Detail
-
PostgresObjectDetailsDatabase
public PostgresObjectDetailsDatabase(String tableName, DataSource dataSource, boolean storeInventory, long waitTime, TimeUnit timeUnit)
-
-
Method Detail
-
setLockWaitTimeout
protected void setLockWaitTimeout(Connection connection, long waitMillis) throws SQLException
Description copied from class:BaseObjectDetailsDatabaseSets the amount of time to wait for a row lock before timing out.- Specified by:
setLockWaitTimeoutin classBaseObjectDetailsDatabase- Parameters:
connection- db connectionwaitMillis- time to wait for the lock in millis- Throws:
SQLException- on sql error
-
-