mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
Renamed Record class to DBRecord
This commit is contained in:
parent
04276e9522
commit
db1e3d1b62
305 changed files with 1902 additions and 1959 deletions
|
@ -124,7 +124,7 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
|||
|
||||
private void tableFill(Table table, int recCnt, String baseName) throws Exception {
|
||||
for (int i = 0; i < recCnt; i++) {
|
||||
Record rec = SCHEMA.createRecord(i);
|
||||
DBRecord rec = SCHEMA.createRecord(i);
|
||||
rec.setString(0, baseName + i);
|
||||
table.putRecord(rec);
|
||||
}
|
||||
|
@ -152,12 +152,12 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
|||
assertEquals(RECORD_COUNT / 2, table1.getRecordCount());
|
||||
|
||||
for (int i = 0; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNull(rec);
|
||||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable1_" + i, rec.getString(0));
|
||||
}
|
||||
|
@ -171,7 +171,7 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
|||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table2.getRecord(i);
|
||||
DBRecord rec = table2.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable2_" + i, rec.getString(0));
|
||||
}
|
||||
|
@ -207,12 +207,12 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
|||
assertEquals(RECORD_COUNT / 2, table1.getRecordCount());
|
||||
|
||||
for (int i = 0; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNull(rec);
|
||||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable1_" + i, rec.getString(0));
|
||||
}
|
||||
|
@ -259,12 +259,12 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
|||
assertEquals(RECORD_COUNT / 2, table1.getRecordCount());
|
||||
|
||||
for (int i = 0; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNull(rec);
|
||||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable1_" + i, rec.getString(0));
|
||||
}
|
||||
|
@ -278,7 +278,7 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
|||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table2.getRecord(i);
|
||||
DBRecord rec = table2.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable2_" + i, rec.getString(0));
|
||||
}
|
||||
|
@ -315,12 +315,12 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
|||
assertEquals(RECORD_COUNT / 2, table1.getRecordCount());
|
||||
|
||||
for (int i = 0; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNull(rec);
|
||||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table1.getRecord(i);
|
||||
DBRecord rec = table1.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable1_" + i, rec.getString(0));
|
||||
}
|
||||
|
@ -334,7 +334,7 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
|||
}
|
||||
|
||||
for (int i = 1; i < RECORD_COUNT; i += 2) {
|
||||
Record rec = table2.getRecord(i);
|
||||
DBRecord rec = table2.getRecord(i);
|
||||
assertNotNull(rec);
|
||||
assertEquals("initTable2_" + i, rec.getString(0));
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
|
|||
dbh = new PackedDBHandle("MyContent");
|
||||
long txId = dbh.startTransaction();
|
||||
Table table = dbh.createTable("MyTable", TEST_SCHEMA);
|
||||
Record rec = TEST_SCHEMA.createRecord(1);
|
||||
DBRecord rec = TEST_SCHEMA.createRecord(1);
|
||||
rec.setString(0, "String1");
|
||||
table.putRecord(rec);
|
||||
dbh.endTransaction(txId, true);
|
||||
|
@ -115,7 +115,7 @@ public class PackedDatabaseTest extends AbstractGenericTest {
|
|||
assertNotNull(table);
|
||||
assertEquals(1, table.getRecordCount());
|
||||
|
||||
Record rec = table.getRecord(1);
|
||||
DBRecord rec = table.getRecord(1);
|
||||
assertNotNull(rec);
|
||||
assertEquals("String1", rec.getString(0));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue