Examples of firstElement()


Examples of java.util.Vector.firstElement()

        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

Examples of java.util.Vector.firstElement()

        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

Examples of java.util.Vector.firstElement()

            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

Examples of java.util.Vector.firstElement()

    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

Examples of java.util.Vector.firstElement()

        // are switched and so that we skip entry pairs with the fwd flag turned on
        // rather than off.  Notice that we still use append() and startsWith() when
        // working on the fragment.  This is because the entry pairs that are used
        // in reverse iteration have their names reversed already.
        Vector list = ordering.getContractValues(ch);
        EntryPair pair = (EntryPair)list.firstElement();
        int order = pair.value;

        pair = (EntryPair)list.lastElement();
        int maxLength = pair.entryName.length();
View Full Code Here

Examples of java.util.Vector.firstElement()

    private final int getCharOrder(int ch) {
        int order = mapping.elementAt(ch);

        if (order >= RBCollationTables.CONTRACTCHARINDEX) {
            Vector groupList = getContractValuesImpl(order - RBCollationTables.CONTRACTCHARINDEX);
            EntryPair pair = (EntryPair)groupList.firstElement();
            order = pair.value;
        }
        return order;
    }
View Full Code Here

Examples of java.util.Vector.firstElement()

                    error ("V-004", new Object [] { name });
                v.addElement (name);
            }
        }
        while (!v.isEmpty ()) {
            Object name = v.firstElement ();
            v.removeElement (name);
            notations.remove (name);
        }

        return true;
View Full Code Here

Examples of java.util.Vector.firstElement()

                lTable.repaint();
                trace("Select correct Catalog");
            } else {
                if (result.size() == 1) {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_CATALOG) {
                        sSourceCatalog = (String) result.firstElement();
                        sSourceSchemas = null;
                    } else {
                        sDestCatalog = (String) result.firstElement();
                        sDestSchema  = null;
                    }
View Full Code Here

Examples of java.util.Vector.firstElement()

                if (result.size() == 1) {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_CATALOG) {
                        sSourceCatalog = (String) result.firstElement();
                        sSourceSchemas = null;
                    } else {
                        sDestCatalog = (String) result.firstElement();
                        sDestSchema  = null;
                    }
                } else {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_CATALOG) {
                        sSourceCatalog = null;
View Full Code Here

Examples of java.util.Vector.firstElement()

                trace("Select correct Schema or load Settings file");
            } else {
                if (result.size() == 1) {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_SCHEMA) {
                        sSourceSchemas    = new String[1];
                        sSourceSchemas[0] = (String) result.firstElement();
                    } else {
                        sDestSchema = (String) result.firstElement();
                    }
                } else {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_SCHEMA) {
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.