org.kuali.rice.krad.dao.jdbc
Class PostDataLoadEncryptionDaoJdbc
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
org.kuali.rice.core.framework.persistence.jdbc.dao.PlatformAwareDaoBaseJdbc
org.kuali.rice.krad.dao.jdbc.PostDataLoadEncryptionDaoJdbc
- All Implemented Interfaces:
- PlatformAwareDao, PostDataLoadEncryptionDao, org.springframework.beans.factory.InitializingBean
public class PostDataLoadEncryptionDaoJdbc
- extends PlatformAwareDaoBaseJdbc
- implements PostDataLoadEncryptionDao
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
void |
addEncryptionIndicatorToBackupTable(String tableName)
|
void |
createBackupTable(String tableName)
|
boolean |
doesBackupTableExist(String tableName)
|
void |
dropBackupTable(String tableName)
|
void |
dropEncryptionIndicatorFromBackupTable(String tableName)
|
protected String |
getSelectBackupTableColumnsSql(String tableName,
List<String> columnNames,
int numberOfRowsToCommitAfter)
|
String |
getUpdateBackupTableColumnsSql(String tableName,
Map<String,List<String>> columnNameOldNewValuesMap)
|
boolean |
performEncryption(String tableName,
List<Map<String,List<String>>> rowsToEncryptColumnNameOldNewValuesMap)
|
void |
restoreTableFromBackup(String tableName)
|
List<Map<String,String>> |
retrieveUnencryptedColumnValuesFromBackupTable(String tableName,
List<String> columnNames,
int numberOfRowsToCommitAfter)
|
void |
truncateTable(String tableName)
|
void |
updateColumnValuesInBackupTable(String tableName,
Map<String,List<String>> columnNameOldNewValuesMap)
|
Methods inherited from class org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport |
getSimpleJdbcTemplate, initTemplateConfig |
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, releaseConnection, setDataSource, setJdbcTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AND_SEPARATOR
protected static final String AND_SEPARATOR
- See Also:
- Constant Field Values
COMMA_SEPARATOR
protected static final String COMMA_SEPARATOR
- See Also:
- Constant Field Values
BACKUP_TABLE_EXTENSION
protected static final String BACKUP_TABLE_EXTENSION
- See Also:
- Constant Field Values
BACKUP_TABLE_ENCRYPT_IND
protected static final String BACKUP_TABLE_ENCRYPT_IND
- See Also:
- Constant Field Values
PostDataLoadEncryptionDaoJdbc
public PostDataLoadEncryptionDaoJdbc()
createBackupTable
public void createBackupTable(String tableName)
- Specified by:
createBackupTable
in interface PostDataLoadEncryptionDao
truncateTable
public void truncateTable(String tableName)
- Specified by:
truncateTable
in interface PostDataLoadEncryptionDao
restoreTableFromBackup
public void restoreTableFromBackup(String tableName)
- Specified by:
restoreTableFromBackup
in interface PostDataLoadEncryptionDao
dropBackupTable
public void dropBackupTable(String tableName)
- Specified by:
dropBackupTable
in interface PostDataLoadEncryptionDao
doesBackupTableExist
public boolean doesBackupTableExist(String tableName)
- Specified by:
doesBackupTableExist
in interface PostDataLoadEncryptionDao
addEncryptionIndicatorToBackupTable
public void addEncryptionIndicatorToBackupTable(String tableName)
- Specified by:
addEncryptionIndicatorToBackupTable
in interface PostDataLoadEncryptionDao
dropEncryptionIndicatorFromBackupTable
public void dropEncryptionIndicatorFromBackupTable(String tableName)
- Specified by:
dropEncryptionIndicatorFromBackupTable
in interface PostDataLoadEncryptionDao
retrieveUnencryptedColumnValuesFromBackupTable
public List<Map<String,String>> retrieveUnencryptedColumnValuesFromBackupTable(String tableName,
List<String> columnNames,
int numberOfRowsToCommitAfter)
- Specified by:
retrieveUnencryptedColumnValuesFromBackupTable
in interface PostDataLoadEncryptionDao
updateColumnValuesInBackupTable
public void updateColumnValuesInBackupTable(String tableName,
Map<String,List<String>> columnNameOldNewValuesMap)
- Specified by:
updateColumnValuesInBackupTable
in interface PostDataLoadEncryptionDao
getUpdateBackupTableColumnsSql
public String getUpdateBackupTableColumnsSql(String tableName,
Map<String,List<String>> columnNameOldNewValuesMap)
- Specified by:
getUpdateBackupTableColumnsSql
in interface PostDataLoadEncryptionDao
getSelectBackupTableColumnsSql
protected String getSelectBackupTableColumnsSql(String tableName,
List<String> columnNames,
int numberOfRowsToCommitAfter)
performEncryption
public boolean performEncryption(String tableName,
List<Map<String,List<String>>> rowsToEncryptColumnNameOldNewValuesMap)
throws Exception
- Specified by:
performEncryption
in interface PostDataLoadEncryptionDao
- Throws:
Exception
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.