Package nexj.core.util

Examples of nexj.core.util.Cancellable


    * @param cancellable The current cancellable object to set. Can be null.
    * @return The old cancellable object. Can be null.
    */
   public synchronized Cancellable setCancellable(Cancellable cancellable)
   {
      Cancellable old = m_cancellable;

      m_cancellable = cancellable;

      return old;
   }
View Full Code Here


    * Cancels any blocked processes.
    * @see Cancellable#cancel()
    */
   public void cancel()
   {
      Cancellable cancellable;

      synchronized (this)
      {
         cancellable = m_cancellable;
      }

      if (cancellable != null)
      {
         cancellable.cancel();
      }
   }
View Full Code Here

    * @param stmt The statement to execute.
    * @see PreparedStatement#executeQuery();
    */
   public ResultSet executeQuery(PreparedStatement stmt) throws SQLException
   {
      Cancellable cancellableSaved = null;

      try
      {
         synchronized (this)
         {
View Full Code Here

    * @return The affected record count.
    * @see PreparedStatement#executeUpdate();
    */
   public int executeUpdate(PreparedStatement stmt) throws SQLException
   {
      Cancellable cancellableSaved = null;

      try
      {
         synchronized (this)
         {
View Full Code Here

    * @return Affected record counts and status information.
    * @see Statement#executeBatch();
    */
   public int[] executeBatch(Statement stmt) throws SQLException
   {
      Cancellable cancellableSaved = null;

      try
      {
         synchronized (this)
         {
View Full Code Here

TOP

Related Classes of nexj.core.util.Cancellable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.