Package java.util

Examples of java.util.Hashtable.clone()


        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

    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

      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

    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 = 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 = MDC.getContext();
      if(t != null) {
  mdcCopy = (Hashtable) t.clone();
      }
    }
  }

  public
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

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.