Package java.util

Examples of java.util.HashMap.clear()


            String string = (String) items.get(key);
            attributes.put(TAG_VALUE, string == null ? "" : string); //$NON-NLS-1$
            out.printTag(TAG_ITEM, attributes, true);
        }

        attributes.clear();
        for (Iterator i = arrayItems.keySet().iterator(); i.hasNext();) {
            String key = (String) i.next();
            attributes.put(TAG_KEY, key == null ? "" : key); //$NON-NLS-1$
            out.startTag(TAG_LIST, attributes);
            String[] value = (String[]) arrayItems.get(key);
View Full Code Here


        for (Iterator i = arrayItems.keySet().iterator(); i.hasNext();) {
            String key = (String) i.next();
            attributes.put(TAG_KEY, key == null ? "" : key); //$NON-NLS-1$
            out.startTag(TAG_LIST, attributes);
            String[] value = (String[]) arrayItems.get(key);
            attributes.clear();
            if (value != null) {
                for (int index = 0; index < value.length; index++) {
                    String string = value[index];
                    attributes.put(TAG_VALUE, string == null ? "" : string); //$NON-NLS-1$
                    out.printTag(TAG_ITEM, attributes, true);
View Full Code Here

                    attributes.put(TAG_VALUE, string == null ? "" : string); //$NON-NLS-1$
                    out.printTag(TAG_ITEM, attributes, true);
                }
            }
            out.endTag(TAG_LIST);
            attributes.clear();
        }
        for (Iterator i = sections.values().iterator(); i.hasNext();) {
            ((DialogSettings) i.next()).save(out);
        }
        out.endTag(TAG_SECTION);
View Full Code Here

    assertNull("Hibernate session should be closed", first.getSession());
    assertNull("no current session", JbpmSession.getCurrentJbpmSession());

    //assertFalse("Session not closed in synchronization", first.getSession().isOpen());
   
    sessionMap.clear();
  }

  public void testReleaseOutsideTransaction() {
    log.info("ReleaseOutsideTransaction");
    JbpmSession jbpmSession = JbpmSessionFactoryUtils.getSession(this.jbpmSessionFactory);
View Full Code Here

    public void clear() {

        if (fast) {
            synchronized (this) {
                HashMap temp = (HashMap) map.clone();
                temp.clear();
                map = temp;
            }
        } else {
            synchronized (map) {
                map.clear();
View Full Code Here

        final String cat = catalog;
        return new ResultSetIterator(statement.executeQuery(), getSQLExceptionConverter()) {
         
          Map element = new HashMap();
          protected Object convertRow(ResultSet tableRs) throws SQLException {
            element.clear();
            element.put("TABLE_NAME", tableRs.getString("NAME"));
            element.put("TABLE_SCHEM", sc);
            element.put("TABLE_CAT", cat);
           
            String string = tableRs.getString("AUTO_INCREMENT");
View Full Code Here

        Map element = new HashMap();

       
        protected Object convertRow(ResultSet tableResultSet)
            throws SQLException {
          element.clear();
          element.put("TABLE_NAME", tableResultSet.getString(1));
          element.put("TABLE_SCHEM", tableResultSet.getString(2));
          element.put("TABLE_CAT", null);
          element.put("TABLE_TYPE", tableResultSet.getString(4));
          element.put("REMARKS", tableResultSet.getString(3));
View Full Code Here

            boolean isAutoIncrement = false;
           
            PreparedStatement statement = null;
            try {
              statement = getConnection().prepareStatement( sql );
              element.clear();
              element.put("TABLE_NAME", table);
              element.put("TABLE_SCHEM", sc);
              element.put("TABLE_CAT", null);           

              ResultSet rs = statement.executeQuery();
View Full Code Here

        final String cat = catalog;
        return new ResultSetIterator(statement.executeQuery(), getSQLExceptionConverter()) {
         
          Map element = new HashMap();
          protected Object convertRow(ResultSet tableRs) throws SQLException {
            element.clear();
            element.put("TABLE_NAME", tableRs.getString("table_name"));
            element.put("TABLE_SCHEM", sc);
            element.put("TABLE_CAT", cat);
           
            String string = tableRs.getString("data_type");
View Full Code Here

        Map element = new HashMap();

       
        protected Object convertRow(ResultSet rs) throws SQLException {
          element.clear();
          element.put("COLUMN_NAME", rs.getString(1));
          element.put("TYPE", new Short((short) 1)); // CLUSTERED
                                // INDEX
          element.put("NON_UNIQUE", Boolean.valueOf(rs.getString(2)));
          element.put("TABLE_SCHEM", rs.getString(3));
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.