WriteIntersectingFactory factory = new WriteIntersectingFactory();
JODBConfig.setRandomAccessBufferFactory(factory);
JODBSessionContainer sessionContainer = getContainerForFile(testFile);
InnerClassObject innerClassObject = new InnerClassObject();
sessionContainer.set(innerClassObject);
sessionContainer.commit();
if(closeAfterCommit){
sessionContainer.close();
sessionContainer = getContainerForFile(testFile);
}
Query query = sessionContainer.query();
query.constrain(innerClassObject.getInnerClass().getClass());
List list = query.execute();
if(list.size()!=1 || list.get(0).getClass() != innerClassObject.getInnerClass().getClass()){
throw new RuntimeException(" +++"+list.size());
}
}