public class PostDataLoadEncryptionDaoJdbc extends PlatformAwareDaoBaseJdbc implements PostDataLoadEncryptionDao
Modifier and Type | Field and Description |
---|---|
protected static String |
AND_SEPARATOR |
protected static String |
BACKUP_TABLE_ENCRYPT_IND |
protected static String |
BACKUP_TABLE_EXTENSION |
protected static String |
COMMA_SEPARATOR |
ENCRYPTED_VALUE_INDEX, UNENCRYPTED_VALUE_INDEX
Constructor and Description |
---|
PostDataLoadEncryptionDaoJdbc() |
Modifier and Type | Method and Description |
---|---|
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) |
getDbPlatform, setDbPlatform
getSimpleJdbcTemplate, initTemplateConfig
protected static final String AND_SEPARATOR
protected static final String COMMA_SEPARATOR
protected static final String BACKUP_TABLE_EXTENSION
protected static final String BACKUP_TABLE_ENCRYPT_IND
public PostDataLoadEncryptionDaoJdbc()
public void createBackupTable(String tableName)
createBackupTable
in interface PostDataLoadEncryptionDao
public void truncateTable(String tableName)
truncateTable
in interface PostDataLoadEncryptionDao
public void restoreTableFromBackup(String tableName)
restoreTableFromBackup
in interface PostDataLoadEncryptionDao
public void dropBackupTable(String tableName)
dropBackupTable
in interface PostDataLoadEncryptionDao
public boolean doesBackupTableExist(String tableName)
doesBackupTableExist
in interface PostDataLoadEncryptionDao
public void addEncryptionIndicatorToBackupTable(String tableName)
addEncryptionIndicatorToBackupTable
in interface PostDataLoadEncryptionDao
public void dropEncryptionIndicatorFromBackupTable(String tableName)
dropEncryptionIndicatorFromBackupTable
in interface PostDataLoadEncryptionDao
public List<Map<String,String>> retrieveUnencryptedColumnValuesFromBackupTable(String tableName, List<String> columnNames, int numberOfRowsToCommitAfter)
retrieveUnencryptedColumnValuesFromBackupTable
in interface PostDataLoadEncryptionDao
public void updateColumnValuesInBackupTable(String tableName, Map<String,List<String>> columnNameOldNewValuesMap)
updateColumnValuesInBackupTable
in interface PostDataLoadEncryptionDao
public String getUpdateBackupTableColumnsSql(String tableName, Map<String,List<String>> columnNameOldNewValuesMap)
getUpdateBackupTableColumnsSql
in interface PostDataLoadEncryptionDao
protected String getSelectBackupTableColumnsSql(String tableName, List<String> columnNames, int numberOfRowsToCommitAfter)
public boolean performEncryption(String tableName, List<Map<String,List<String>>> rowsToEncryptColumnNameOldNewValuesMap) throws Exception
performEncryption
in interface PostDataLoadEncryptionDao
Exception
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.