Android Open Source - SORM Column Info






From Project

Back to project page SORM.

License

The source code is released under:

MIT License

If you think the Android project SORM listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.annotation.entity;
//from ww w .j  a v a  2 s  .  c  om
public class ColumnInfo {
  /** ????**/
  private String columnName;
  /** ????? **/
  private String typeName;
  /** ????**/
  private StringBuffer constraint = new StringBuffer();

  public String getColumnName() {
    return columnName;
  }

  public void setColumnName(String columnName) {
    this.columnName = columnName;
  }

  public String getTypeName() {
    return typeName;
  }

  public void setTypeName(String typeName) {
    this.typeName = typeName;
  }

  public StringBuffer getConstraint() {
    return constraint;
  }

  public void setConstraint(StringBuffer constraint) {
    this.constraint = constraint;
  }

  public void addConstraint(String newConstraint) {
    this.constraint.append(newConstraint).append(" ");
  }

  public String build() {
    if(constraint.length()>0)constraint.deleteCharAt(constraint.length() - 1);
    return columnName + " " + typeName + " " + constraint.toString();
  }
}




Java Source Code List

.Creator.java
com.annotation.Column.java
com.annotation.Ignore.java
com.annotation.Index.java
com.annotation.NoNull.java
com.annotation.Table.java
com.annotation.Unique.java
com.annotation.core.Deletor.java
com.annotation.core.Droper.java
com.annotation.core.Indexer.java
com.annotation.core.Inserter.java
com.annotation.core.Model.java
com.annotation.core.Query.java
com.annotation.core.Selector.java
com.annotation.core.Updater.java
com.annotation.entity.ColumnInfo.java
com.annotation.entity.ORMcallback.java
com.annotation.entity.QueryCallback.java
com.annotation.entity.Sqlable.java
com.annotation.entity.Wherable.java
com.annotation.entity.WhereImpl.java
com.annotation.utils.DBHelper.java
com.annotation.utils.DBUtils.java
com.annotation.utils.NameBuilder.java
com.annotation.utils.ReflectionUtils.java
com.annotation.utils.SqlUtils.java
com.annotation.utils._.java