.getType()
|| Types.LONGVARCHAR == clobAttr.getType());
}
private void assertLobObjEntities(DataMap map) {
ObjEntity blobEnt = map.getObjEntity("BlobTest");
assertNotNull(blobEnt);
// BLOBs should be mapped as byte[]
ObjAttribute blobAttr = (ObjAttribute) blobEnt.getAttribute("blobCol");
assertNotNull("BlobTest.blobCol failed to load", blobAttr);
assertEquals("byte[]", blobAttr.getType());
ObjEntity clobEnt = map.getObjEntity("ClobTest");
assertNotNull(clobEnt);
// CLOBs should be mapped as Strings by default
ObjAttribute clobAttr = (ObjAttribute) clobEnt.getAttribute("clobCol");
assertNotNull(clobAttr);
assertEquals(String.class.getName(), clobAttr.getType());
}