gt:     return (net.geoprism.dashboard.DashboardStateDTO) dto;
context: /**
   * Copyright (c) 2015 TerraFrame, Inc. All rights reserved.
   *
   * This file is part of Geoprism(tm).
   *
   * Geoprism(tm) is free software: you can redistribute it and/or modify
   * it under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation, either version 3 of the
   * License, or (at your option) any later version.
   *
   * Geoprism(tm) is distributed in the hope that it will be useful, but
   * WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU Lesser General Public License for more details.
   *
   * You should have received a copy of the GNU Lesser General Public
   * License along with Geoprism(tm).  If not, see <http://www.gnu.org/licenses/>.
   */
  package net.geoprism.dashboard;
  
  @com.runwaysdk.business.ClassSignature(hash = 2108991808)
  public abstract class DashboardStateDTOBase extends com.runwaysdk.business.BusinessDTO 
  {
    public final static String CLASS = "net.geoprism.dashboard.DashboardState";
    private static final long serialVersionUID = 2108991808;
    
    protected DashboardStateDTOBase(com.runwaysdk.constants.ClientRequestIF clientRequest)
    {
      super(clientRequest);
    }
    
    /**
    * Copy Constructor: Duplicates the values and attributes of the given BusinessDTO into a new DTO.
    * 
    * @param businessDTO The BusinessDTO to duplicate
    * @param clientRequest The clientRequest this DTO should use to communicate with the server.
    */
    protected DashboardStateDTOBase(com.runwaysdk.business.BusinessDTO businessDTO, com.runwaysdk.constants.ClientRequestIF clientRequest)
    {
      super(businessDTO, clientRequest);
    }
    
    protected java.lang.String getDeclaredType()
    {
      return CLASS;
    }
    
    public static java.lang.String CONDITIONS = "conditions";
    public static java.lang.String CREATEDATE = "createDate";
    public static java.lang.String CREATEDBY = "createdBy";
    public static java.lang.String DASHBOARD = "dashboard";
    public static java.lang.String ENTITYDOMAIN = "entityDomain";
    public static java.lang.String GEOPRISMUSER = "geoprismUser";
    public static java.lang.String OID = "oid";
    public static java.lang.String KEYNAME = "keyName";
    public static java.lang.String LASTUPDATEDATE = "lastUpdateDate";
    public static java.lang.String LASTUPDATEDBY = "lastUpdatedBy";
    public static java.lang.String LOCKEDBY = "lockedBy";
    public static java.lang.String MAPTHUMBNAIL = "mapThumbnail";
    public static java.lang.String OWNER = "owner";
    public static java.lang.String SEQ = "seq";
    public static java.lang.String SITEMASTER = "siteMaster";
    public static java.lang.String TYPE = "type";
    public String getConditions()
    {
      return getValue(CONDITIONS);
    }
    
    public void setConditions(String value)
    {
      if(value == null)
      {
        setValue(CONDITIONS, "");
      }
      else
      {
        setValue(CONDITIONS, value);
      }
    }
    
    public boolean isConditionsWritable()
    {
      return isWritable(CONDITIONS);
    }
    
    public boolean isConditionsReadable()
    {
      return isReadable(CONDITIONS);
    }
    
    public boolean isConditionsModified()
    {
      return isModified(CONDITIONS);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeTextMdDTO getConditionsMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeTextMdDTO) getAttributeDTO(CONDITIONS).getAttributeMdDTO();
    }
    
    public java.util.Date getCreateDate()
    {
      return com.runwaysdk.constants.MdAttributeDateTimeUtil.getTypeSafeValue(getValue(CREATEDATE));
    }
    
    public boolean isCreateDateWritable()
    {
      return isWritable(CREATEDATE);
    }
    
    public boolean isCreateDateReadable()
    {
      return isReadable(CREATEDATE);
    }
    
    public boolean isCreateDateModified()
    {
      return isModified(CREATEDATE);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeDateTimeMdDTO getCreateDateMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeDateTimeMdDTO) getAttributeDTO(CREATEDATE).getAttributeMdDTO();
    }
    
    public com.runwaysdk.system.SingleActorDTO getCreatedBy()
    {
      if(getValue(CREATEDBY) == null || getValue(CREATEDBY).trim().equals(""))
      {
        return null;
      }
      else
      {
        return com.runwaysdk.system.SingleActorDTO.get(getRequest(), getValue(CREATEDBY));
      }
    }
    
    public String getCreatedById()
    {
      return getValue(CREATEDBY);
    }
    
    public boolean isCreatedByWritable()
    {
      return isWritable(CREATEDBY);
    }
    
    public boolean isCreatedByReadable()
    {
      return isReadable(CREATEDBY);
    }
    
    public boolean isCreatedByModified()
    {
      return isModified(CREATEDBY);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeReferenceMdDTO getCreatedByMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeReferenceMdDTO) getAttributeDTO(CREATEDBY).getAttributeMdDTO();
    }
    
    public net.geoprism.dashboard.DashboardDTO getDashboard()
    {
      if(getValue(DASHBOARD) == null || getValue(DASHBOARD).trim().equals(""))
      {
        return null;
      }
      else
      {
        return net.geoprism.dashboard.DashboardDTO.get(getRequest(), getValue(DASHBOARD));
      }
    }
    
    public String getDashboardId()
    {
      return getValue(DASHBOARD);
    }
    
    public void setDashboard(net.geoprism.dashboard.DashboardDTO value)
    {
      if(value == null)
      {
        setValue(DASHBOARD, "");
      }
      else
      {
        setValue(DASHBOARD, value.getOid());
      }
    }
    
    public boolean isDashboardWritable()
    {
      return isWritable(DASHBOARD);
    }
    
    public boolean isDashboardReadable()
    {
      return isReadable(DASHBOARD);
    }
    
    public boolean isDashboardModified()
    {
      return isModified(DASHBOARD);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeReferenceMdDTO getDashboardMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeReferenceMdDTO) getAttributeDTO(DASHBOARD).getAttributeMdDTO();
    }
    
    public com.runwaysdk.system.metadata.MdDomainDTO getEntityDomain()
    {
      if(getValue(ENTITYDOMAIN) == null || getValue(ENTITYDOMAIN).trim().equals(""))
      {
        return null;
      }
      else
      {
        return com.runwaysdk.system.metadata.MdDomainDTO.get(getRequest(), getValue(ENTITYDOMAIN));
      }
    }
    
    public String getEntityDomainId()
    {
      return getValue(ENTITYDOMAIN);
    }
    
    public void setEntityDomain(com.runwaysdk.system.metadata.MdDomainDTO value)
    {
      if(value == null)
      {
        setValue(ENTITYDOMAIN, "");
      }
      else
      {
        setValue(ENTITYDOMAIN, value.getOid());
      }
    }
    
    public boolean isEntityDomainWritable()
    {
      return isWritable(ENTITYDOMAIN);
    }
    
    public boolean isEntityDomainReadable()
    {
      return isReadable(ENTITYDOMAIN);
    }
    
    public boolean isEntityDomainModified()
    {
      return isModified(ENTITYDOMAIN);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeReferenceMdDTO getEntityDomainMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeReferenceMdDTO) getAttributeDTO(ENTITYDOMAIN).getAttributeMdDTO();
    }
    
    public com.runwaysdk.system.SingleActorDTO getGeoprismUser()
    {
      if(getValue(GEOPRISMUSER) == null || getValue(GEOPRISMUSER).trim().equals(""))
      {
        return null;
      }
      else
      {
        return com.runwaysdk.system.SingleActorDTO.get(getRequest(), getValue(GEOPRISMUSER));
      }
    }
    
    public String getGeoprismUserId()
    {
      return getValue(GEOPRISMUSER);
    }
    
    public void setGeoprismUser(com.runwaysdk.system.SingleActorDTO value)
    {
      if(value == null)
      {
        setValue(GEOPRISMUSER, "");
      }
      else
      {
        setValue(GEOPRISMUSER, value.getOid());
      }
    }
    
    public boolean isGeoprismUserWritable()
    {
      return isWritable(GEOPRISMUSER);
    }
    
    public boolean isGeoprismUserReadable()
    {
      return isReadable(GEOPRISMUSER);
    }
    
    public boolean isGeoprismUserModified()
    {
      return isModified(GEOPRISMUSER);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeReferenceMdDTO getGeoprismUserMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeReferenceMdDTO) getAttributeDTO(GEOPRISMUSER).getAttributeMdDTO();
    }
    
    public String getKeyName()
    {
      return getValue(KEYNAME);
    }
    
    public void setKeyName(String value)
    {
      if(value == null)
      {
        setValue(KEYNAME, "");
      }
      else
      {
        setValue(KEYNAME, value);
      }
    }
    
    public boolean isKeyNameWritable()
    {
      return isWritable(KEYNAME);
    }
    
    public boolean isKeyNameReadable()
    {
      return isReadable(KEYNAME);
    }
    
    public boolean isKeyNameModified()
    {
      return isModified(KEYNAME);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeCharacterMdDTO getKeyNameMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeCharacterMdDTO) getAttributeDTO(KEYNAME).getAttributeMdDTO();
    }
    
    public java.util.Date getLastUpdateDate()
    {
      return com.runwaysdk.constants.MdAttributeDateTimeUtil.getTypeSafeValue(getValue(LASTUPDATEDATE));
    }
    
    public boolean isLastUpdateDateWritable()
    {
      return isWritable(LASTUPDATEDATE);
    }
    
    public boolean isLastUpdateDateReadable()
    {
      return isReadable(LASTUPDATEDATE);
    }
    
    public boolean isLastUpdateDateModified()
    {
      return isModified(LASTUPDATEDATE);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeDateTimeMdDTO getLastUpdateDateMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeDateTimeMdDTO) getAttributeDTO(LASTUPDATEDATE).getAttributeMdDTO();
    }
    
    public com.runwaysdk.system.SingleActorDTO getLastUpdatedBy()
    {
      if(getValue(LASTUPDATEDBY) == null || getValue(LASTUPDATEDBY).trim().equals(""))
      {
        return null;
      }
      else
      {
        return com.runwaysdk.system.SingleActorDTO.get(getRequest(), getValue(LASTUPDATEDBY));
      }
    }
    
    public String getLastUpdatedById()
    {
      return getValue(LASTUPDATEDBY);
    }
    
    public boolean isLastUpdatedByWritable()
    {
      return isWritable(LASTUPDATEDBY);
    }
    
    public boolean isLastUpdatedByReadable()
    {
      return isReadable(LASTUPDATEDBY);
    }
    
    public boolean isLastUpdatedByModified()
    {
      return isModified(LASTUPDATEDBY);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeReferenceMdDTO getLastUpdatedByMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeReferenceMdDTO) getAttributeDTO(LASTUPDATEDBY).getAttributeMdDTO();
    }
    
    public com.runwaysdk.system.SingleActorDTO getLockedBy()
    {
      if(getValue(LOCKEDBY) == null || getValue(LOCKEDBY).trim().equals(""))
      {
        return null;
      }
      else
      {
        return com.runwaysdk.system.SingleActorDTO.get(getRequest(), getValue(LOCKEDBY));
      }
    }
    
    public String getLockedById()
    {
      return getValue(LOCKEDBY);
    }
    
    public boolean isLockedByWritable()
    {
      return isWritable(LOCKEDBY);
    }
    
    public boolean isLockedByReadable()
    {
      return isReadable(LOCKEDBY);
    }
    
    public boolean isLockedByModified()
    {
      return isModified(LOCKEDBY);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeReferenceMdDTO getLockedByMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeReferenceMdDTO) getAttributeDTO(LOCKEDBY).getAttributeMdDTO();
    }
    
    public byte[] getMapThumbnail()
    {
      return super.getBlob(MAPTHUMBNAIL);
    }
    
    public void setMapThumbnail(byte[] bytes)
    {
      super.setBlob(MAPTHUMBNAIL, bytes);
    }
    
    public boolean isMapThumbnailWritable()
    {
      return isWritable(MAPTHUMBNAIL);
    }
    
    public boolean isMapThumbnailReadable()
    {
      return isReadable(MAPTHUMBNAIL);
    }
    
    public boolean isMapThumbnailModified()
    {
      return isModified(MAPTHUMBNAIL);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeBlobMdDTO getMapThumbnailMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeBlobMdDTO) getAttributeDTO(MAPTHUMBNAIL).getAttributeMdDTO();
    }
    
    public com.runwaysdk.system.ActorDTO getOwner()
    {
      if(getValue(OWNER) == null || getValue(OWNER).trim().equals(""))
      {
        return null;
      }
      else
      {
        return com.runwaysdk.system.ActorDTO.get(getRequest(), getValue(OWNER));
      }
    }
    
    public String getOwnerId()
    {
      return getValue(OWNER);
    }
    
    public void setOwner(com.runwaysdk.system.ActorDTO value)
    {
      if(value == null)
      {
        setValue(OWNER, "");
      }
      else
      {
        setValue(OWNER, value.getOid());
      }
    }
    
    public boolean isOwnerWritable()
    {
      return isWritable(OWNER);
    }
    
    public boolean isOwnerReadable()
    {
      return isReadable(OWNER);
    }
    
    public boolean isOwnerModified()
    {
      return isModified(OWNER);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeReferenceMdDTO getOwnerMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeReferenceMdDTO) getAttributeDTO(OWNER).getAttributeMdDTO();
    }
    
    public Long getSeq()
    {
      return com.runwaysdk.constants.MdAttributeLongUtil.getTypeSafeValue(getValue(SEQ));
    }
    
    public boolean isSeqWritable()
    {
      return isWritable(SEQ);
    }
    
    public boolean isSeqReadable()
    {
      return isReadable(SEQ);
    }
    
    public boolean isSeqModified()
    {
      return isModified(SEQ);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeNumberMdDTO getSeqMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeNumberMdDTO) getAttributeDTO(SEQ).getAttributeMdDTO();
    }
    
    public String getSiteMaster()
    {
      return getValue(SITEMASTER);
    }
    
    public boolean isSiteMasterWritable()
    {
      return isWritable(SITEMASTER);
    }
    
    public boolean isSiteMasterReadable()
    {
      return isReadable(SITEMASTER);
    }
    
    public boolean isSiteMasterModified()
    {
      return isModified(SITEMASTER);
    }
    
    public final com.runwaysdk.transport.metadata.AttributeCharacterMdDTO getSiteMasterMd()
    {
      return (com.runwaysdk.transport.metadata.AttributeCharacterMdDTO) getAttributeDTO(SITEMASTER).getAttributeMdDTO();
    }
    
    public static net.geoprism.dashboard.DashboardStateDTO get(com.runwaysdk.constants.ClientRequestIF clientRequest, String oid)
    {
      com.runwaysdk.business.EntityDTO dto = (com.runwaysdk.business.EntityDTO)clientRequest.get(oid);
      
  