use of org.apache.cayenne.unit.UnitLocalConnection in project cayenne by apache.
the class RemoteCayenneCase method createROPContext.
protected CayenneContext createROPContext() {
ClientServerChannel clientServerChannel = new ClientServerChannel(serverContext);
UnitLocalConnection connection = new UnitLocalConnection(clientServerChannel, serializationPolicy);
ClientChannel channel = new ClientChannel(connection, false, // TODO: replace with container managed ClientCase.
new DefaultEventManager(0), false);
CayenneContext context = new CayenneContext(channel, true, true);
context.setQueryCache(new MapQueryCache(10));
return context;
}
Aggregations