panda.dao.entity.EntityIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panda-core Show documentation
Show all versions of panda-core Show documentation
Panda Core is the core module of Panda Framework, it contains commonly used utility classes similar to apache-commons.
package panda.dao.entity;
import java.util.ArrayList;
import java.util.List;
/**
* 封装了实体的索引
*/
public class EntityIndex {
private String name;
private boolean unique;
private boolean real;
private List fields = new ArrayList();
/**
* constructor
*/
protected EntityIndex() {
super();
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
protected void setName(String name) {
this.name = name;
}
/**
* @return the unique
*/
public boolean isUnique() {
return unique;
}
/**
* @param unique the unique to set
*/
protected void setUnique(boolean unique) {
this.unique = unique;
}
/**
* @return the real
*/
public boolean isReal() {
return real;
}
/**
* @param real the real to set
*/
protected void setReal(boolean real) {
this.real = real;
}
/**
* @return the fields
*/
public List getFields() {
return fields;
}
/**
* @param field the field to add
*/
protected void addField(EntityField field) {
fields.add(field);
}
}