Tabnine Logo
SessionImplementor.isConnected
Code IndexAdd Tabnine 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)

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 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 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

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • String (java.lang)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JLabel (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now