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
-
Field Summary
Fields inherited from class org.beangle.commons.entity.pojo.Code
beginOn, code, endOn, enName, name, updatedAtFields inherited from class org.beangle.commons.entity.pojo.NumberIdObject
id -
Constructor Summary
-
Method Summary
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, toStringMethods inherited from class org.beangle.commons.entity.pojo.NumberIdObject
equals, getId, hashCode, isPersisted, isTransient, setId
-
Constructor Details
-
Division
public Division() -
Division
-
-
Method Details
-
getParent
-
getTop
-
setParent
-
hasSubDivision
public boolean hasSubDivision() -
getChildren
-
setChildren
-
addSubDivision
-
removeSubDivision
-
addSubDivisions
-
removeSubDivisions
-
clearSubDivisions
public void clearSubDivisions()
-