| Modifier and Type | Class and Description |
|---|---|
private static class |
JDBCStorage.ToUAcceptanceMapper
TOUAcceptance row mapper. |
| Modifier and Type | Field and Description |
|---|---|
private String |
acceptanceTable
The name of the terms of use acceptance table.
|
private SimpleJdbcTemplate |
jdbcTemplate
The JDBC template.
|
private JDBCStorage.ToUAcceptanceMapper |
touAcceptanceMapper
The terms of use acceptance mapper.
|
| Constructor and Description |
|---|
JDBCStorage() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsToUAcceptance(String userId,
String version)
Checks if the storage contains a terms of use acceptance for a specific user.
|
void |
createToUAcceptance(String userId,
TOUAcceptance touAcceptance)
Creates a terms of use acceptance.
|
TOUAcceptance |
readToUAcceptance(String userId,
String version)
Reads a terms of use acceptance.
|
void |
setDataSource(DataSource dataSource)
Sets the
DataSource to use for this JDBCStorage instance. |
void |
updateToUAcceptance(String userId,
TOUAcceptance touAcceptance)
Updates a terms of use acceptance.
|
private SimpleJdbcTemplate jdbcTemplate
private final String acceptanceTable
private final JDBCStorage.ToUAcceptanceMapper touAcceptanceMapper
public void setDataSource(DataSource dataSource)
DataSource to use for this JDBCStorage instance.dataSource - the DataSource to use.public void createToUAcceptance(String userId, TOUAcceptance touAcceptance)
createToUAcceptance in interface StorageuserId - The user id.touAcceptance - terms of use acceptance.public void updateToUAcceptance(String userId, TOUAcceptance touAcceptance)
updateToUAcceptance in interface StorageuserId - The user id.touAcceptance - terms of use acceptance.public TOUAcceptance readToUAcceptance(String userId, String version)
readToUAcceptance in interface StorageuserId - The user id.version - Terms of use version.public boolean containsToUAcceptance(String userId, String version)
containsToUAcceptance in interface StorageuserId - The user id.version - Terms of use version.Copyright © 1999–2014. All rights reserved.