Tabnine Logo
SessionImplementor.getJdbcConnectionAccess
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: hibernate/hibernate-orm

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

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

@Override
public JdbcConnectionAccess getJdbcConnectionAccess() {
  return delegate.getJdbcConnectionAccess();
}
origin: stackoverflow.com

Session session = entityManager.unwrap(Session.class);
SessionImplementor sessionImplementor = (SessionImplementor) session;
Connection conn = sessionImplementor.getJdbcConnectionAccess().obtainConnection();
origin: riotfamily/riot

@Override
public JdbcConnectionAccess getJdbcConnectionAccess() {
  return session.getJdbcConnectionAccess();
}
origin: stackoverflow.com

 SessionImplementor sessionImplementor = (SessionImplementor) sessionFactory.getCurrentSession();
Connection conn = sessionImplementor.getJdbcConnectionAccess().obtainConnection();
origin: com.atlassian.hibernate/hibernate.adapter

@Override
public JdbcConnectionAccess getJdbcConnectionAccess() {
  return getSessionImplementor().getJdbcConnectionAccess();
}
origin: stackoverflow.com

 SessionFactory factory = HibernateUtil.getSessionFactory();
Session session = factory.openSession();
SessionImplementor sessImpl = (SessionImplementor) session;
Connection conn = null;
conn = sessImpl.getJdbcConnectionAccess().obtainConnection();
CopyManager copyManager = new CopyManager((BaseConnection) conn);
File tf =File.createTempFile("temp-file", "tmp"); 
String tempPath =tf.getParent();
File tempFile = new File(tempPath + File.separator + filename);
FileReader fileReader = new FileReader(tempFile);
copyManager.copyIn("copy testdata (col1, col2, col3) from  STDIN with csv", fileReader );
org.hibernate.engine.spiSessionImplementorgetJdbcConnectionAccess

Javadoc

Provides access to JDBC connections

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