コード例 #1
0
ファイル: SelectBean.java プロジェクト: Kalimaha/wds
/**
 * @author <a href="mailto:[email protected]">Guido Barbaglia</a>
 * @author <a href="mailto:[email protected]">Guido Barbaglia</a>
 */
public class SelectBean {

  private String aggregation = SQL.NONE.name();

  private String column = "";

  private String alias = SQL.NONE.name();

  public SelectBean() {}

  public SelectBean(String aggregation, String column, String alias) {
    super();
    if (aggregation == null) {
      this.setAggregation(SQL.NONE.name());
    } else {
      this.setAggregation(aggregation);
    }
    this.column = column;
    if (alias == null) {
      this.setAlias(SQL.NONE.name());
    } else {
      this.setAlias(alias);
    }
  }

  public String getAggregation() {
    return aggregation;
  }

  public void setAggregation(String aggregation) {
    this.aggregation = aggregation;
  }

  public String getColumn() {
    return column;
  }

  public void setColumn(String column) {
    this.column = column;
  }

  public String getAlias() {
    return alias;
  }

  public void setAlias(String alias) {
    this.alias = alias;
  }

  public String toString() {
    return "Aggregation: "
        + this.getAggregation()
        + ", Column: "
        + this.getColumn()
        + ", Alias: "
        + this.getAlias();
  }
}
コード例 #2
0
ファイル: SelectBean.java プロジェクト: Kalimaha/wds
 public SelectBean(String aggregation, String column, String alias) {
   super();
   if (aggregation == null) {
     this.setAggregation(SQL.NONE.name());
   } else {
     this.setAggregation(aggregation);
   }
   this.column = column;
   if (alias == null) {
     this.setAlias(SQL.NONE.name());
   } else {
     this.setAlias(alias);
   }
 }