Package java.util

Examples of java.util.Vector.firstElement()


        dl.setSqlQuery("select ModuleID from module where name='entity'");
        vec = (Vector)dl.executeQuery();

        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
View Full Code Here


        dl.executeQuery();
        vec = (Vector)dl.executeQuery();

        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
View Full Code Here

        dl.setSqlQuery("select ModuleID from module where name='Group'");
        vec = (Vector)dl.executeQuery();

        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
View Full Code Here

        dl.setSqlQuery("select ModuleID from module where name='entity'");
        vec = (Vector)dl.executeQuery();

        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
View Full Code Here

        dl.executeQuery();
        vec = (Vector)dl.executeQuery();

        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
View Full Code Here

      {
        dl.setSqlQuery("select ModuleID from module where name='Group'");
        vec = (Vector)dl.executeQuery();
        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
View Full Code Here

        int entityModuleId = 14; // default to 14 as it is currently true.
        cvdal.setSqlQuery("SELECT moduleId FROM module WHERE name='entity'");
        Vector vec = (Vector)cvdal.executeQuery();
        if (vec != null)
        {
          HashMap result = (HashMap)vec.firstElement();
          entityModuleId =((Number)result.get("moduleId")).intValue();
        }
        // Now that we have that information we can do our update.
        cvdal.setSqlQueryToNull();
        // UPDATE projectlink SET recordId = ? WHERE recordId = ? AND recordTypeId = ?
View Full Code Here

        int IndividualModuleId = 15; // default to 15 as it is currently true.
        cvdal.setSqlQuery("SELECT moduleId FROM module WHERE name='Individual'");
        Vector vec = (Vector)cvdal.executeQuery();
        if (vec != null)
        {
          HashMap result = (HashMap)vec.firstElement();
          IndividualModuleId =((Number)result.get("moduleId")).intValue();
        }
        // Now that we have that information we can do our update.
        cvdal.setSqlQueryToNull();
        // UPDATE projectlink SET recordId = ? WHERE recordId = ? AND recordTypeId = ?
View Full Code Here

            SubscriptionInfo subs = null;
            if (sessionInfo.getConnectQos().duplicateUpdates() == false) {
               Vector vec =  clientSubscriptions.getSubscriptionByOid(sessionInfo, xmlKeyExact.getOid(), true);
               if (vec != null) {
                  if (vec.size() > 0) {
                     subs = (SubscriptionInfo)vec.firstElement();
                     if (log.isLoggable(Level.FINE)) log.fine("Session '" + sessionInfo.getId() +
                                    "', topic '" + xmlKeyExact.getOid() + "' is subscribed " +
                                    vec.size() + " times with duplicateUpdates==false");
                  }
                  if (vec.size() > 1)
View Full Code Here

    private int nextContractChar(int ch)
    {
        // First get the ordering of this single character,
        // which is always the first element in the list
        Vector list = ordering.getContractValues(ch);
        EntryPair pair = (EntryPair)list.firstElement();
        int order = pair.value;

        // find out the length of the longest contracting character sequence in the list.
        // There's logic in the builder code to make sure the longest sequence is always
        // the last.
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.