congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DatasourceAccessor.reconnect
Code IndexAdd Tabnine to your IDE (free)

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

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

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
 * Added for bug 3046465 to ensure the statement cache is cleared
 */
@Override
protected void reconnect(AbstractSession session) {
  clearStatementCache(session);
  super.reconnect(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
 * Added for bug 3046465 to ensure the statement cache is cleared
 */
protected void reconnect(AbstractSession session) {
  clearStatementCache(session);
  super.reconnect(session);
}
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
 * Added for bug 3046465 to ensure the statement cache is cleared
 */
protected void reconnect(AbstractSession session) {
  clearStatementCache(session);
  super.reconnect(session);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  throw DatabaseException.databaseAccessorNotConnected();
} else {
  reconnect(session);
reconnect(session);
session.postAcquireConnection(this);
currentSession = session;
origin: com.haulmont.thirdparty/eclipselink

  throw DatabaseException.databaseAccessorNotConnected();
} else {
  reconnect(session);
reconnect(session);
session.postAcquireConnection(this);
currentSession = session;
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  throw DatabaseException.databaseAccessorNotConnected();
} else {
  reconnect(session);
reconnect(session);
session.postConnectExternalConnection(this);
currentSession = session;
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Reconnect to the database.  This can be used if the connection was disconnected or timedout.
 * This ensures that the security is checked as it is public.
 * Because the messages can take a long time to build,
 * pre-check whether messages should be logged.
 */
public void reestablishConnection(AbstractSession session) throws DatabaseException {
  if (session.shouldLog(SessionLog.CONFIG, SessionLog.CONNECTION)) {// Avoid printing if no logging required.		
    Object[] args = { getLogin() };
    session.log(SessionLog.CONFIG, SessionLog.CONNECTION, "reconnecting", args, this);
  }
  reestablishCustomizer();
  reconnect(session);
  this.isInTransaction = false;
  this.isValid = true;
  if (session.hasEventManager()) {
    session.getEventManager().postConnect(this);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Reconnect to the database.  This can be used if the connection was disconnected or timedout.
 * This ensures that the security is checked as it is public.
 * Because the messages can take a long time to build,
 * pre-check whether messages should be logged.
 */
public void reestablishConnection(AbstractSession session) throws DatabaseException {
  if (session.shouldLog(SessionLog.CONFIG, SessionLog.CONNECTION)) {// Avoid printing if no logging required.
    Object[] args = { getLogin() };
    session.log(SessionLog.CONFIG, SessionLog.CONNECTION, "reconnecting", args, this);
  }
  reestablishCustomizer();
  reconnect(session);
  this.isInTransaction = false;
  this.isValid = true;
  if (session.hasEventManager()) {
    session.getEventManager().postConnect(this);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Reconnect to the database.  This can be used if the connection was disconnected or timedout.
 * This ensures that the security is checked as it is public.
 * Because the messages can take a long time to build,
 * pre-check whether messages should be logged.
 */
public void reestablishConnection(AbstractSession session) throws DatabaseException {
  if (session.shouldLog(SessionLog.CONFIG, SessionLog.CONNECTION)) {// Avoid printing if no logging required.		
    Object[] args = { getLogin() };
    session.log(SessionLog.CONFIG, SessionLog.CONNECTION, "reconnecting", args, this);
  }
  reestablishCustomizer();
  reconnect(session);
  this.isInTransaction = false;
  this.isValid = true;
  if (session.hasEventManager()) {
    session.getEventManager().postConnect(this);
  }
}
org.eclipse.persistence.internal.databaseaccessDatasourceAccessorreconnect

Javadoc

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

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.
  • connectInternal
    Connect to the database. Exceptions are caught and re-thrown as EclipseLink exceptions.
  • createCustomizer
    Attempts to create ConnectionCustomizer. If created the customizer is cached by the accessor. Called
  • decrementCallCount
    Used for load balancing and external pooling.
  • createCustomizer,
  • decrementCallCount,
  • disconnect,
  • getDatasourceConnection,
  • getLogin,
  • getReadStatementsCount,
  • getStoredProcedureStatementsCount,
  • getWriteStatementsCount,
  • incrementCallCount,
  • isConnected

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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