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

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

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

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

Javadoc

This method is called by reestablishConnection. Nothing needs to be done in case customize is not active (customization hasn't been applied yet). to repair existing customizer after connection became invalid. However if connection has been customized then if connection is still there and deemed to be valid - clear customization. Otherwise (or if clear fails) remove customizer and set its prevCustomizer as a new customizer, then re-create customizer using the same session as the original one.

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
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Option (scala)
  • Top plugins for WebStorm
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