Package java.util

Examples of java.util.Hashtable.clone()


    String refTableName = refTd.getSchemaName() + "." + refTd.getName();
    //look for the other foreign key constraints on this table first
    int currentSelfRefValue = getCurrentDeleteConnections(dd, td, -1, deleteConnHashtable, false, true);
    validateDeleteConnection(dd, td, refTd,
                 refAction,
                 deleteConnHashtable, (Hashtable) deleteConnHashtable.clone(),
                 true, myConstraintName, false ,
                 new StringBuffer(0), refTableName,
                 isSelfReferencingFk,
                 currentSelfRefValue);
View Full Code Here


        } else {
            nc.items = new Hashtable();
            for (final Iterator i = items.keySet().iterator(); i.hasNext();) {
                final Object id = i.next();
                final Hashtable it = (Hashtable) items.get(id);
                nc.items.put(id, it.clone());
            }
        }

        return nc;
    }
View Full Code Here

      mdcCopyLookupRequired = false;
      // the clone call is required for asynchronous logging.
      // See also bug #5932.
      Hashtable t = (Hashtable) MDC.getContext();
      if(t != null) {
  mdcCopy = (Hashtable) t.clone();
      }
    }
  }

  public
View Full Code Here

      mdcCopyLookupRequired = false;
      // the clone call is required for asynchronous logging.
      // See also bug #5932.
      Hashtable t = (Hashtable) MDC.getContext();
      if(t != null) {
  mdcCopy = (Hashtable) t.clone();
      }
    }
  }

  public
View Full Code Here

      mdcCopyLookupRequired = false;
      // the clone call is required for asynchronous logging.
      // See also bug #5932.
      Hashtable t = (Hashtable) MDC.getContext();
      if(t != null) {
  mdcCopy = (Hashtable) t.clone();
      }
    }
  }

  public
View Full Code Here

final public class ThreadLocalMap extends InheritableThreadLocal {

  public final Object childValue(Object parentValue) {
    Hashtable ht = (Hashtable) parentValue;
    if(ht != null) {
      return ht.clone();
    } else {
      return null;
    }
  }
}
View Full Code Here

  Hashtable env = cpe.getEnvironment();
        if (env == null) {
            env = new Hashtable(7);
        } else {
            // Make a (shallow) copy of the environment.
            env = (Hashtable) env.clone();
        }
  env.put(CPE, cpe);

  ContinuationContext cctx = new ContinuationContext(cpe, env);
  return cctx.getTargetContext();
View Full Code Here

  Hashtable env = cpe.getEnvironment();
  if (env == null) {
      env = new Hashtable(7);
  } else {
      // Make a (shallow) copy of the environment.
       env = (Hashtable) env.clone();
  }
  env.put(CPE, cpe);

  return (new ContinuationDirContext(cpe, env));
    }
View Full Code Here

            lstnrs= (Hashtable) listeners.get ( state );
            if ( lstnrs == null )
                  return;
            //clone to avoid concurrency effects outside synch block
            //during iteration hereafter
            lstnrs = ( Hashtable ) lstnrs.clone();
        }

        //notify OUTSIDE SYNCH to minimize deadlocks
        Enumeration enumm=lstnrs.keys();
        while (enumm.hasMoreElements()) {
View Full Code Here

                return;

            //clone to avoid concurrency effects
            //during iteration outside synch block
            lstnrs = ( Hashtable ) lstnrs.clone();
            tolstnrs = ( Hashtable ) tolstnrs.clone();
        }

        //iterator outside synch to avoid deadlocks
        Enumeration enumm =  tolstnrs.keys();
        while ( enumm.hasMoreElements() ) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.