package com.jqmobile.core.server.db.orm2;
import java.util.ArrayList;
import java.util.List;
/**
* 上帝对象,万能对象
* @author MODI
*
* @project com.jiuqi.mobile.service
* @date 2014年1月4日
*/
public class LordBean {
private String tableName;
private String className;
private List<LordFieldBean> fields;
//
public LordBean(){
}
public LordBean(Object obj){
}
//
public String getTableName() {
return tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
public List<LordFieldBean> getFields() {
return fields;
}
public void setFields(List<LordFieldBean> fields) {
this.fields = fields;
}
public LordBean addField(LordFieldBean field){
if(null == this.fields) this.fields = new ArrayList<LordFieldBean>();
this.fields.add(field);
return this;
}
public Object getObject(){
return null;
}
public <T> T get(Class<T> c){
try {
return get(c.newInstance());
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
return null;
}
public <T> T get(T t){
return t;
}
}