1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.devtools.pdle;
17
18 import java.util.List;
19 import java.util.Map;
20
21
22
23
24
25 public interface PostDataLoadEncryptionDao {
26
27 final int UNENCRYPTED_VALUE_INDEX = 0;
28 final int ENCRYPTED_VALUE_INDEX = 1;
29
30 void createBackupTable(String tableName);
31
32 void truncateTable(String tableName);
33
34 void restoreTableFromBackup(String tableName);
35
36 void dropBackupTable(String tableName);
37
38 boolean doesBackupTableExist(String tableName);
39
40 void addEncryptionIndicatorToBackupTable(String tableName);
41
42 void dropEncryptionIndicatorFromBackupTable(String tableName);
43
44 void updateColumnValuesInBackupTable(String tableName, Map<String, List<String>> columnNameOldNewValuesMap);
45
46 List<Map<String, String>> retrieveUnencryptedColumnValuesFromBackupTable(String tableName, final List<String> columnNames, int numberOfRowsToCommitAfter);
47
48 String getUpdateBackupTableColumnsSql(String tableName, Map<String, List<String>> columnNameOldNewValuesMap);
49
50 boolean performEncryption(final String tableName, final List<Map<String, List<String>>> rowsToEncryptColumnNameOldNewValuesMap) throws Exception;
51
52 }