Package org.openurp.code.geo.model
Class Division
- java.lang.Object
-
- org.beangle.commons.entity.pojo.NumberIdObject<T>
-
- org.beangle.commons.entity.pojo.Code<Integer>
-
- org.openurp.code.geo.model.Division
-
- All Implemented Interfaces:
Serializable,Comparable<Object>,org.beangle.commons.entity.Entity<Integer>,org.beangle.commons.entity.TemporalOn
@Entity(name="org.openurp.code.geo.model.Division") public class Division extends org.beangle.commons.entity.pojo.Code<Integer>
行政区划- Since:
- 2010-9-7, 3.0.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddSubDivision(Division subDivision)booleanaddSubDivisions(Collection<? extends Division> subDivisions)voidclearSubDivisions()List<Division>getChildren()DivisiongetParent()DivisiongetTop()booleanhasSubDivision()booleanremoveSubDivision(Division subDivision)booleanremoveSubDivisions(Collection<? extends Division> subDivisions)voidsetChildren(List<Division> subDivisions)voidsetParent(Division superDivision)-
Methods inherited from class org.beangle.commons.entity.pojo.Code
compareTo, getBeginOn, getCode, getEndOn, getEnName, getName, getUpdatedAt, hasExtPros, setBeginOn, setCode, setEndOn, setEnName, setName, setUpdatedAt, toString
-
-
-
-
Constructor Detail
-
Division
public Division()
-
Division
public Division(Integer id)
-
-
Method Detail
-
getParent
public Division getParent()
-
getTop
public Division getTop()
-
setParent
public void setParent(Division superDivision)
-
hasSubDivision
public boolean hasSubDivision()
-
addSubDivision
public boolean addSubDivision(Division subDivision)
-
removeSubDivision
public boolean removeSubDivision(Division subDivision)
-
addSubDivisions
public boolean addSubDivisions(Collection<? extends Division> subDivisions)
-
removeSubDivisions
public boolean removeSubDivisions(Collection<? extends Division> subDivisions)
-
clearSubDivisions
public void clearSubDivisions()
-
-