panda.dao.entity.EntityFKey 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;
/**
* Foreign key of entity
*/
public class EntityFKey {
private String name;
private Entity> reference;
private List fields = new ArrayList();
private String onUpdate;
private String onDelete;
/**
* constructor
*/
protected EntityFKey() {
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 reference
*/
public Entity> getReference() {
return reference;
}
/**
* @param reference the reference to set
*/
protected void setReference(Entity> reference) {
this.reference = reference;
}
/**
* @return the fields
*/
public List getFields() {
return fields;
}
/**
* @param field the field to add
*/
protected void addField(EntityField field) {
fields.add(field);
}
/**
* @return the onUpdate
*/
public String getOnUpdate() {
return onUpdate;
}
/**
* @param onUpdate the onUpdate to set
*/
protected void setOnUpdate(String onUpdate) {
this.onUpdate = onUpdate;
}
/**
* @return the onDelete
*/
public String getOnDelete() {
return onDelete;
}
/**
* @param onDelete the onDelete to set
*/
protected void setOnDelete(String onDelete) {
this.onDelete = onDelete;
}
}