Tabnine Logo
AttributeRestoringConnectionInvocationHandler.setTransactionIsolation
Code IndexAdd Tabnine to your IDE (free)

How to use
setTransactionIsolation
method
in
org.quartz.impl.jdbcjobstore.AttributeRestoringConnectionInvocationHandler

Best Java code snippets using org.quartz.impl.jdbcjobstore.AttributeRestoringConnectionInvocationHandler.setTransactionIsolation (Showing top 4 results out of 315)

origin: quartz-scheduler/quartz

public Object invoke(Object proxy, Method method, Object[] args)
  throws Throwable {
  if (method.getName().equals("setAutoCommit")) {
    setAutoCommit(((Boolean)args[0]).booleanValue());
  } else if (method.getName().equals("setTransactionIsolation")) {
    setTransactionIsolation(((Integer)args[0]).intValue());
  } else if (method.getName().equals("close")) {
    close();
  } else {
    try {
      return method.invoke(conn, args);
    }
    catch(InvocationTargetException ite) {
      throw (ite.getCause() != null ? ite.getCause() : ite);
    }
    
  }
  
  return null;
}
 
origin: quartz-scheduler/quartz

public Object invoke(Object proxy, Method method, Object[] args)
  throws Throwable {
  if (method.getName().equals("setAutoCommit")) {
    setAutoCommit(((Boolean)args[0]).booleanValue());
  } else if (method.getName().equals("setTransactionIsolation")) {
    setTransactionIsolation(((Integer)args[0]).intValue());
  } else if (method.getName().equals("close")) {
    close();
  } else {
    try {
      return method.invoke(conn, args);
    }
    catch(InvocationTargetException ite) {
      throw (ite.getCause() != null ? ite.getCause() : ite);
    }
    
  }
  
  return null;
}
 
origin: quartz/quartz-all

public Object invoke(Object proxy, Method method, Object[] args)
  throws Throwable {
  if (method.getName().equals("setAutoCommit")) {
    setAutoCommit(((Boolean)args[0]).booleanValue());
  } else if (method.getName().equals("setTransactionIsolation")) {
    setTransactionIsolation(((Integer)args[0]).intValue());
  } else if (method.getName().equals("close")) {
    close();
  } else {
    return method.invoke(conn, args);
  }
  
  return null;
}
 
origin: com.opensymphony.quartz/com.springsource.org.quartz

public Object invoke(Object proxy, Method method, Object[] args)
  throws Throwable {
  if (method.getName().equals("setAutoCommit")) {
    setAutoCommit(((Boolean)args[0]).booleanValue());
  } else if (method.getName().equals("setTransactionIsolation")) {
    setTransactionIsolation(((Integer)args[0]).intValue());
  } else if (method.getName().equals("close")) {
    close();
  } else {
    return method.invoke(conn, args);
  }
  
  return null;
}
 
org.quartz.impl.jdbcjobstoreAttributeRestoringConnectionInvocationHandlersetTransactionIsolation

Javadoc

Attempts to change the transaction isolation level to the given level, saving the original level. The connection's original transaction isolation level is restored when the connection is closed.

Popular methods of AttributeRestoringConnectionInvocationHandler

  • <init>
  • close
    Attempts to restore the auto commit and transaction isolation connection attributes of the wrapped c
  • getLog
  • getWrappedConnection
    Gets the underlying connection to which all operations ultimately defer. This is provided in case a
  • restoreOriginalAtributes
    Attempts to restore the auto commit and transaction isolation connection attributes of the wrapped c
  • setAutoCommit
    Sets this connection's auto-commit mode to the given state, saving the original mode. The connection

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JButton (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 12 Jupyter Notebook extensions
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