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.core; /*www .j av a2 s . c o m*/ import com.annotation.entity.WhereImpl; import com.annotation.utils.ReflectionUtils; public class Deletor extends WhereImpl<Deletor>{ private String _talbe; public Deletor() { super(); } public Deletor from(Class<?> cls) { _talbe = ReflectionUtils.getTableName(cls); return this; } @Override public String build() { StringBuffer builder = new StringBuffer(); builder.append("Delete").append(" "); builder.append("From").append(" ").append(_talbe).append(" "); if (hasWhere()){ builder.append("Where").append(" ").append(getWhere()); } return builder.toString(); } }