content: package com.alibaba.tdata.aisp.server.repository.domain;
  
  import java.io.Serializable;
  import java.util.ArrayList;
  import java.util.Arrays;
  import java.util.Date;
  
  public class SceneConfigDO implements Serializable {
      private String sceneCode;
  
      private Date gmtCreate;
  
      private Date gmtModified;
  
      private String owners;
  
      private String productName;
  
      private String sceneName;
  
      private String detectorBinder;
  
      private String comment;
  
      private String sceneModelParam;
  
      private static final long serialVersionUID = 1L;
  
      public String getSceneCode() {
          return sceneCode;
      }
  
      public void setSceneCode(String sceneCode) {
          this.sceneCode = sceneCode == null ? null : sceneCode.trim();
      }
  
      public Date getGmtCreate() {
          return gmtCreate;
      }
  
      public void setGmtCreate(Date gmtCreate) {
          this.gmtCreate = gmtCreate;
      }
  
      public Date getGmtModified() {
          return gmtModified;
      }
  
      public void setGmtModified(Date gmtModified) {
          this.gmtModified = gmtModified;
      }
  
      public String getOwners() {
          return owners;
      }
  
      public void setOwners(String owners) {
          this.owners = owners == null ? null : owners.trim();
      }
  
      public String getProductName() {
          return productName;
      }
  
      public void setProductName(String productName) {
          this.productName = productName == null ? null : productName.trim();
      }
  
      public String getSceneName() {
          return sceneName;
      }
  
      public void setSceneName(String sceneName) {
          this.sceneName = sceneName == null ? null : sceneName.trim();
      }
  
      public String getDetectorBinder() {
          return detectorBinder;
      }
  
      public void setDetectorBinder(String detectorBinder) {
          this.detectorBinder = detectorBinder == null ? null : detectorBinder.trim();
      }
  
      public String getComment() {
          return comment;
      }
  
      public void setComment(String comment) {
          this.comment = comment == null ? null : comment.trim();
      }
  
      public String getSceneModelParam() {
          return sceneModelParam;
      }
  
      public void setSceneModelParam(String sceneModelParam) {
          this.sceneModelParam = sceneModelParam == null ? null : sceneModelParam.trim();
      }
  
      @Override
      public boolean equals(Object that) {
          if (this == that) {
              return true;
          }
          if (that == null) {
              return false;
          }
          if (getClass() != that.getClass()) {
              return false;
          }
          SceneConfigDO other = (SceneConfigDO) that;
          return (this.getSceneCode() == null ? other.getSceneCode() == null : this.getSceneCode().equals(other.getSceneCode()))
              && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
              && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
              && (this.getOwners() == null ? other.getOwners() == null : this.getOwners().equals(other.getOwners()))
              && (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName()))
              && (this.getSceneName() == null ? other.getSceneName() == null : this.getSceneName().equals(other.getSceneName()))
              && (this.getDetectorBinder() == null ? other.getDetectorBinder() == null : this.getDetectorBinder().equals(other.getDetectorBinder()))
              && (this.getComment() == null ? other.getComment() == null : this.getComment().equals(other.getComment()))
              && (this.getSceneModelParam() == null ? other.getSceneModelParam() == null : this.getSceneModelParam().equals(other.getSceneModelParam()));
      }
  
      @Override
      public int hashCode() {
          final int prime = 31;
          int result = 1;
          result = prime * result + ((getSceneCode() == null) ? 0 : getSceneCode().hashCode());
          result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
          result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
          result = prime * result + ((getOwners() == null) ? 0 : getOwners().hashCode());
          result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode());
          result = prime * result + ((getSceneName() == null) ? 0 : getSceneName().hashCode());
          result = prime * result + ((getDetectorBinder() == null) ? 0 : getDetectorBinder().hashCode());
          result = prime * result + ((getComment() == null) ? 0 : getComment().hashCode());
          result = prime * result + ((getSceneModelParam() == null) ? 0 : getSceneModelParam().hashCode());
          return result;
      }
  
      @Override
      public String toString() {
          StringBuilder sb = new StringBuilder();
          sb.append(getClass().getSimpleName());
          sb.append(" [");
          sb.append("Hash = ").append(hashCode());
          sb.append(", sceneCode=").append(sceneCode);
          sb.append(", gmtCreate=").append(gmtCreate);
          sb.append(", gmtModified=").append(gmtModified);
          sb.append(", owners=").append(owners);
          sb.append(", productName=").append(productName);
          sb.append(", sceneName=").append(sceneName);
          sb.append(", detectorBinder=").append(detectorBinder);
          sb.append(", comment=").append(comment);
          sb.append(", sceneModelParam=").append(sceneModelParam);
          sb.append(", serialVersionUID=").append(serialVersionUID);
          sb.append("]");
          return sb.toString();
      }
  
      public enum Column {
          sceneCode("scene_code", "sceneCode", "VARCHAR", false),
          gmtCreate("gmt_create", "gmtCreate", "TIMESTAMP", false),
          gmtModified("gmt_modified", "gmtModified", "TIMESTAMP", false),
          owners("owners", "owners", "VARCHAR", false),
          productName("product_name", "productName", "VARCHAR", false),
          sceneName("scene_name", "sceneName", "VARCHAR", false),
          detectorBinder("detector_binder", "detectorBinder", "VARCHAR", false),
          comment("comment", "comment", "LONGVARCHAR", false),
          sceneModelParam("scene_model_param", "sceneModelParam", "LONGVARCHAR", false);
  
          private static final String BEGINNING_DELIMITER = "\"";
  
          private static final String ENDING_DELIMITER = "\"";
  
          private final String column;
  
          private final boolean isColumnNameDelimited;
  
          private final String javaProperty;
  
          private final String jdbcType;
  
          public String value() {
              return this.column;
          }
  
          public String getValue() {
              return this.column;
          }
  
          public String getJavaProperty() {
              return this.javaProperty;
          }
  
          public String getJdbcType() {
              return this.jdbcType;
          }
  
          Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
              this.column = column;
              this.javaProperty = javaProperty;
              this.jdbcType = jdbcType;
              this.isColumnNameDelimited = isColumnNameDelimited;
          }
  
          public String desc() {
              return this.getEscapedColumnName() + " DESC";
          }
  
          public String asc() {
              return this.getEscapedColumnName() + " ASC";
          }
  
          public static Column[] excludes(Column ... excludes) {
              ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
              if (excludes != null && excludes.length > 0) {
                  columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
              }
              return columns.toArray(new Column[]{});
          }
  
          public static Column[] all() {
              return Column.values();
          }
  
          public String getEscapedColumnName() {
              if (this.isColumnNameDelimited) {
                  return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
              } else {
                  return this.column;
              }
          }
  
          public String getAliasedEscapedColumnName() {
              return this.getEscapedColumnName();
          }
      }
  }