Codota Logo
SessionImplementor.isConnected
Code IndexAdd Codota to your IDE (free)

How to use
isConnected
method
in
org.hibernate.engine.spi.SessionImplementor

Best Java code snippets using org.hibernate.engine.spi.SessionImplementor.isConnected (Showing top 20 results out of 315)

  • Common ways to obtain SessionImplementor
private void myMethod () {
SessionImplementor s =
  • Codota IconEntityManager entityManager;entityManager.unwrap(SessionImplementor.class)
  • Codota IconFlushEntityEvent flushEntityEvent;flushEntityEvent.getSession()
  • Codota IconLazyInitializer lazyInitializer;lazyInitializer.getSession()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

@Override
public boolean isConnected() {
  return delegate.isConnected();
}
origin: org.jboss.seam/jboss-seam

public boolean isConnected()
{
 return ((SessionImplementor) delegate).isConnected();
}
origin: org.hibernate.orm/hibernate-core

@Override
public boolean isConnected() {
  return delegate.isConnected();
}
origin: riotfamily/riot

public boolean isConnected() {
  return session.isConnected();
}
origin: babyfish-ct/babyfish

@Override
public boolean isLoadable() {
  if (this.value instanceof HibernateProxy) {
    HibernateProxy proxy = (HibernateProxy)this.value;
    return proxy.getHibernateLazyInitializer().getSession().isConnected();
  }
  return true;
}
origin: babyfish-ct/babyfish

@Override
public boolean isLoadable() {
  if (this.value instanceof HibernateProxy) {
    HibernateProxy proxy = (HibernateProxy)this.value;
    return proxy.getHibernateLazyInitializer().getSession().isConnected();
  }
  return true;
}
origin: babyfish-ct/babyfish

@Override
public boolean isLoadable() {
  if (this.value instanceof HibernateProxy) {
    HibernateProxy proxy = (HibernateProxy)this.value;
    return proxy.getHibernateLazyInitializer().getSession().isConnected();
  }
  return true;
}
origin: org.hibernate/com.springsource.org.hibernate

private void throwLazyInitializationExceptionIfNotConnected() {
  if ( !isConnectedToSession() )  {
    throwLazyInitializationException("no session or session was closed");
  }
  if ( !session.isConnected() ) {
    throwLazyInitializationException("session is disconnected");
  }        
}

origin: babyfish-ct/babyfish

@Override
protected boolean isAbandonableElement(E element) {
  //This endpoint is not inverse means the opposite end point is inverse.
  if (!this.inverse && element instanceof HibernateProxy) {
    HibernateProxy proxy = (HibernateProxy)element;
    SessionImplementor session = proxy.getHibernateLazyInitializer().getSession();
    return session == null ||
        !session.isOpen() ||
        !session.isConnected();
  }
  return false;
}
origin: org.hibernate/com.springsource.org.hibernate.core

private void throwLazyInitializationExceptionIfNotConnected() {
  if ( !isConnectedToSession() )  {
    throwLazyInitializationException("no session or session was closed");
  }
  if ( !session.isConnected() ) {
    throwLazyInitializationException("session is disconnected");
  }        
}

origin: babyfish-ct/babyfish

@Override
protected boolean isAbandonableValue(T value) {
  //This endpoint is not inverse means the opposite end point is inverse.
  if (!this.inverse && value instanceof HibernateProxy) {
    HibernateProxy proxy = (HibernateProxy)value;
    SessionImplementor session = proxy.getHibernateLazyInitializer().getSession();
    return session == null ||
        !session.isOpen() ||
        !session.isConnected();
  }
  return false;
}
origin: babyfish-ct/babyfish

@Override
protected boolean isAbandonableValue(V value) {
  //This endpoint is not inverse means the opposite end point is inverse.
  if (!this.inverse && value instanceof HibernateProxy) {
    HibernateProxy proxy = (HibernateProxy)value;
    SessionImplementor session = proxy.getHibernateLazyInitializer().getSession();
    return session == null ||
        !session.isOpen() ||
        !session.isConnected();
  }
  return false;
}
origin: babyfish-ct/babyfish

@Override
protected boolean isAbandonableElement(E element) {
  //This endpoint is not inverse means the opposite end point is inverse.
  if (!this.inverse && element instanceof HibernateProxy) {
    HibernateProxy proxy = (HibernateProxy)element;
    SessionImplementor session = proxy.getHibernateLazyInitializer().getSession();
    return session == null ||
        !session.isOpen() ||
        !session.isConnected();
  }
  return false;
}
origin: babyfish-ct/babyfish

@Override
protected boolean isAbandonableValue(T value) {
  //This endpoint is not inverse means the opposite end point is inverse.
  if (!this.inverse && value instanceof HibernateProxy) {
    HibernateProxy proxy = (HibernateProxy)value;
    SessionImplementor session = proxy.getHibernateLazyInitializer().getSession();
    return session == null ||
        !session.isOpen() ||
        !session.isConnected();
  }
  return false;
}
origin: babyfish-ct/babyfish

@Override
protected boolean isAbandonableValue(V value) {
  //This endpoint is not inverse means the opposite end point is inverse.
  if (!this.inverse && value instanceof HibernateProxy) {
    HibernateProxy proxy = (HibernateProxy)value;
    SessionImplementor session = proxy.getHibernateLazyInitializer().getSession();
    return session == null ||
        !session.isOpen() ||
        !session.isConnected();
  }
  return false;
}
origin: babyfish-ct/babyfish

@Override
protected void onLoad() {
  SessionImplementor session = this.session;
  if (session==null) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainNoSession(this.getClass(), SessionImplementor.class)
    );
  }
  if (!session.isConnected()) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainDisconnectedSession(this.getClass(), SessionImplementor.class)
    );
  }
  session.initializeCollection(this.<PersistentMAOrderedSet<E>>getRootWrapper(), false);
}

origin: babyfish-ct/babyfish

@Override
protected void onLoad() {
  SessionImplementor session = this.session;
  if (session==null) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainNoSession(this.getClass(), SessionImplementor.class)
    );
  }
  if (!session.isConnected()) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainDisconnectedSession(this.getClass(), SessionImplementor.class)
    );
  }
  session.initializeCollection(this.<PersistentMANavigableMap<K, V>>getRootWrapper(), false);
}

origin: babyfish-ct/babyfish

protected static void throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection c) {
  if (!isConnectedToSession(c))  {
    throwLazyInitializationException(c, "no session or session was closed");
  }
  if (!c.getSession().isConnected()) {
    throwLazyInitializationException(c, "session is disconnected");
  }
}

origin: babyfish-ct/babyfish

@Override
protected void onLoad() {
  SessionImplementor session = this.session;
  if (session==null) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainNoSession(this.getClass(), SessionImplementor.class)
    );
  }
  if (!session.isConnected()) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainDisconnectedSession(this.getClass(), SessionImplementor.class)
    );
  }
  session.initializeCollection(this.<PersistentMAOrderedMap<K, V>>getRootWrapper(), false);
}

origin: babyfish-ct/babyfish

@Override
protected void onLoad() {
  SessionImplementor session = this.session;
  if (session==null) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainNoSession(this.getClass(), SessionImplementor.class)
    );
  }
  if (!session.isConnected()) {
    throw new LazyInitializationException(
        CommonMessages.rootTypeRetainDisconnectedSession(this.getClass(), SessionImplementor.class)
    );
  }
  session.initializeCollection(this.<PersistentMANavigableSet<E>>getRootWrapper(), false);
}

org.hibernate.engine.spiSessionImplementorisConnected

Popular methods of SessionImplementor

  • getFactory
    Get the creating SessionFactoryImplementor
  • getTransactionCoordinator
  • connection
  • getPersistenceContext
    Get the persistence context for this session
  • getLoadQueryInfluencers
    Get the load query influencers associated with this session.
  • isTransactionInProgress
    Does this Session have an active Hibernate transaction or is there a JTA transaction in progress?
  • getEntityPersister
    Get the EntityPersister for any instance
  • getJdbcCoordinator
  • isClosed
    Determine whether the session is closed. Provided separately from #isOpen() as this method does not
  • flush
  • getTenantIdentifier
    Match te method on org.hibernate.Session and org.hibernate.StatelessSession
  • generateEntityKey
  • getTenantIdentifier,
  • generateEntityKey,
  • getContextEntityIdentifier,
  • isOpen,
  • bestGuessEntityName,
  • getFlushMode,
  • getSessionFactory,
  • guessEntityName,
  • immediateLoad,
  • initializeCollection

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Notification (javax.management)
  • JCheckBox (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now