public void clear() throws IdentityException { for (IdentityStoreSession iss : identityStoreSessionMappings.values()) { iss.clear(); } }
public void close() throws IdentityException { for (IdentityStoreSession identityStoreSession : identityStoreSessionMappings.values()) { identityStoreSession.close(); } }
public void commit() { sessionWrapper.commitTransaction(); }
public boolean isActive() { return sessionWrapper.isTransactionActive(); } }
public boolean isOpen() { for (IdentityStoreSession identityStoreSession : identityStoreSessionMappings.values()) { if (identityStoreSession.isOpen()) { return true; } } return false; }
public void rollback() { sessionWrapper.rollbackTransaction(); }
public void start() { sessionWrapper.startTransaction(); }
public void save() throws IdentityException { for (IdentityStoreSession iss : identityStoreSessionMappings.values()) { iss.save(); } }
public boolean isTransactionSupported() { for (IdentityStoreSession identityStoreSession : identityStoreSessionMappings.values()) { if (identityStoreSession.isTransactionSupported()) { return true; } } return false; }
protected Session getHibernateSession(IdentityStoreInvocationContext ctx) throws IdentityException { try { return ((Session)ctx.getIdentityStoreSession().getSessionContext()); } catch (Exception e) { throw new IdentityException("Cannot obtain Hibernate Session", e); } }
public boolean isTransactionActive() { for (IdentityStoreSession identityStoreSession : identityStoreSessionMappings.values()) { if (identityStoreSession.isTransactionActive()) { return true; } } return false; } }
public boolean isOpen() { return sessionContext.resolveStoreInvocationContext().getIdentityStoreSession().isOpen(); }
public void rollbackTransaction() { for (IdentityStoreSession identityStoreSession : identityStoreSessionMappings.values()) { identityStoreSession.rollbackTransaction(); } }
public void startTransaction() { for (IdentityStoreSession identityStoreSession : identityStoreSessionMappings.values()) { identityStoreSession.startTransaction(); } }
public void save() throws IdentityException { sessionContext.resolveStoreInvocationContext().getIdentityStoreSession().save(); }
public void commitTransaction() { for (IdentityStoreSession identityStoreSession : identityStoreSessionMappings.values()) { identityStoreSession.commitTransaction(); } }
public void clear() throws IdentityException { sessionContext.resolveStoreInvocationContext().getIdentityStoreSession().clear(); }
public void close() throws IdentityException { sessionContext.resolveStoreInvocationContext().getIdentityStoreSession().close(); }