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

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

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

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

/**
 *    Begin a transaction on the database. If not using managed transaction begin a local transaction.
 */
public void beginTransaction(AbstractSession session) throws DatabaseException {
  if (usesExternalTransactionController()) {
    if (session.isExclusiveConnectionRequired() && !this.isInTransaction && this.usesExternalConnectionPooling) {
      closeConnection();
    }
    this.isInTransaction = true;
    return;
  }
  session.log(SessionLog.FINER, SessionLog.TRANSACTION, "begin_transaction", (Object[])null, this);
  try {
    session.startOperationProfile(SessionProfiler.TRANSACTION);
    incrementCallCount(session);
    basicBeginTransaction(session);
    this.isInTransaction = true;
  } finally {
    decrementCallCount();
    session.endOperationProfile(SessionProfiler.TRANSACTION);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 *    Begin a transaction on the database. If not using managed transaction begin a local transaction.
 */
public void beginTransaction(AbstractSession session) throws DatabaseException {
  if (usesExternalTransactionController()) {
    if (session.isExclusiveConnectionRequired() && !this.isInTransaction && this.usesExternalConnectionPooling) {
      closeConnection();
    }
    this.isInTransaction = true;
    return;
  }
  session.log(SessionLog.FINER, SessionLog.TRANSACTION, "begin_transaction", (Object[])null, this);
  try {
    session.startOperationProfile(SessionProfiler.Transaction);
    incrementCallCount(session);
    basicBeginTransaction(session);
    this.isInTransaction = true;
  } finally {
    decrementCallCount();
    session.endOperationProfile(SessionProfiler.Transaction);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 *    Begin a transaction on the database. If not using managed transaction begin a local transaction.
 */
public void beginTransaction(AbstractSession session) throws DatabaseException {
  if (usesExternalTransactionController()) {
    if (session.isExclusiveConnectionRequired() && !this.isInTransaction && this.usesExternalConnectionPooling) {
      closeConnection();
    }
    this.isInTransaction = true;
    return;
  }
  session.log(SessionLog.FINER, SessionLog.TRANSACTION, "begin_transaction", (Object[])null, this);
  try {
    session.startOperationProfile(SessionProfiler.Transaction);
    incrementCallCount(session);
    basicBeginTransaction(session);
    this.isInTransaction = true;
  } finally {
    decrementCallCount();
    session.endOperationProfile(SessionProfiler.Transaction);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  incrementCallCount(session);
  basicRollbackTransaction(session);
} finally {
origin: org.eclipse.persistence/org.eclipse.persistence.core

  incrementCallCount(session);
  basicRollbackTransaction(session);
} finally {
origin: com.haulmont.thirdparty/eclipselink

  incrementCallCount(session);
  basicRollbackTransaction(session);
} finally {
origin: com.haulmont.thirdparty/eclipselink

incrementCallCount(session);
basicCommitTransaction(session);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

incrementCallCount(session);
basicCommitTransaction(session);
origin: org.eclipse.persistence/org.eclipse.persistence.core

incrementCallCount(session);
basicCommitTransaction(session);
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  session.getEventManager().postConnect(this);
incrementCallCount(session);
try {
  buildConnectLog(session);
origin: org.eclipse.persistence/org.eclipse.persistence.core

  session.getEventManager().postConnect(this);
incrementCallCount(session);
try {
  buildConnectLog(session);
origin: com.haulmont.thirdparty/eclipselink

  session.getEventManager().postConnect(this);
incrementCallCount(session);
try {
  buildConnectLog(session);
org.eclipse.persistence.internal.databaseaccessDatasourceAccessorincrementCallCount

Javadoc

Used for load balancing and external pooling.

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,
  • isConnected

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 17 PhpStorm Plugins
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