Examples of Hashtable


Examples of java.util.Hashtable

  }
   
  /* return the mapping between PL/SQL and LOG4J log levels in a hash table */
  public Hashtable getLogLevels()
  {
    Hashtable htLevels = new Hashtable();
    Statement statement;
    String SQLQuery = "SELECT LJLEVEL, LCODE, nvl(LSYSLOGEQUIV,LLEVEL)  LSYSLOGEQUIV " +
                        "FROM TLOGLEVEL " +
                    "ORDER BY LLEVEL";
    ResultSet rs = null;
    Connection jdbc_conn = null;
         
    if (formatOK == false)
    {
      logger.log(Level.FATAL, "Connection parameters are not OK");   
    }
    else
   
      try{
        // connect to database
        Class.forName("oracle.jdbc.driver.OracleDriver");
        jdbc_conn = DriverManager.getConnection(JDBCurl, DbUser, DbPass);
         
        logger.debug( "JDBC Connection OK: " + jdbc_conn.toString());
         
        // get the PL/SQL and corresponding LOG4J log levels
        statement = jdbc_conn.createStatement();
        rs = statement.executeQuery(SQLQuery);
           
        if (rs != null)
        {
          while(rs.next())
          {
            Level l = new DynamicLevel (rs.getInt("LJLEVEL"),rs.getString("LCODE"),rs.getInt("LSYSLOGEQUIV"));
                Integer levelint = new Integer(rs.getInt("LSYSLOGEQUIV"));
             
                htLevels.put(levelint, l);
          }
        }
         
        // close the connection
        jdbc_conn.close();   
View Full Code Here

Examples of java.util.Hashtable

   
    return;
  }

  private static void createConsumers(A3CMLServer root) throws Exception {
    consumers = new Hashtable();

    // Creates the local MessageConsumer: the Engine.
    engine = Engine.newInstance();
    addConsumer("local", engine);
View Full Code Here

Examples of java.util.Hashtable

    public final Hashtable getLog() {
      return log;
    }
   
    Context() {
      log = new Hashtable(15);
      bos = new ByteArrayOutputStream(256);
    }
View Full Code Here

Examples of java.util.Hashtable

                Property prop = new Property(propName, currentNode);

                prop.setNodeHandle(handle);

                if (propMap == null) {
                    propMap = new Hashtable();
                    currentNode.setPropMap(propMap);
                }

                propMap.put(propName, prop);
            }
View Full Code Here

Examples of java.util.Hashtable

            } else {
                prop.setStringValue(charValue);
            }

            if (propMap == null) {
                propMap = new Hashtable();
                currentNode.setPropMap(propMap);
            }

            propMap.put(elementName, prop);
            elementName = null;
View Full Code Here

Examples of java.util.Hashtable

            return elem;
        }

        if (nodeMap == null) {
            nodeMap = new Hashtable();
        }

        if (nodes == null) {
            nodes = new Vector();
        }
View Full Code Here

Examples of java.util.Hashtable

    }

    // create a property if it doesn't exist for this name
    private TransientProperty initProperty(String propname) {
        if (propMap == null) {
            propMap = new Hashtable();
        }

        propname = propname.trim();
        TransientProperty prop = (TransientProperty) propMap.get(propname);
View Full Code Here

Examples of java.util.Hashtable

        Enumeration e = null;

        if (dbmode && node instanceof Node) {
            // a newly constructed db.Node doesn't have a propMap,
            // but returns an enumeration of all it's db-mapped properties
            Hashtable props = ((Node) node).getPropMap();

            if (props == null) {
                return;
            }

            e = props.keys();
        } else {
            e = node.properties();
        }

        while (e.hasMoreElements()) {
View Full Code Here

Examples of java.util.Hashtable

    String[] nameValue ;
   
    if ( str == null )
      return map ;
     
    result = ( map == null ? new Hashtable() : map ) ;
    elemSep = ( elementSeparator == null ) ? "," : elementSeparator ;
    kvSep = ( keyValueSeparator == null ) ? "=" : keyValueSeparator ;
   
    assignments = this.parts( str, elemSep ) ;
    for ( int i = 0 ; i < assignments.length ; i++ )
View Full Code Here

Examples of java.util.Hashtable

    // no BeanConnections -> see readPostProcess(Object)
    m_IgnoreBeanConnections = true;
   
    // reset BeanConnection-Relations
    m_BeanConnectionRelation = new Hashtable();
   
    return document;
  }
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.