Tabnine Logo
DatasourceAccessor.connectInternal
Code IndexAdd Tabnine to your IDE (free)

How to use
connectInternal
method
in
org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor

Best Java code snippets using org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal (Showing top 9 results out of 315)

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Connect to the database.
 * Exceptions are caught and re-thrown as EclipseLink exceptions.
 * Must set the transaction isolation.
 */
protected void connectInternal(Login login, AbstractSession session) throws DatabaseException {
  super.connectInternal(login, session);
  checkTransactionIsolation(session);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Attempt to save some of the cost associated with getting a fresh connection.
 * Assume the DatabaseDriver has been cached, if appropriate.
 * Note: Connections that are participating in transactions will not be refreshed.^M
 */
protected void reconnect(AbstractSession session) throws DatabaseException {
  session.log(SessionLog.FINEST, SessionLog.CONNECTION, "reconnecting_to_external_connection_pool");
  session.startOperationProfile(SessionProfiler.CONNECT);
  connectInternal(this.login, session);
  session.endOperationProfile(SessionProfiler.CONNECT);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Attempt to save some of the cost associated with getting a fresh connection.
 * Assume the DatabaseDriver has been cached, if appropriate.
 * Note: Connections that are participating in transactions will not be refreshed.^M
 */
protected void reconnect(AbstractSession session) throws DatabaseException {
  session.log(SessionLog.FINEST, SessionLog.CONNECTION, "reconnecting_to_external_connection_pool");
  session.startOperationProfile(SessionProfiler.ConnectionManagement);
  try {
    connectInternal(this.login, session);
  } finally {
    session.endOperationProfile(SessionProfiler.ConnectionManagement);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Attempt to save some of the cost associated with getting a fresh connection.
 * Assume the DatabaseDriver has been cached, if appropriate.
 * Note: Connections that are participating in transactions will not be refreshed.^M
 */
protected void reconnect(AbstractSession session) throws DatabaseException {
  session.log(SessionLog.FINEST, SessionLog.CONNECTION, "reconnecting_to_external_connection_pool");
  session.startOperationProfile(SessionProfiler.ConnectionManagement);
  try {
    connectInternal(this.login, session);
  } finally {
    session.endOperationProfile(SessionProfiler.ConnectionManagement);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Connect to the database.
 * Exceptions are caught and re-thrown as EclipseLink exceptions.
 * Must set the transaction isolation.
 */
@Override
protected void connectInternal(Login login, AbstractSession session) throws DatabaseException {
  super.connectInternal(login, session);
  checkTransactionIsolation(session);
  try {
    session.getPlatform().initializeConnectionData(getConnection());
  } catch (java.sql.SQLException sqlEx) {
    DatabaseException commException = processExceptionForCommError(session, sqlEx, null);
    if (commException != null) throw commException;
    throw DatabaseException.sqlException(sqlEx, this, session, false);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Connect to the database.
 * Exceptions are caught and re-thrown as EclipseLink exceptions.
 * Must set the transaction isolation.
 */
@Override
protected void connectInternal(Login login, AbstractSession session) throws DatabaseException {
  super.connectInternal(login, session);
  checkTransactionIsolation(session);
  try {
    session.getPlatform().initializeConnectionData(getConnection());
  } catch (java.sql.SQLException sqlEx) {
    DatabaseException commException = processExceptionForCommError(session, sqlEx, null);
    if (commException != null) throw commException;
    throw DatabaseException.sqlException(sqlEx, this, session, false);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

createCustomizer(session);
try {
  connectInternal(login, session);
  this.isInTransaction = false;
} catch (RuntimeException exception) {
origin: com.haulmont.thirdparty/eclipselink

createCustomizer(session);
try {
  connectInternal(login, session);
  this.isInTransaction = false;
} catch (RuntimeException exception) {
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

createCustomizer(session);
try {
  connectInternal(login, session);
  this.isInTransaction = false;
} catch (RuntimeException exception) {
org.eclipse.persistence.internal.databaseaccessDatasourceAccessorconnectInternal

Javadoc

Connect to the database. Exceptions are caught and re-thrown as EclipseLink exceptions.

Popular methods of DatasourceAccessor

  • basicBeginTransaction
    Begin the driver level transaction.
  • basicCommitTransaction
    Commit the driver level transaction.
  • basicExecuteCall
    Execute the call to driver level datasource.
  • basicRollbackTransaction
    Rollback the driver level transaction.
  • buildConnectLog
    Build a log string of any driver metadata that can be obtained.
  • clone
    Clone the accessor.
  • closeConnection
    Close the accessor's connection. This is used only for external connection pooling when it is intend
  • closeDatasourceConnection
    Close the connection to the driver level datasource.
  • commitTransaction
    Commit a transaction on the database. If using non-managed transaction commit the local transaction.
  • createCustomizer
    Attempts to create ConnectionCustomizer. If created the customizer is cached by the accessor. Called
  • decrementCallCount
    Used for load balancing and external pooling.
  • disconnect
    Disconnect from the datasource.
  • decrementCallCount,
  • disconnect,
  • getDatasourceConnection,
  • getLogin,
  • getReadStatementsCount,
  • getStoredProcedureStatementsCount,
  • getWriteStatementsCount,
  • incrementCallCount,
  • isConnected

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • CodeWhisperer alternatives
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