protected final void addToDelta(final Object entity, final String entityName) { ODataJPATombstoneContext.addToDeltaResult(entity, entityName); }
ODataJPATombstoneContext.setDeltaToken(deltaToken); (List<Object>) ODataJPATombstoneContext.getDeltaResult(((EdmMapping) mapping).getInternalName()); result = handlePaging(deltaResult, uriParserResultView); } else { ODataJPATombstoneContext.setDeltaToken(listener.generateDeltaToken((List<Object>) result, query));
/** * The method closes ThreadContext. * It is mandatory to call this method to avoid memory leaks. * <p/> * <b>ATTENTION:</b> If <code>isContainerManaged</code> is set to <code>true</code> at * the ODataJPAContext only the cleanup is run but the EntityManager is not closed. */ public void close(boolean forceClose) { ODataJPATombstoneContext.cleanup(); if(!oDataJPAContext.isContainerManaged()) { EntityManager em = oDataJPAContext.getEntityManager(); if (!oDataJPAContext.getODataContext().isInBatchMode() || forceClose) { if (em.isOpen()) { em.close(); } } } }
callBackMap.putAll(expandCallBack); String deltaToken = ODataJPATombstoneContext.getDeltaToken(); if (deltaToken != null) { callBackMap.put(TombstoneCallback.CALLBACK_KEY_TOMBSTONE, new JPATombstoneCallBack(serviceRoot.toString(),
ODataJPATombstoneContext.setDeltaToken(deltaToken); (List<Object>) ODataJPATombstoneContext.getDeltaResult(((EdmMapping) mapping).getInternalName()); result = handlePaging(deltaResult, uriParserResultView); } else { ODataJPATombstoneContext.setDeltaToken(listener.generateDeltaToken((List<Object>) result, query));
/** * The method closes ThreadContext. * It is mandatory to call this method to avoid memory leaks. * <p/> * <b>ATTENTION:</b> If <code>isContainerManaged</code> is set to <code>true</code> at * the ODataJPAContext only the cleanup is run but the EntityManager is not closed. */ public void close(boolean forceClose) { ODataJPATombstoneContext.cleanup(); if(!oDataJPAContext.isContainerManaged()) { EntityManager em = oDataJPAContext.getEntityManager(); if (!oDataJPAContext.getODataContext().isInBatchMode() || forceClose) { if (em.isOpen()) { em.close(); } } } }
callBackMap.putAll(expandCallBack); String deltaToken = ODataJPATombstoneContext.getDeltaToken(); if (deltaToken != null) { callBackMap.put(TombstoneCallback.CALLBACK_KEY_TOMBSTONE, new JPATombstoneCallBack(serviceRoot.toString(),
protected final void addToDelta(final Object entity, final String entityName) { ODataJPATombstoneContext.addToDeltaResult(entity, entityName); }