| boolean expectEvolved,
boolean expectUpdated)
throws DatabaseException {
RawType embedType = store.getModel().getRawType(NAME3);
RawObject embed = new RawObject
(embedType,
makeValues
("f1", true,
"f2", (byte) 2,
"f3", (short) 3,
"f4", 4,
"f5", 5L,
"f6", 6F,
"f7", 7D,
"f8", (char) 8,
"f9", true,
"f10", (byte) 10,
"f11", (short) 11,
"f12", 12,
"f13", 13L,
"f14", 14F,
"f15", 15D,
"f16", (char) 16),
null);
RawObject obj;
if (expectEvolved) {
obj = readRaw(store, 99, NAME, 1, NAME2, 1, CASECLS, 0);
checkRawFields(obj, "pkeyInteger", (int) 99,
"kBoolean", true,
"kByte", (byte) 77,
"kShort", (short) 66,
"kInteger", (int) 55,
"kLong", (long) 44,
"kFloat", (float) 33,
"kDouble", (double) 22,
"kCharacter", (char) 11,
"f01", (short) 1,
"f02", (int) 2,
"f03", (long) 3,
"f04", (float) 4,
"f06", (double) 6,
"f07", (int) 7,
"f08", (long) 8,
"f09", (float) 9,
"f10", (double) 10,
"f11", (int) 11,
"f12", (long) 12,
"f13", (float) 13,
"f14", (double) 14,
"f15", 15L,
"f16", 16F,
"f17", 17D,
"f18", (float) 18,
"f19", (double) 19,
"f20", (double) 20,
"f21", (short) 21,
"f22", (int) 22,
"f23", (long) 23,
"f24", (float) 24,
"f26", (double) 26,
"f27", (int) 27,
"f28", (long) 28,
"f29", (float) 29,
"f30", (double) 30,
"f31", (int) 31,
"f32", (long) 32,
"f33", (float) 33,
"f34", (double) 34,
"f35", 35L,
"f36", 36F,
"f37", 37D,
"f38", (float) 38,
"f39", (double) 39,
"f40", (double) 40,
"f41", (short) 41,
"f42", (int) 42,
"f43", (long) 43,
"f44", (float) 44,
"f46", (double) 46,
"f47", (int) 47,
"f48", (long) 48,
"f49", (float) 49,
"f50", (double) 50,
"f51", (int) 51,
"f52", (long) 52,
"f53", (float) 53,
"f54", (double) 54,
"f55", 55L,
"f56", 56F,
"f57", 57D,
"f58", (float) 58,
"f59", (double) 59,
"f60", (double) 60,
"f70", BigInteger.valueOf(70),
"f71", BigInteger.valueOf(71),
"f72", BigInteger.valueOf(72),
"f73", BigInteger.valueOf(73),
"f74", BigInteger.valueOf(74),
"f75", BigInteger.valueOf(75),
"f76", BigInteger.valueOf(76),
"f77", BigInteger.valueOf(77),
"f78", BigInteger.valueOf(78),
"f79", BigInteger.valueOf(79),
"f_long2int", 333,
"f_String2long", 444L);
checkRawFields(obj.getSuper(),
"kComposite", embed,
"f_long2Integer", 111,
"f_String2Long", 222L);
} else {
obj = readRaw(store, 99, NAME, 0, NAME2, 0, CASECLS, 0);
checkRawFields(obj, "pkeyint", (int) 99,
"kboolean", true,
"kbyte", (byte) 77,
"kshort", (short) 66,
"kint", (int) 55,
"klong", (long) 44,
"kfloat", (float) 33,
"kdouble", (double) 22,
"kchar", (char) 11,
"f01", (byte) 1,
"f02", (byte) 2,
"f03", (byte) 3,
"f04", (byte) 4,
"f06", (byte) 6,
"f07", (short) 7,
"f08", (short) 8,
"f09", (short) 9,
"f10", (short) 10,
"f11", (char) 11,
"f12", (char) 12,
"f13", (char) 13,
"f14", (char) 14,
"f15", 15,
"f16", 16,
"f17", 17,
"f18", (long) 18,
"f19", (long) 19,
"f20", (float) 20,
"f21", (byte) 21,
"f22", (byte) 22,
"f23", (byte) 23,
"f24", (byte) 24,
"f26", (byte) 26,
"f27", (short) 27,
"f28", (short) 28,
"f29", (short) 29,
"f30", (short) 30,
"f31", (char) 31,
"f32", (char) 32,
"f33", (char) 33,
"f34", (char) 34,
"f35", 35,
"f36", 36,
"f37", 37,
"f38", (long) 38,
"f39", (long) 39,
"f40", (float) 40,
"f41", (byte) 41,
"f42", (byte) 42,
"f43", (byte) 43,
"f44", (byte) 44,
"f46", (byte) 46,
"f47", (short) 47,
"f48", (short) 48,
"f49", (short) 49,
"f50", (short) 50,
"f51", (char) 51,
"f52", (char) 52,
"f53", (char) 53,
"f54", (char) 54,
"f55", 55,
"f56", 56,
"f57", 57,
"f58", (long) 58,
"f59", (long) 59,
"f60", (float) 60,
"f70", (byte) 70,
"f71", (short) 71,
"f72", (char) 72,
"f73", 73,
"f74", (long) 74,
"f75", (byte) 75,
"f76", (short) 76,
"f77", (char) 77,
"f78", 78,
"f79", (long) 79,
"f_long2int", 333L,
"f_String2long", "444");
checkRawFields(obj.getSuper(),
"kcomposite", embed,
"f_long2Integer", 111L,
"f_String2Long", "222");
}
Environment env = store.getEnvironment();
|