All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.gdface.facelog.db.IPersonGroupManager Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
// ______________________________________________________
// Generated by sql2java - https://github.com/10km/sql2java 
// JDBC driver used at code generation time: com.mysql.jdbc.Driver
// template: manager.interface.java.vm
// ______________________________________________________
package net.gdface.facelog.db;
import gu.sql2java.TableManager;
import gu.sql2java.exception.ObjectRetrievalException;
import gu.sql2java.exception.RuntimeDaoException;

/**
 * Interface to handle database calls (save, load, count, etc...) for the fl_person_group table.
* Remarks: 用户组信息 * @author guyadong */ public interface IPersonGroupManager extends TableManager { ////////////////////////////////////// // PRIMARY KEY METHODS ////////////////////////////////////// //1 /** * Loads a {@link PersonGroupBean} from the fl_person_group using primary key fields. * * @param id Integer - PK# 1 * @return a unique PersonGroupBean or {@code null} if not found * @throws RuntimeDaoException */ public PersonGroupBean loadByPrimaryKey(Integer id)throws RuntimeDaoException; //1.1 /** * Loads a {@link PersonGroupBean} from the fl_person_group using primary key fields. * * @param id Integer - PK# 1 * @return a unique PersonGroupBean * @throws ObjectRetrievalException if not found * @throws RuntimeDaoException */ public PersonGroupBean loadByPrimaryKeyChecked(Integer id) throws RuntimeDaoException,ObjectRetrievalException; //1.4 /** * check if contains row with primary key fields. * @param id Integer - PK# 1 * @return true if this fl_person_group contains row with primary key fields. * @throws RuntimeDaoException */ public boolean existsPrimaryKey(Integer id)throws RuntimeDaoException; //1.4.1 /** * Check duplicated row by primary keys,if row exists throw exception * @param id primary keys * @return id * @throws RuntimeDaoException * @throws ObjectRetrievalException */ public Integer checkDuplicate(Integer id)throws RuntimeDaoException,ObjectRetrievalException; //1.8 /** * Loads {@link PersonGroupBean} from the fl_person_group using primary key fields. * * @param keys primary keys array * @return list of PersonGroupBean * @throws RuntimeDaoException */ public java.util.List loadByPrimaryKey(Integer... keys)throws RuntimeDaoException; //1.9 /** * Loads {@link PersonGroupBean} from the fl_person_group using primary key fields. * * @param keys primary keys collection * @return list of PersonGroupBean * @throws RuntimeDaoException */ public java.util.List loadByPrimaryKey(java.util.Collection keys)throws RuntimeDaoException; //2 /** * Delete row according to its primary keys.
* all keys must not be null * * @param id Integer - PK# 1 * @return the number of deleted rows * @throws RuntimeDaoException */ public int deleteByPrimaryKey(Integer id)throws RuntimeDaoException; //2.2 /** * Delete rows according to primary key.
* * @param keys primary keys array * @return the number of deleted rows * @throws RuntimeDaoException * @see #delete(gu.sql2java.BaseBean) */ public int deleteByPrimaryKey(Integer... keys)throws RuntimeDaoException; //2.3 /** * Delete rows according to primary key.
* * @param keys primary keys collection * @return the number of deleted rows * @throws RuntimeDaoException * @see #delete(gu.sql2java.BaseBean) */ public int deleteByPrimaryKey(java.util.Collection keys)throws RuntimeDaoException; ////////////////////////////////////// // GET/SET IMPORTED KEY BEAN METHOD ////////////////////////////////////// //3.1 GET IMPORTED /** * Retrieves the {@link PermitBean} object from the fl_permit.person_group_id field.
* FK_NAME : fl_permit_ibfk_2 * @param bean the {@link PersonGroupBean} * @return the associated {@link PermitBean} beans or {@code null} if {@code bean} is {@code null} * @throws RuntimeDaoException */ public PermitBean[] getPermitBeansByPersonGroupId(PersonGroupBean bean)throws RuntimeDaoException; //3.1.2 GET IMPORTED /** * Retrieves the {@link PermitBean} object from the fl_permit.person_group_id field.
* FK_NAME : fl_permit_ibfk_2 * @param idOfPersonGroup Integer - PK# 1 * @return the associated {@link PermitBean} beans or {@code null} if {@code bean} is {@code null} * @throws RuntimeDaoException */ public PermitBean[] getPermitBeansByPersonGroupId(Integer idOfPersonGroup)throws RuntimeDaoException; //3.2 GET IMPORTED /** * see also #getPermitBeansByPersonGroupIdAsList(PersonGroupBean,int,int) * @param bean * @return import bean list * @throws RuntimeDaoException */ public java.util.List getPermitBeansByPersonGroupIdAsList(PersonGroupBean bean)throws RuntimeDaoException; //3.2.2 GET IMPORTED /** * Retrieves the {@link PermitBean} object from fl_permit.person_group_id field.
* FK_NAME:fl_permit_ibfk_2 * @param idOfPersonGroup Integer - PK# 1 * @return the associated {@link PermitBean} beans * @throws RuntimeDaoException */ public java.util.List getPermitBeansByPersonGroupIdAsList(Integer idOfPersonGroup)throws RuntimeDaoException; //3.2.3 DELETE IMPORTED /** * delete the associated {@link PermitBean} objects from fl_permit.person_group_id field.
* FK_NAME:fl_permit_ibfk_2 * @param idOfPersonGroup Integer - PK# 1 * @return the number of deleted rows * @throws RuntimeDaoException */ public int deletePermitBeansByPersonGroupId(Integer idOfPersonGroup)throws RuntimeDaoException; //3.2.4 GET IMPORTED /** * Retrieves the {@link PermitBean} object from fl_permit.person_group_id field.
* FK_NAME:fl_permit_ibfk_2 * @param bean the {@link PersonGroupBean} * @param startRow the start row to be used (first row = 1, last row=-1) * @param numRows the number of rows to be retrieved (all rows = a negative number) * @return the associated {@link PermitBean} beans or empty list if {@code bean} is {@code null} * @throws RuntimeDaoException */ public java.util.List getPermitBeansByPersonGroupIdAsList(PersonGroupBean bean,int startRow,int numRows)throws RuntimeDaoException; //3.3 SET IMPORTED /** * set the {@link PermitBean} object array associate to PersonGroupBean by the fl_permit.person_group_id field.
* FK_NAME : fl_permit_ibfk_2 * @param bean the referenced {@link PersonGroupBean} * @param importedBeans imported beans from fl_permit * @return importedBeans always * @see IPermitManager#setReferencedByPersonGroupId(PermitBean, PersonGroupBean) * @throws RuntimeDaoException */ public PermitBean[] setPermitBeansByPersonGroupId(PersonGroupBean bean , PermitBean[] importedBeans)throws RuntimeDaoException; //3.4 SET IMPORTED /** * set the {@link PermitBean} object java.util.Collection associate to PersonGroupBean by the fl_permit.person_group_id field.
* FK_NAME:fl_permit_ibfk_2 * @param bean the referenced {@link PersonGroupBean} * @param importedBeans imported beans from fl_permit * @return importedBeans always * @see IPermitManager#setReferencedByPersonGroupId(PermitBean, PersonGroupBean) * @throws RuntimeDaoException */ public > C setPermitBeansByPersonGroupId(PersonGroupBean bean , C importedBeans)throws RuntimeDaoException; //3.1 GET IMPORTED /** * Retrieves the {@link PersonBean} object from the fl_person.group_id field.
* FK_NAME : fl_person_ibfk_1 * @param bean the {@link PersonGroupBean} * @return the associated {@link PersonBean} beans or {@code null} if {@code bean} is {@code null} * @throws RuntimeDaoException */ public PersonBean[] getPersonBeansByGroupId(PersonGroupBean bean)throws RuntimeDaoException; //3.1.2 GET IMPORTED /** * Retrieves the {@link PersonBean} object from the fl_person.group_id field.
* FK_NAME : fl_person_ibfk_1 * @param idOfPersonGroup Integer - PK# 1 * @return the associated {@link PersonBean} beans or {@code null} if {@code bean} is {@code null} * @throws RuntimeDaoException */ public PersonBean[] getPersonBeansByGroupId(Integer idOfPersonGroup)throws RuntimeDaoException; //3.2 GET IMPORTED /** * see also #getPersonBeansByGroupIdAsList(PersonGroupBean,int,int) * @param bean * @return import bean list * @throws RuntimeDaoException */ public java.util.List getPersonBeansByGroupIdAsList(PersonGroupBean bean)throws RuntimeDaoException; //3.2.2 GET IMPORTED /** * Retrieves the {@link PersonBean} object from fl_person.group_id field.
* FK_NAME:fl_person_ibfk_1 * @param idOfPersonGroup Integer - PK# 1 * @return the associated {@link PersonBean} beans * @throws RuntimeDaoException */ public java.util.List getPersonBeansByGroupIdAsList(Integer idOfPersonGroup)throws RuntimeDaoException; //3.2.3 DELETE IMPORTED /** * delete the associated {@link PersonBean} objects from fl_person.group_id field.
* FK_NAME:fl_person_ibfk_1 * @param idOfPersonGroup Integer - PK# 1 * @return the number of deleted rows * @throws RuntimeDaoException */ public int deletePersonBeansByGroupId(Integer idOfPersonGroup)throws RuntimeDaoException; //3.2.4 GET IMPORTED /** * Retrieves the {@link PersonBean} object from fl_person.group_id field.
* FK_NAME:fl_person_ibfk_1 * @param bean the {@link PersonGroupBean} * @param startRow the start row to be used (first row = 1, last row=-1) * @param numRows the number of rows to be retrieved (all rows = a negative number) * @return the associated {@link PersonBean} beans or empty list if {@code bean} is {@code null} * @throws RuntimeDaoException */ public java.util.List getPersonBeansByGroupIdAsList(PersonGroupBean bean,int startRow,int numRows)throws RuntimeDaoException; //3.3 SET IMPORTED /** * set the {@link PersonBean} object array associate to PersonGroupBean by the fl_person.group_id field.
* FK_NAME : fl_person_ibfk_1 * @param bean the referenced {@link PersonGroupBean} * @param importedBeans imported beans from fl_person * @return importedBeans always * @see IPersonManager#setReferencedByGroupId(PersonBean, PersonGroupBean) * @throws RuntimeDaoException */ public PersonBean[] setPersonBeansByGroupId(PersonGroupBean bean , PersonBean[] importedBeans)throws RuntimeDaoException; //3.4 SET IMPORTED /** * set the {@link PersonBean} object java.util.Collection associate to PersonGroupBean by the fl_person.group_id field.
* FK_NAME:fl_person_ibfk_1 * @param bean the referenced {@link PersonGroupBean} * @param importedBeans imported beans from fl_person * @return importedBeans always * @see IPersonManager#setReferencedByGroupId(PersonBean, PersonGroupBean) * @throws RuntimeDaoException */ public > C setPersonBeansByGroupId(PersonGroupBean bean , C importedBeans)throws RuntimeDaoException; //3.1 GET IMPORTED /** * Retrieves the {@link PersonGroupBean} object from the fl_person_group.parent field.
* FK_NAME : fl_person_group_ibfk_1 * @param bean the {@link PersonGroupBean} * @return the associated {@link PersonGroupBean} beans or {@code null} if {@code bean} is {@code null} * @throws RuntimeDaoException */ public PersonGroupBean[] getPersonGroupBeansByParent(PersonGroupBean bean)throws RuntimeDaoException; //3.1.2 GET IMPORTED /** * Retrieves the {@link PersonGroupBean} object from the fl_person_group.parent field.
* FK_NAME : fl_person_group_ibfk_1 * @param idOfPersonGroup Integer - PK# 1 * @return the associated {@link PersonGroupBean} beans or {@code null} if {@code bean} is {@code null} * @throws RuntimeDaoException */ public PersonGroupBean[] getPersonGroupBeansByParent(Integer idOfPersonGroup)throws RuntimeDaoException; //3.2 GET IMPORTED /** * see also #getPersonGroupBeansByParentAsList(PersonGroupBean,int,int) * @param bean * @return import bean list * @throws RuntimeDaoException */ public java.util.List getPersonGroupBeansByParentAsList(PersonGroupBean bean)throws RuntimeDaoException; //3.2.2 GET IMPORTED /** * Retrieves the {@link PersonGroupBean} object from fl_person_group.parent field.
* FK_NAME:fl_person_group_ibfk_1 * @param idOfPersonGroup Integer - PK# 1 * @return the associated {@link PersonGroupBean} beans * @throws RuntimeDaoException */ public java.util.List getPersonGroupBeansByParentAsList(Integer idOfPersonGroup)throws RuntimeDaoException; //3.2.3 DELETE IMPORTED /** * delete the associated {@link PersonGroupBean} objects from fl_person_group.parent field.
* FK_NAME:fl_person_group_ibfk_1 * @param idOfPersonGroup Integer - PK# 1 * @return the number of deleted rows * @throws RuntimeDaoException */ public int deletePersonGroupBeansByParent(Integer idOfPersonGroup)throws RuntimeDaoException; //3.2.4 GET IMPORTED /** * Retrieves the {@link PersonGroupBean} object from fl_person_group.parent field.
* FK_NAME:fl_person_group_ibfk_1 * @param bean the {@link PersonGroupBean} * @param startRow the start row to be used (first row = 1, last row=-1) * @param numRows the number of rows to be retrieved (all rows = a negative number) * @return the associated {@link PersonGroupBean} beans or empty list if {@code bean} is {@code null} * @throws RuntimeDaoException */ public java.util.List getPersonGroupBeansByParentAsList(PersonGroupBean bean,int startRow,int numRows)throws RuntimeDaoException; //3.3 SET IMPORTED /** * set the {@link PersonGroupBean} object array associate to PersonGroupBean by the fl_person_group.parent field.
* FK_NAME : fl_person_group_ibfk_1 * @param bean the referenced {@link PersonGroupBean} * @param importedBeans imported beans from fl_person_group * @return importedBeans always * @see IPersonGroupManager#setReferencedByParent(PersonGroupBean, PersonGroupBean) * @throws RuntimeDaoException */ public PersonGroupBean[] setPersonGroupBeansByParent(PersonGroupBean bean , PersonGroupBean[] importedBeans)throws RuntimeDaoException; //3.4 SET IMPORTED /** * set the {@link PersonGroupBean} object java.util.Collection associate to PersonGroupBean by the fl_person_group.parent field.
* FK_NAME:fl_person_group_ibfk_1 * @param bean the referenced {@link PersonGroupBean} * @param importedBeans imported beans from fl_person_group * @return importedBeans always * @see IPersonGroupManager#setReferencedByParent(PersonGroupBean, PersonGroupBean) * @throws RuntimeDaoException */ public > C setPersonGroupBeansByParent(PersonGroupBean bean , C importedBeans)throws RuntimeDaoException; //3.5 SYNC SAVE /** * Save the PersonGroupBean bean and referenced beans and imported beans into the database. * * @param bean the {@link PersonGroupBean} bean to be saved * @param refPersongroupByParent the {@link PersonGroupBean} bean referenced by {@link PersonGroupBean} * @param impPermitByPersonGroupId the {@link PermitBean} bean refer to {@link PersonGroupBean} * @param impPersonByGroupId the {@link PersonBean} bean refer to {@link PersonGroupBean} * @param impPersongroupByParent the {@link PersonGroupBean} bean refer to {@link PersonGroupBean} * @return the inserted or updated {@link PersonGroupBean} bean * @throws RuntimeDaoException */ public PersonGroupBean save(PersonGroupBean bean , PersonGroupBean refPersongroupByParent , PermitBean[] impPermitByPersonGroupId , PersonBean[] impPersonByGroupId , PersonGroupBean[] impPersongroupByParent )throws RuntimeDaoException; //3.6 SYNC SAVE AS TRANSACTION /** * Transaction version for sync save
* see also {@link #save(PersonGroupBean , PersonGroupBean , PermitBean[] , PersonBean[] , PersonGroupBean[] )} * @param bean the {@link PersonGroupBean} bean to be saved * @param refPersongroupByParent the {@link PersonGroupBean} bean referenced by {@link PersonGroupBean} * @param impPermitByPersonGroupId the {@link PermitBean} bean refer to {@link PersonGroupBean} * @param impPersonByGroupId the {@link PersonBean} bean refer to {@link PersonGroupBean} * @param impPersongroupByParent the {@link PersonGroupBean} bean refer to {@link PersonGroupBean} * @return the inserted or updated {@link PersonGroupBean} bean * @throws RuntimeDaoException */ public PersonGroupBean saveAsTransaction(final PersonGroupBean bean ,final PersonGroupBean refPersongroupByParent ,final PermitBean[] impPermitByPersonGroupId ,final PersonBean[] impPersonByGroupId ,final PersonGroupBean[] impPersongroupByParent )throws RuntimeDaoException; //3.7 SYNC SAVE /** * Save the PersonGroupBean bean and referenced beans and imported beans into the database. * * @param bean the {@link PersonGroupBean} bean to be saved * @param refPersongroupByParent the {@link PersonGroupBean} bean referenced by {@link PersonGroupBean} * @param impPermitByPersonGroupId the {@link PermitBean} bean refer to {@link PersonGroupBean} * @param impPersonByGroupId the {@link PersonBean} bean refer to {@link PersonGroupBean} * @param impPersongroupByParent the {@link PersonGroupBean} bean refer to {@link PersonGroupBean} * @return the inserted or updated {@link PersonGroupBean} bean * @throws RuntimeDaoException */ public PersonGroupBean save(PersonGroupBean bean , PersonGroupBean refPersongroupByParent , java.util.Collection impPermitByPersonGroupId , java.util.Collection impPersonByGroupId , java.util.Collection impPersongroupByParent )throws RuntimeDaoException; //3.8 SYNC SAVE AS TRANSACTION /** * Transaction version for sync save
* see also {@link #save(PersonGroupBean , PersonGroupBean , java.util.Collection , java.util.Collection , java.util.Collection )} * @param bean the {@link PersonGroupBean} bean to be saved * @param refPersongroupByParent the {@link PersonGroupBean} bean referenced by {@link PersonGroupBean} * @param impPermitByPersonGroupId the {@link PermitBean} bean refer to {@link PersonGroupBean} * @param impPersonByGroupId the {@link PersonBean} bean refer to {@link PersonGroupBean} * @param impPersongroupByParent the {@link PersonGroupBean} bean refer to {@link PersonGroupBean} * @return the inserted or updated {@link PersonGroupBean} bean * @throws RuntimeDaoException */ public PersonGroupBean saveAsTransaction(final PersonGroupBean bean ,final PersonGroupBean refPersongroupByParent ,final java.util.Collection impPermitByPersonGroupId ,final java.util.Collection impPersonByGroupId ,final java.util.Collection impPersongroupByParent )throws RuntimeDaoException; ////////////////////////////////////// // GET/SET FOREIGN KEY BEAN METHOD ////////////////////////////////////// //5.1 GET REFERENCED VALUE /** * Retrieves the {@link PersonGroupBean} object referenced by {@link PersonGroupBean#getParent}() field.
* FK_NAME : fl_person_group_ibfk_1 * @param bean the {@link PersonGroupBean} * @return the associated {@link PersonGroupBean} bean or {@code null} if {@code bean} is {@code null} * @throws RuntimeDaoException */ public PersonGroupBean getReferencedByParent(PersonGroupBean bean)throws RuntimeDaoException; //5.2 SET REFERENCED /** * Associates the {@link PersonGroupBean} object to the {@link PersonGroupBean} object by {@link PersonGroupBean#getParent}() field. * * @param bean the {@link PersonGroupBean} object to use * @param beanToSet the {@link PersonGroupBean} object to associate to the {@link PersonGroupBean} * @return always beanToSet saved * @throws RuntimeDaoException */ public PersonGroupBean setReferencedByParent(PersonGroupBean bean, PersonGroupBean beanToSet)throws RuntimeDaoException; //_____________________________________________________________________ // // USING INDICES //_____________________________________________________________________ /** * Retrieves an array of PersonGroupBean using the parent index. * * @param parent the parent column's value filter. * @return an array of PersonGroupBean * @throws RuntimeDaoException */ public PersonGroupBean[] loadByIndexParent(Integer parent)throws RuntimeDaoException; /** * Retrieves a list of PersonGroupBean using the parent index. * * @param parent the parent column's value filter. * @return a list of PersonGroupBean * @throws RuntimeDaoException */ public java.util.List loadByIndexParentAsList(Integer parent)throws RuntimeDaoException; /** * Deletes rows using the parent index. * * @param parent the parent column's value filter. * @return the number of deleted objects * @throws RuntimeDaoException */ public int deleteByIndexParent(Integer parent)throws RuntimeDaoException; //45 /** * return a primary key list from {@link PersonGroupBean} array * @param beans * @return primary key list */ public java.util.List toPrimaryKeyList(PersonGroupBean... beans); //46 /** * return a primary key list from {@link PersonGroupBean} collection * @param beans * @return primary key list */ public java.util.List toPrimaryKeyList(java.util.Collection beans); //_____________________________________________________________________ // // MANY TO MANY: LOAD OTHER BEAN VIA JUNCTION TABLE //_____________________________________________________________________ //22 MANY TO MANY /** * see also #loadViaPermitAsList(PersonGroupBean,int,int) * @param bean * @return PersonGroupBean list * @throws RuntimeDaoException */ public java.util.List loadViaPermitAsList(DeviceGroupBean bean)throws RuntimeDaoException; //23 MANY TO MANY /** * Retrieves an list of PersonGroupBean using the junction table Permit, given a DeviceGroupBean, * specifying the start row and the number of rows. * * @param bean the DeviceGroupBean bean to be used * @param startRow the start row to be used (first row = 1, last row = -1) * @param numRows the number of rows to be retrieved (all rows = a negative number) * @return a list of PersonGroupBean * @throws RuntimeDaoException */ public java.util.List loadViaPermitAsList(DeviceGroupBean bean, int startRow, int numRows)throws RuntimeDaoException; //23.2 MANY TO MANY /** * add junction between {@link PersonGroupBean} and {@link DeviceGroupBean} if junction not exists * @param bean * @param linked * @throws RuntimeDaoException */ public void addJunction(PersonGroupBean bean,DeviceGroupBean linked)throws RuntimeDaoException; //23.3 MANY TO MANY /** * remove junction between {@link PersonGroupBean} and {@link DeviceGroupBean} * @param bean * @param linked * @return deleted rows count * @throws RuntimeDaoException */ public int deleteJunction(PersonGroupBean bean,DeviceGroupBean linked)throws RuntimeDaoException; //23.4 MANY TO MANY /** * see also {@link #addJunction(PersonGroupBean,DeviceGroupBean)} * @param bean * @param linkedBeans * @throws RuntimeDaoException */ public void addJunction(PersonGroupBean bean,DeviceGroupBean... linkedBeans)throws RuntimeDaoException; //23.5 MANY TO MANY /** * see also {@link #addJunction(PersonGroupBean,DeviceGroupBean)} * @param bean * @param linkedBeans * @throws RuntimeDaoException */ public void addJunctionWithDeviceGroup(PersonGroupBean bean,java.util.Collection linkedBeans)throws RuntimeDaoException; //23.6 MANY TO MANY /** * see also {@link #deleteJunction(PersonGroupBean,DeviceGroupBean)} * @param bean * @param linkedBeans * @return count of deleted rows * @throws RuntimeDaoException */ public int deleteJunction(PersonGroupBean bean,DeviceGroupBean... linkedBeans)throws RuntimeDaoException; //23.7 MANY TO MANY /** * see also {@link #deleteJunction(PersonGroupBean,DeviceGroupBean)} * @param bean * @param linkedBeans * @return count of deleted rows * @throws RuntimeDaoException */ public int deleteJunctionWithDeviceGroup(PersonGroupBean bean,java.util.Collection linkedBeans)throws RuntimeDaoException; //_____________________________________________________________________ // // SELF-REFERENCE //_____________________________________________________________________ //47 /** * return bean list ( include bean specified by primary keys ) by the self-reference field : {@code fl_person_group(parent) }
* first element is top bean * @param id PK# 1 * @return empty list if input primary key is {@code null}
* first element equal last if self-reference field is cycle * @throws RuntimeDaoException */ public java.util.List listOfParent(Integer id)throws RuntimeDaoException; //48 /** * see also {@link #listOfParent(Integer)} * @param bean * @return PersonGroupBean list * @throws RuntimeDaoException */ public java.util.List listOfParent(PersonGroupBean bean)throws RuntimeDaoException; //49 /** * get level count on the self-reference field : {@code fl_person_group(parent) } * @param id PK# 1 * @return 0 if input primary key is {@code null}
* -1 if self-reference field is cycle * @throws RuntimeDaoException */ public int levelOfParent(Integer id)throws RuntimeDaoException; //50 /** * see also {@link #levelOfParent(Integer)} * @param bean * @return level count * @throws RuntimeDaoException */ public int levelOfParent(PersonGroupBean bean)throws RuntimeDaoException; //51 /** * test whether the self-reference field is cycle : {@code fl_person_group(parent) } * @param id PK# 1 * @see #levelOfParent(PersonGroupBean) * @return true if the self-reference field is cycle * @throws RuntimeDaoException */ public boolean isCycleOnParent(Integer id)throws RuntimeDaoException; //52 /** * test whether the self-reference field is cycle : {@code fl_person_group(parent) } * @param bean * @return true if the self-reference field is cycle * @throws RuntimeDaoException * @see #levelOfParent(PersonGroupBean) */ public boolean isCycleOnParent(PersonGroupBean bean)throws RuntimeDaoException; //53 /** * return top bean that with {@code null} self-reference field : {@code fl_person_group(parent) } * @param id PK# 1 * @return top bean * @throws NullPointerException if input primary key is {@code null} * @throws IllegalStateException if self-reference field is cycle * @throws ObjectRetrievalException not found record by primary key * @throws RuntimeDaoException */ public PersonGroupBean topOfParent(Integer id)throws RuntimeDaoException; //54 /** * see also {@link #topOfParent(Integer)} * @param bean * @return top bean * @throws NullPointerException if input primary key is {@code null} * @throws IllegalStateException if self-reference field is cycle * @throws ObjectRetrievalException not found record by primary key * @throws RuntimeDaoException */ public PersonGroupBean topOfParent(PersonGroupBean bean)throws RuntimeDaoException; //55 /** * Ensures the self-reference field is not cycle : {@code fl_person_group(parent) } * @param id PK# 1 * @return always {@code id} * @throws IllegalStateException if self-reference field is cycle * @throws RuntimeDaoException * @see #isCycleOnParent(Integer) */ public Integer checkCycleOfParent(Integer id)throws RuntimeDaoException; //56 /** * Ensures the self-reference field is not cycle : {@code fl_person_group(parent) }
* @param bean * @return always {@code bean} * @throws IllegalStateException if self-reference field is cycle * @throws RuntimeDaoException * @see #isCycleOnParent(PersonGroupBean) */ public PersonGroupBean checkCycleOfParent(PersonGroupBean bean)throws RuntimeDaoException; //57 /** * return child bean list (self included) by the self-reference field : {@code fl_person_group(parent) }
* throw {@link RuntimeDaoException} if self-reference field is cycle * @param id PK# 1 * @return child bean list,empty list if not found record * @throws IllegalStateException if self-reference field is cycle * @throws RuntimeDaoException */ public java.util.List childListByParent(Integer id)throws RuntimeDaoException; //58 /** * see also {@link #childListByParent(Integer)} * @param bean * @return child bean list,empty list if not found record * @throws RuntimeDaoException */ public java.util.List childListByParent(PersonGroupBean bean)throws RuntimeDaoException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy