Package org.apache.juddi.datatype

Examples of org.apache.juddi.datatype.KeyedReference


          Vector keyedRefVector = categoryBag.getKeyedReferenceVector();
          if (keyedRefVector != null)
          {
            for (int i=0; i<keyedRefVector.size(); i++)
            {
              KeyedReference keyedRef = (KeyedReference)keyedRefVector.elementAt(i);
              keyVector = FindTModelByCategoryQuery.select(keyedRef,keyVector,findQualifiers,connection);
            }
          }
        }
      }
View Full Code Here


          Vector keyedRefVector = categoryBag.getKeyedReferenceVector();
          if (keyedRefVector != null)
          {
            for (int i=0; i<keyedRefVector.size(); i++)
            {
              KeyedReference keyedRef = (KeyedReference)keyedRefVector.elementAt(i);
              keyVector = FindBindingByCategoryQuery.select(serviceKey,keyedRef,keyVector,findQualifiers,connection);
            }
          }
        }
      }
View Full Code Here

            // a passed keyedReference, a match occurs if and only
            // if 1) the tModelKeys refer to the same tModel and 2)
            // the keyValues are identical. The keyNames are not
            // significant. - UDDI Programmers API v2.04, Pgs 18, 19
            //
            KeyedReference keyedRef = (KeyedReference)keyedRefVector.elementAt(i);
           
            String key = keyedRef.getTModelKey();
            if (key == null)
              key = "";
           
            String value = keyedRef.getKeyValue();
            if (value == null)
              value = "";
 
            sql.append("(I.TMODEL_KEY_REF = ? AND I.KEY_VALUE = ?)");
            sql.addValue(key);
View Full Code Here

        {
          sql.append("AND (");

          for (int i=0; i<vectorSize; i++)
          {
            KeyedReference keyedRef = (KeyedReference)keyedRefVector.elementAt(i);
            String key = keyedRef.getTModelKey();
            String name = keyedRef.getKeyName();
            String value = keyedRef.getKeyValue();
           
            if (name == null)
              name = "";
           
            if (value == null)
View Full Code Here

      statement.setString(1, tModelKey.toString());

      int listSize = keyRefs.size();
      for (int identifierID = 0; identifierID < listSize; identifierID++)
      {
        KeyedReference keyRef =
          (KeyedReference) keyRefs.elementAt(identifierID);

        // extract values to insert
        String tModelKeyValue = null;
        if (keyRef.getTModelKey() != null)
          tModelKeyValue = keyRef.getTModelKey().toString();

        // set the values
        statement.setInt(2, identifierID);
        statement.setString(3, tModelKeyValue);
        statement.setString(4, keyRef.getKeyName());
        statement.setString(5, keyRef.getKeyValue());

        if (log.isDebugEnabled()) {
            log.debug(
              "insert into " + tablePrefix + "TMODEL_IDENTIFIER table:\n\n\t"
                + insertSQL
                + "\n\t BUSINESS_KEY="
                + tModelKey.toString()
                + "\n\t IDENTIFIER_ID="
                + identifierID
                + "\n\t TMODEL_KEY_REF="
                + tModelKeyValue
                + "\n\t KEY_NAME="
                + keyRef.getKeyName()
                + "\n\t KEY_VALUE="
                + keyRef.getKeyValue()
                + "\n");
        }

        // insert!
        statement.executeUpdate();
View Full Code Here

      // execute the statement
      resultSet = statement.executeQuery();
      while (resultSet.next())
      {
        KeyedReference keyRef = new KeyedReference();
        keyRef.setTModelKey(resultSet.getString(1));//("TMODEL_KEY_REF"));
        keyRef.setKeyName(resultSet.getString(2));//("KEY_NAME"));
        keyRef.setKeyValue(resultSet.getString(3));//("KEY_VALUE"));
        keyRefList.add(keyRef);
      }

      return keyRefList;
    }
View Full Code Here

    PreparedStatement statement = null;
    ResultSet resultSet = null;

    try
    {
      KeyedReference keyedRefIn = assertionIn.getKeyedReference();

      statement = connection.prepareStatement(selectSQL);
      statement.setString(1, assertionIn.getFromKey());
      statement.setString(2, assertionIn.getToKey());
      statement.setString(3, keyedRefIn.getTModelKey());
      statement.setString(4, keyedRefIn.getKeyName());
      statement.setString(5, keyedRefIn.getKeyValue());

      if (log.isDebugEnabled()) {
          log.debug(
            "select from " + tablePrefix + "PUBLISHER_ASSERTION table:\n\n\t"
              + selectSQL
              + "\n\t FROM_KEY="
              + assertionIn.getFromKey()
              + "\n\t TO_KEY="
              + assertionIn.getToKey()
              + "\n\t TMODEL_KEY="
              + keyedRefIn.getTModelKey()
              + "\n\t KEY_NAME="
              + keyedRefIn.getKeyName()
              + "\n\t KEY_VALUE="
              + keyedRefIn.getKeyValue()
              + "\n");
      }

      resultSet = statement.executeQuery();
      if (resultSet.next())
      {
        KeyedReference keyedRefOut = new KeyedReference();
        keyedRefOut.setKeyName(resultSet.getString(4)); //("KEY_NAME"));
        keyedRefOut.setKeyValue(resultSet.getString(5)); //("KEY_VALUE"));
        keyedRefOut.setTModelKey(resultSet.getString(3)); //("TMODEL_KEY"));

        assertionOut = new PublisherAssertion();
        assertionOut.setFromKey(resultSet.getString(1)); //("FROM_KEY"));
        assertionOut.setToKey(resultSet.getString(2)); //("TO_KEY"));
        assertionOut.setKeyedReference(keyedRefOut);
View Full Code Here

    PublisherAssertion assertion,
    boolean fromCheck,
    Connection connection)
    throws java.sql.SQLException
  {
    KeyedReference keyedRef = assertion.getKeyedReference();
    PreparedStatement statement = null;
    ResultSet resultSet = null;

    try
    {
      if (log.isDebugEnabled()) {
          log.debug(
            "update " + tablePrefix + "PUBLISHER_ASSERTION table:\n\n\t"
              + updateFromCheckSQL
              + "\n\t FROM_CHECK="
              + String.valueOf(fromCheck)
              + "\n\t FROM_KEY="
              + assertion.getFromKey()
              + "\n\t TO_KEY="
              + assertion.getToKey()
              + "\n\t TMODEL_KEY="
              + keyedRef.getTModelKey()
              + "\n\t KEY_NAME="
              + keyedRef.getKeyName()
              + "\n\t KEY_VALUE="
              + keyedRef.getKeyValue()
              + "\n");
      }

      // create a statement to query with
      statement = connection.prepareStatement(updateFromCheckSQL);
      statement.setString(1, String.valueOf(fromCheck));
      statement.setString(2, assertion.getFromKey());
      statement.setString(3, assertion.getToKey());
      statement.setString(4, keyedRef.getTModelKey());
      statement.setString(5, keyedRef.getKeyName());
      statement.setString(6, keyedRef.getKeyValue());

      // execute
      statement.executeUpdate();
    }
    catch (java.sql.SQLException sqlex)
View Full Code Here

    PublisherAssertion assertion,
    boolean toCheck,
    Connection connection)
    throws java.sql.SQLException
  {
    KeyedReference keyedRef = assertion.getKeyedReference();
    PreparedStatement statement = null;
    ResultSet resultSet = null;

    try
    {
      if (log.isDebugEnabled()) {
          log.debug(
            "update " + tablePrefix + "PUBLISHER_ASSERTION table:\n\n\t"
              + updateToCheckSQL
              + "\n\t TO_CHECK="
              + String.valueOf(toCheck)
              + "\n\t FROM_KEY="
              + assertion.getFromKey()
              + "\n\t TO_KEY="
              + assertion.getToKey()
              + "\n\t TMODEL_KEY="
              + keyedRef.getTModelKey()
              + "\n\t KEY_NAME="
              + keyedRef.getKeyName()
              + "\n\t KEY_VALUE="
              + keyedRef.getKeyValue()
              + "\n");
      }

      // create a statement to query with
      statement = connection.prepareStatement(updateToCheckSQL);
      statement.setString(1, String.valueOf(toCheck));
      statement.setString(2, assertion.getFromKey());
      statement.setString(3, assertion.getToKey());
      statement.setString(4, keyedRef.getTModelKey());
      statement.setString(5, keyedRef.getKeyName());
      statement.setString(6, keyedRef.getKeyValue());

      // execute
      statement.executeUpdate();
    }
    catch (java.sql.SQLException sqlex)
View Full Code Here

        AssertionStatusItem item = new AssertionStatusItem();
        item.setFromKey(resultSet.getString(1)); //("FROM_KEY"));
        item.setToKey(resultSet.getString(2)); //("TO_KEY"));

        // construct and set the KeyedReference instance
        KeyedReference keyedRef = new KeyedReference();
        keyedRef.setTModelKey(resultSet.getString(3)); //("TMODEL_KEY"));
        keyedRef.setKeyName(resultSet.getString(4)); //("KEY_NAME"));
        keyedRef.setKeyValue(resultSet.getString(5)); //("KEY_VALUE"));
        item.setKeyedReference(keyedRef);

        // construct and set the KeysOwned instance
        KeysOwned keysOwned = new KeysOwned();
        keysOwned.setFromKey(item.getFromKey());
View Full Code Here

TOP

Related Classes of org.apache.juddi.datatype.KeyedReference

Copyright © 2018 www.massapicom. 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.