Back to project page SORM.
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.
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(); } }