@Override public Object immediateLoad(String entityName, Serializable id) throws HibernateException { throw new SessionException( "proxies cannot be fetched by a stateless session" ); }
@Override public void initializeCollection( PersistentCollection collection, boolean writing) throws HibernateException { throw new SessionException( "collections cannot be fetched by a stateless session" ); }
@Override public T tenantIdentifier(String tenantIdentifier) { // todo : is this always true? Or just in the case of sharing JDBC resources? throw new SessionException( "Cannot redefine tenant identifier on child session" ); }
private void errorIfReadOnlySettingNotAvailable() { if ( session == null ) { throw new TransientObjectException( "Proxy [" + entityName + "#" + id + "] is detached (i.e, session is null). The read-only/modifiable setting is only accessible when the proxy is associated with an open session." ); } if ( !session.isOpenOrWaitingForAutoClose() ) { throw new SessionException( "Session is closed. The read-only/modifiable setting is only accessible when the proxy [" + entityName + "#" + id + "] is associated with an open session." ); } }
private void managedClose() { if ( isClosed() ) { throw new SessionException( "Session was already closed!" ); } close(); }
throw new SessionException( "Cannot simultaneously share transaction context and specify connection" );
@Override public void initializeCollection( PersistentCollection collection, boolean writing) throws HibernateException { throw new SessionException("collections cannot be fetched by a stateless session"); }
protected void errorIfClosed() { if ( closed ) { throw new SessionException( "Session is closed!" ); } }
protected void errorIfClosed() { if ( closed ) { throw new SessionException( "Session is closed!" ); } }
@Override public SessionBuilder tenantIdentifier(String tenantIdentifier) { // todo : is this always true? Or just in the case of sharing JDBC resources? throw new SessionException( "Cannot redefine tenant identifier on child session" ); }
@Override public T tenantIdentifier(String tenantIdentifier) { // todo : is this always true? Or just in the case of sharing JDBC resources? throw new SessionException( "Cannot redefine tenant identifier on child session" ); }
@Override public Object immediateLoad(String entityName, Object id) throws HibernateException { throw new SessionException( "proxies cannot be fetched by a stateless session" ); }
@Override public void initializeCollection( PersistentCollection collection, boolean writing) throws HibernateException { throw new SessionException( "collections cannot be fetched by a stateless session" ); }
@Override public SessionBuilder tenantIdentifier(String tenantIdentifier) { // todo : is this always true? Or just in the case of sharing JDBC resources? throw new SessionException( "Cannot redefine tenant identifier on child session" ); }
private static void errorIfClosed(final SessionImplementor sessionImplementor) { if (sessionImplementor.isClosed()) { throw new org.hibernate.SessionException("Session is closed!"); } }
private void managedClose() { if ( isClosed() ) { throw new SessionException( "Session was already closed!" ); } close(); }
private void errorIfReadOnlySettingNotAvailable() { if ( session == null ) { throw new TransientObjectException( "Proxy [" + entityName + "#" + id + "] is detached (i.e, session is null). The read-only/modifiable setting is only accessible when the proxy is associated with an open session." ); } if ( session.isClosed() ) { throw new SessionException( "Session is closed. The read-only/modifiable setting is only accessible when the proxy [" + entityName + "#" + id + "] is associated with an open session." ); } }
@Override public void managedClose() { if ( isClosed() ) { throw new SessionException( "Session was already closed!" ); } transactionCoordinator.close(); setClosed(); }
@Override public void managedClose() { if ( isClosed() ) { throw new SessionException( "Session was already closed!" ); } transactionCoordinator.close(); setClosed(); }
public void managedClose() { if ( isClosed() ) { throw new SessionException( "Session was already closed!" ); } jdbcContext.getConnectionManager().close(); setClosed(); }