All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sforce.soap.tooling.QueryResultColumnMetadata Maven / Gradle / Ivy

There is a newer version: 30.0.0
Show newest version
package com.sforce.soap.tooling;

/**
 * Generated by ComplexTypeCodeGenerator.java. Please do not edit.
 */
public class QueryResultColumnMetadata implements com.sforce.ws.bind.XMLizable {

    /**
     * Constructor
     */
    public QueryResultColumnMetadata() {}

    /**
     * element : apexType of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo apexType__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","apexType","http://www.w3.org/2001/XMLSchema","string",1,1,true);

    private boolean apexType__is_set = false;

    private java.lang.String apexType;

    public java.lang.String getApexType() {
      return apexType;
    }

    public void setApexType(java.lang.String apexType) {
      this.apexType = apexType;
      apexType__is_set = true;
    }

    /**
     * element : columnName of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo columnName__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","columnName","http://www.w3.org/2001/XMLSchema","string",1,1,true);

    private boolean columnName__is_set = false;

    private java.lang.String columnName;

    public java.lang.String getColumnName() {
      return columnName;
    }

    public void setColumnName(java.lang.String columnName) {
      this.columnName = columnName;
      columnName__is_set = true;
    }

    /**
     * element : custom of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private static final com.sforce.ws.bind.TypeInfo custom__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","custom","http://www.w3.org/2001/XMLSchema","boolean",1,1,true);

    private boolean custom__is_set = false;

    private boolean custom;

    public boolean getCustom() {
      return custom;
    }

    public boolean isCustom() {
      return custom;
    }

    public void setCustom(boolean custom) {
      this.custom = custom;
      custom__is_set = true;
    }

    /**
     * element : displayName of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo displayName__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","displayName","http://www.w3.org/2001/XMLSchema","string",1,1,true);

    private boolean displayName__is_set = false;

    private java.lang.String displayName;

    public java.lang.String getDisplayName() {
      return displayName;
    }

    public void setDisplayName(java.lang.String displayName) {
      this.displayName = displayName;
      displayName__is_set = true;
    }

    /**
     * element : foreignKeyName of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo foreignKeyName__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","foreignKeyName","http://www.w3.org/2001/XMLSchema","string",1,1,true);

    private boolean foreignKeyName__is_set = false;

    private java.lang.String foreignKeyName;

    public java.lang.String getForeignKeyName() {
      return foreignKeyName;
    }

    public void setForeignKeyName(java.lang.String foreignKeyName) {
      this.foreignKeyName = foreignKeyName;
      foreignKeyName__is_set = true;
    }

    /**
     */
    @Override
    public void write(javax.xml.namespace.QName __element,
        com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
        throws java.io.IOException {
      __out.writeStartTag(__element.getNamespaceURI(), __element.getLocalPart());
      writeFields(__out, __typeMapper);
      __out.writeEndTag(__element.getNamespaceURI(), __element.getLocalPart());
    }

    protected void writeFields(com.sforce.ws.parser.XmlOutputStream __out,
         com.sforce.ws.bind.TypeMapper __typeMapper)
         throws java.io.IOException {
       __typeMapper.writeString(__out, apexType__typeInfo, apexType, apexType__is_set);
       __typeMapper.writeString(__out, columnName__typeInfo, columnName, columnName__is_set);
       __typeMapper.writeBoolean(__out, custom__typeInfo, custom, custom__is_set);
       __typeMapper.writeString(__out, displayName__typeInfo, displayName, displayName__is_set);
       __typeMapper.writeString(__out, foreignKeyName__typeInfo, foreignKeyName, foreignKeyName__is_set);
    }

    @Override
    public void load(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __typeMapper.consumeStartTag(__in);
      loadFields(__in, __typeMapper);
      __typeMapper.consumeEndTag(__in);
    }

    protected void loadFields(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
        __in.peekTag();
        if (__typeMapper.verifyElement(__in, apexType__typeInfo)) {
            setApexType(__typeMapper.readString(__in, apexType__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.verifyElement(__in, columnName__typeInfo)) {
            setColumnName(__typeMapper.readString(__in, columnName__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.verifyElement(__in, custom__typeInfo)) {
            setCustom(__typeMapper.readBoolean(__in, custom__typeInfo, boolean.class));
        }
        __in.peekTag();
        if (__typeMapper.verifyElement(__in, displayName__typeInfo)) {
            setDisplayName(__typeMapper.readString(__in, displayName__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.verifyElement(__in, foreignKeyName__typeInfo)) {
            setForeignKeyName(__typeMapper.readString(__in, foreignKeyName__typeInfo, java.lang.String.class));
        }
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[QueryResultColumnMetadata ");
      sb.append(" apexType=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(apexType)+"'\n");
      sb.append(" columnName=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(columnName)+"'\n");
      sb.append(" custom=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(custom)+"'\n");
      sb.append(" displayName=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(displayName)+"'\n");
      sb.append(" foreignKeyName=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(foreignKeyName)+"'\n");
      sb.append("]\n");
      return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy