Examples of DBTypeAttribute


Examples of com.dci.intellij.dbn.object.DBTypeAttribute

    private void createArgumentValueNodes(ArgumentValuesTreeNode parentNode, List<ArgumentValue> inputArgumentValues) {
        Map<DBArgumentRef, ArgumentValuesTreeNode> nodeMap = new HashMap<DBArgumentRef, ArgumentValuesTreeNode>();
        for (ArgumentValue argumentValue : inputArgumentValues) {
            DBArgumentRef argumentRef = argumentValue.getArgumentRef();
            DBTypeAttribute attribute = argumentValue.getAttribute();

            if (attribute == null) {
                // single value
                new ArgumentValuesTreeNode(parentNode, argumentValue);
            } else {
View Full Code Here

Examples of com.dci.intellij.dbn.object.DBTypeAttribute

            }

            if (userValue instanceof ArgumentValue) {
                ArgumentValue argumentValue = (ArgumentValue) userValue;
                DBArgument argument = argumentValue.getArgument();
                DBTypeAttribute attribute = argumentValue.getAttribute();
                Object originalValue = argumentValue.getValue();
                String displayValue = originalValue instanceof ResultSet ? "" : "" + originalValue;

                if (attribute == null) {
                    setIcon(argument.getIcon());
                    append(argument.getName(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
                    append(" = ", SimpleTextAttributes.REGULAR_ATTRIBUTES);
                    DBDataType dataType = argument.getDataType();
                    if (dataType != null) {
                        append("{" + dataType.getName().toLowerCase() + "} " , SimpleTextAttributes.GRAY_ATTRIBUTES);
                    }

                    append(displayValue, SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES);
                } else {
                    setIcon(attribute.getIcon());
                    append(attribute.getName(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
                    append(" = ", SimpleTextAttributes.REGULAR_ATTRIBUTES);
                    DBDataType dataType = attribute.getDataType();
                    if (dataType != null) {
                        append("{" + dataType.getName() + "}" , SimpleTextAttributes.GRAY_ATTRIBUTES);
                    }
                    append(displayValue, SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES);
                }
View Full Code Here

Examples of com.dci.intellij.dbn.object.DBTypeAttribute

        return objectNavigationLists;
    }

    public int compareTo(@NotNull Object o) {
        if (o instanceof DBTypeAttribute) {
            DBTypeAttribute typeAttribute = (DBTypeAttribute) o;
            if (getType().equals(typeAttribute.getType())) {
                return getPosition() - typeAttribute.getPosition();
            }
        }
        return super.compareTo(o);
    }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.db.DbTypeAttribute

   * Receives the value of the ODFDOM attribute representation <code>DbTypeAttribute</code> , See {@odf.attribute db:type}
   *
   * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public String getDbTypeAttribute() {
    DbTypeAttribute attr = (DbTypeAttribute) getOdfAttribute(OdfDocumentNamespace.DB, "type");
    if (attr != null) {
      return String.valueOf(attr.getValue());
    }
    return null;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.db.DbTypeAttribute

   * Sets the value of ODFDOM attribute representation <code>DbTypeAttribute</code> , See {@odf.attribute db:type}
   *
   * @param dbTypeValue   The type is <code>String</code>
   */
  public void setDbTypeAttribute(String dbTypeValue) {
    DbTypeAttribute attr = new DbTypeAttribute((OdfFileDom) this.ownerDocument);
    setOdfAttribute(attr);
    attr.setValue(dbTypeValue);
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.db.DbTypeAttribute

   * Attribute is mandatory.
   *
   * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public String getDbTypeAttribute() {
    DbTypeAttribute attr = (DbTypeAttribute) getOdfAttribute(OdfDocumentNamespace.DB, "type");
    if (attr != null) {
      return String.valueOf(attr.getValue());
    }
    return null;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.db.DbTypeAttribute

   * Sets the value of ODFDOM attribute representation <code>DbTypeAttribute</code> , See {@odf.attribute db:type}
   *
   * @param dbTypeValue   The type is <code>String</code>
   */
  public void setDbTypeAttribute(String dbTypeValue) {
    DbTypeAttribute attr = new DbTypeAttribute((OdfFileDom) this.ownerDocument);
    setOdfAttribute(attr);
    attr.setValue(dbTypeValue);
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.db.DbTypeAttribute

   * Attribute is mandatory.
   *
   * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public String getDbTypeAttribute() {
    DbTypeAttribute attr = (DbTypeAttribute) getOdfAttribute(OdfDocumentNamespace.DB, "type");
    if (attr != null) {
      return String.valueOf(attr.getValue());
    }
    return null;
  }
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.attribute.db.DbTypeAttribute

   * Sets the value of ODFDOM attribute representation <code>DbTypeAttribute</code> , See {@odf.attribute db:type}
   *
   * @param dbTypeValue   The type is <code>String</code>
   */
  public void setDbTypeAttribute(String dbTypeValue) {
    DbTypeAttribute attr = new DbTypeAttribute((OdfFileDom) this.ownerDocument);
    setOdfAttribute(attr);
    attr.setValue(dbTypeValue);
  }
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.