001// ______________________________________________________ 002// Generated by sql2java - https://github.com/10km/sql2java-2-6-7 (custom branch) 003// modified by guyadong from 004// sql2java original version https://sourceforge.net/projects/sql2java/ 005// JDBC driver used at code generation time: com.mysql.jdbc.Driver 006// template: manager.interface.java.vm 007// ______________________________________________________ 008package net.gdface.facelog.db; 009import net.gdface.facelog.db.exception.ObjectRetrievalException; 010import net.gdface.facelog.db.exception.RuntimeDaoException; 011 012/** 013 * Interface to handle database calls (save, load, count, etc...) for the fl_person table.<br> 014 * Remarks: 人员基本描述信息 015 * @author guyadong 016 */ 017public interface IPersonManager extends TableManager<PersonBean> 018{ 019 ////////////////////////////////////// 020 // PRIMARY KEY METHODS 021 ////////////////////////////////////// 022 023 //1 024 /** 025 * Loads a {@link PersonBean} from the fl_person using primary key fields. 026 * 027 * @param id Integer - PK# 1 028 * @return a unique PersonBean or {@code null} if not found 029 * @throws RuntimeDaoException 030 */ 031 public PersonBean loadByPrimaryKey(Integer id)throws RuntimeDaoException; 032 033 //1.1 034 /** 035 * Loads a {@link PersonBean} from the fl_person using primary key fields. 036 * 037 * @param id Integer - PK# 1 038 * @return a unique PersonBean 039 * @throws ObjectRetrievalException if not found 040 * @throws RuntimeDaoException 041 */ 042 public PersonBean loadByPrimaryKeyChecked(Integer id) throws RuntimeDaoException,ObjectRetrievalException; 043 044 //1.4 045 /** 046 * Returns true if this fl_person contains row with primary key fields. 047 * @param id Integer - PK# 1 048 * @return 049 * @throws RuntimeDaoException 050 */ 051 public boolean existsPrimaryKey(Integer id)throws RuntimeDaoException; 052 //1.4.1 053 /** 054 * Check duplicated row by primary keys,if row exists throw exception 055 * @param id Integer 056 * @return 057 * @throws RuntimeDaoException 058 * @throws ObjectRetrievalException 059 */ 060 public Integer checkDuplicate(Integer id)throws RuntimeDaoException,ObjectRetrievalException; 061 //1.8 062 /** 063 * Loads {@link PersonBean} from the fl_person using primary key fields. 064 * 065 * @param keys primary keys array 066 * @return list of PersonBean 067 * @throws RuntimeDaoException 068 */ 069 public java.util.List<PersonBean> loadByPrimaryKey(int... keys)throws RuntimeDaoException; 070 //1.9 071 /** 072 * Loads {@link PersonBean} from the fl_person using primary key fields. 073 * 074 * @param keys primary keys collection 075 * @return list of PersonBean 076 * @throws RuntimeDaoException 077 */ 078 public java.util.List<PersonBean> loadByPrimaryKey(java.util.Collection<Integer> keys)throws RuntimeDaoException; 079 //2 080 /** 081 * Delete row according to its primary keys.<br> 082 * all keys must not be null 083 * 084 * @param id Integer - PK# 1 085 * @return the number of deleted rows 086 * @throws RuntimeDaoException 087 */ 088 public int deleteByPrimaryKey(Integer id)throws RuntimeDaoException; 089 //2.2 090 /** 091 * Delete rows according to primary key.<br> 092 * 093 * @param keys primary keys array 094 * @return the number of deleted rows 095 * @throws RuntimeDaoException 096 */ 097 public int deleteByPrimaryKey(int... keys)throws RuntimeDaoException; 098 //2.3 099 /** 100 * Delete rows according to primary key.<br> 101 * 102 * @param keys primary keys collection 103 * @return the number of deleted rows 104 * @throws RuntimeDaoException 105 */ 106 public int deleteByPrimaryKey(java.util.Collection<Integer> keys)throws RuntimeDaoException; 107 //2.4 108 /** 109 * Delete beans.<br> 110 * 111 * @param beans PersonBean collection wille be deleted 112 * @return the number of deleted rows 113 * @throws RuntimeDaoException 114 */ 115 public int delete(PersonBean... beans)throws RuntimeDaoException; 116 //2.5 117 /** 118 * Delete beans.<br> 119 * 120 * @param beans PersonBean collection wille be deleted 121 * @return the number of deleted rows 122 * @throws RuntimeDaoException 123 */ 124 public int delete(java.util.Collection<PersonBean> beans)throws RuntimeDaoException; 125 126 127 ////////////////////////////////////// 128 // GET/SET IMPORTED KEY BEAN METHOD 129 ////////////////////////////////////// 130 //3.1 GET IMPORTED 131 /** 132 * Retrieves the {@link FeatureBean} object from the fl_feature.person_id field.<BR> 133 * FK_NAME : fl_feature_ibfk_1 134 * @param bean the {@link PersonBean} 135 * @return the associated {@link FeatureBean} beans or {@code null} if {@code bean} is {@code null} 136 * @throws RuntimeDaoException 137 */ 138 public FeatureBean[] getFeatureBeansByPersonId(PersonBean bean)throws RuntimeDaoException; 139 140 //3.1.2 GET IMPORTED 141 /** 142 * Retrieves the {@link FeatureBean} object from the fl_feature.person_id field.<BR> 143 * FK_NAME : fl_feature_ibfk_1 144 * @param idOfPerson Integer - PK# 1 145 * @return the associated {@link FeatureBean} beans or {@code null} if {@code bean} is {@code null} 146 * @throws RuntimeDaoException 147 */ 148 public FeatureBean[] getFeatureBeansByPersonId(Integer idOfPerson)throws RuntimeDaoException; 149 150 //3.2 GET IMPORTED 151 /** 152 * see also #getFeatureBeansByPersonIdAsList(PersonBean,int,int) 153 * @param bean 154 * @return 155 * @throws RuntimeDaoException 156 */ 157 public java.util.List<FeatureBean> getFeatureBeansByPersonIdAsList(PersonBean bean)throws RuntimeDaoException; 158 159 //3.2.2 GET IMPORTED 160 /** 161 * Retrieves the {@link FeatureBean} object from fl_feature.person_id field.<BR> 162 * FK_NAME:fl_feature_ibfk_1 163 * @param idOfPerson Integer - PK# 1 164 * @return the associated {@link FeatureBean} beans 165 * @throws RuntimeDaoException 166 */ 167 public java.util.List<FeatureBean> getFeatureBeansByPersonIdAsList(Integer idOfPerson)throws RuntimeDaoException; 168 //3.2.3 DELETE IMPORTED 169 /** 170 * delete the associated {@link FeatureBean} objects from fl_feature.person_id field.<BR> 171 * FK_NAME:fl_feature_ibfk_1 172 * @param idOfPerson Integer - PK# 1 173 * @return the number of deleted rows 174 * @throws RuntimeDaoException 175 */ 176 public int deleteFeatureBeansByPersonId(Integer idOfPerson)throws RuntimeDaoException; 177 //3.2.4 GET IMPORTED 178 /** 179 * Retrieves the {@link FeatureBean} object from fl_feature.person_id field.<BR> 180 * FK_NAME:fl_feature_ibfk_1 181 * @param bean the {@link PersonBean} 182 * @param startRow the start row to be used (first row = 1, last row=-1) 183 * @param numRows the number of rows to be retrieved (all rows = a negative number) 184 * @return the associated {@link FeatureBean} beans or empty list if {@code bean} is {@code null} 185 * @throws RuntimeDaoException 186 */ 187 public java.util.List<FeatureBean> getFeatureBeansByPersonIdAsList(PersonBean bean,int startRow,int numRows)throws RuntimeDaoException; 188 //3.3 SET IMPORTED 189 /** 190 * set the {@link FeatureBean} object array associate to PersonBean by the fl_feature.person_id field.<BR> 191 * FK_NAME : fl_feature_ibfk_1 192 * @param bean the referenced {@link PersonBean} 193 * @param importedBeans imported beans from fl_feature 194 * @return importedBeans always 195 * @see IFeatureManager#setReferencedByPersonId(FeatureBean, PersonBean) 196 * @throws RuntimeDaoException 197 */ 198 public FeatureBean[] setFeatureBeansByPersonId(PersonBean bean , FeatureBean[] importedBeans)throws RuntimeDaoException; 199 200 //3.4 SET IMPORTED 201 /** 202 * set the {@link FeatureBean} object java.util.Collection associate to PersonBean by the fl_feature.person_id field.<BR> 203 * FK_NAME:fl_feature_ibfk_1 204 * @param bean the referenced {@link PersonBean} 205 * @param importedBeans imported beans from fl_feature 206 * @return importedBeans always 207 * @see IFeatureManager#setReferencedByPersonId(FeatureBean, PersonBean) 208 * @throws RuntimeDaoException 209 */ 210 public <C extends java.util.Collection<FeatureBean>> C setFeatureBeansByPersonId(PersonBean bean , C importedBeans)throws RuntimeDaoException; 211 212 //3.1 GET IMPORTED 213 /** 214 * Retrieves the {@link LogBean} object from the fl_log.person_id field.<BR> 215 * FK_NAME : fl_log_ibfk_1 216 * @param bean the {@link PersonBean} 217 * @return the associated {@link LogBean} beans or {@code null} if {@code bean} is {@code null} 218 * @throws RuntimeDaoException 219 */ 220 public LogBean[] getLogBeansByPersonId(PersonBean bean)throws RuntimeDaoException; 221 222 //3.1.2 GET IMPORTED 223 /** 224 * Retrieves the {@link LogBean} object from the fl_log.person_id field.<BR> 225 * FK_NAME : fl_log_ibfk_1 226 * @param idOfPerson Integer - PK# 1 227 * @return the associated {@link LogBean} beans or {@code null} if {@code bean} is {@code null} 228 * @throws RuntimeDaoException 229 */ 230 public LogBean[] getLogBeansByPersonId(Integer idOfPerson)throws RuntimeDaoException; 231 232 //3.2 GET IMPORTED 233 /** 234 * see also #getLogBeansByPersonIdAsList(PersonBean,int,int) 235 * @param bean 236 * @return 237 * @throws RuntimeDaoException 238 */ 239 public java.util.List<LogBean> getLogBeansByPersonIdAsList(PersonBean bean)throws RuntimeDaoException; 240 241 //3.2.2 GET IMPORTED 242 /** 243 * Retrieves the {@link LogBean} object from fl_log.person_id field.<BR> 244 * FK_NAME:fl_log_ibfk_1 245 * @param idOfPerson Integer - PK# 1 246 * @return the associated {@link LogBean} beans 247 * @throws RuntimeDaoException 248 */ 249 public java.util.List<LogBean> getLogBeansByPersonIdAsList(Integer idOfPerson)throws RuntimeDaoException; 250 //3.2.3 DELETE IMPORTED 251 /** 252 * delete the associated {@link LogBean} objects from fl_log.person_id field.<BR> 253 * FK_NAME:fl_log_ibfk_1 254 * @param idOfPerson Integer - PK# 1 255 * @return the number of deleted rows 256 * @throws RuntimeDaoException 257 */ 258 public int deleteLogBeansByPersonId(Integer idOfPerson)throws RuntimeDaoException; 259 //3.2.4 GET IMPORTED 260 /** 261 * Retrieves the {@link LogBean} object from fl_log.person_id field.<BR> 262 * FK_NAME:fl_log_ibfk_1 263 * @param bean the {@link PersonBean} 264 * @param startRow the start row to be used (first row = 1, last row=-1) 265 * @param numRows the number of rows to be retrieved (all rows = a negative number) 266 * @return the associated {@link LogBean} beans or empty list if {@code bean} is {@code null} 267 * @throws RuntimeDaoException 268 */ 269 public java.util.List<LogBean> getLogBeansByPersonIdAsList(PersonBean bean,int startRow,int numRows)throws RuntimeDaoException; 270 //3.3 SET IMPORTED 271 /** 272 * set the {@link LogBean} object array associate to PersonBean by the fl_log.person_id field.<BR> 273 * FK_NAME : fl_log_ibfk_1 274 * @param bean the referenced {@link PersonBean} 275 * @param importedBeans imported beans from fl_log 276 * @return importedBeans always 277 * @see ILogManager#setReferencedByPersonId(LogBean, PersonBean) 278 * @throws RuntimeDaoException 279 */ 280 public LogBean[] setLogBeansByPersonId(PersonBean bean , LogBean[] importedBeans)throws RuntimeDaoException; 281 282 //3.4 SET IMPORTED 283 /** 284 * set the {@link LogBean} object java.util.Collection associate to PersonBean by the fl_log.person_id field.<BR> 285 * FK_NAME:fl_log_ibfk_1 286 * @param bean the referenced {@link PersonBean} 287 * @param importedBeans imported beans from fl_log 288 * @return importedBeans always 289 * @see ILogManager#setReferencedByPersonId(LogBean, PersonBean) 290 * @throws RuntimeDaoException 291 */ 292 public <C extends java.util.Collection<LogBean>> C setLogBeansByPersonId(PersonBean bean , C importedBeans)throws RuntimeDaoException; 293 294 //3.5 SYNC SAVE 295 /** 296 * Save the PersonBean bean and referenced beans and imported beans into the database. 297 * 298 * @param bean the {@link PersonBean} bean to be saved 299 * @param refImageByImageMd5 the {@link ImageBean} bean referenced by {@link PersonBean} 300 * @param refPersongroupByGroupId the {@link PersonGroupBean} bean referenced by {@link PersonBean} 301 * @param impFeatureByPersonId the {@link FeatureBean} bean refer to {@link PersonBean} 302 * @param impLogByPersonId the {@link LogBean} bean refer to {@link PersonBean} 303 * @return the inserted or updated {@link PersonBean} bean 304 * @throws RuntimeDaoException 305 */ 306 public PersonBean save(PersonBean bean 307 , ImageBean refImageByImageMd5 , PersonGroupBean refPersongroupByGroupId 308 , FeatureBean[] impFeatureByPersonId , LogBean[] impLogByPersonId )throws RuntimeDaoException; 309 //3.6 SYNC SAVE AS TRANSACTION 310 /** 311 * Transaction version for sync save<br> 312 * see also {@link #save(PersonBean , ImageBean , PersonGroupBean , FeatureBean[] , LogBean[] )} 313 * @param bean the {@link PersonBean} bean to be saved 314 * @param refImageByImageMd5 the {@link ImageBean} bean referenced by {@link PersonBean} 315 * @param refPersongroupByGroupId the {@link PersonGroupBean} bean referenced by {@link PersonBean} 316 * @param impFeatureByPersonId the {@link FeatureBean} bean refer to {@link PersonBean} 317 * @param impLogByPersonId the {@link LogBean} bean refer to {@link PersonBean} 318 * @return the inserted or updated {@link PersonBean} bean 319 * @throws RuntimeDaoException 320 */ 321 public PersonBean saveAsTransaction(final PersonBean bean 322 ,final ImageBean refImageByImageMd5 ,final PersonGroupBean refPersongroupByGroupId 323 ,final FeatureBean[] impFeatureByPersonId ,final LogBean[] impLogByPersonId )throws RuntimeDaoException; 324 //3.7 SYNC SAVE 325 /** 326 * Save the PersonBean bean and referenced beans and imported beans into the database. 327 * 328 * @param bean the {@link PersonBean} bean to be saved 329 * @param refImageByImageMd5 the {@link ImageBean} bean referenced by {@link PersonBean} 330 * @param refPersongroupByGroupId the {@link PersonGroupBean} bean referenced by {@link PersonBean} 331 * @param impFeatureByPersonId the {@link FeatureBean} bean refer to {@link PersonBean} 332 * @param impLogByPersonId the {@link LogBean} bean refer to {@link PersonBean} 333 * @return the inserted or updated {@link PersonBean} bean 334 * @throws RuntimeDaoException 335 */ 336 public PersonBean save(PersonBean bean 337 , ImageBean refImageByImageMd5 , PersonGroupBean refPersongroupByGroupId 338 , java.util.Collection<FeatureBean> impFeatureByPersonId , java.util.Collection<LogBean> impLogByPersonId )throws RuntimeDaoException; 339 //3.8 SYNC SAVE AS TRANSACTION 340 /** 341 * Transaction version for sync save<br> 342 * see also {@link #save(PersonBean , ImageBean , PersonGroupBean , java.util.Collection , java.util.Collection )} 343 * @param bean the {@link PersonBean} bean to be saved 344 * @param refImageByImageMd5 the {@link ImageBean} bean referenced by {@link PersonBean} 345 * @param refPersongroupByGroupId the {@link PersonGroupBean} bean referenced by {@link PersonBean} 346 * @param impFeatureByPersonId the {@link FeatureBean} bean refer to {@link PersonBean} 347 * @param impLogByPersonId the {@link LogBean} bean refer to {@link PersonBean} 348 * @return the inserted or updated {@link PersonBean} bean 349 * @throws RuntimeDaoException 350 */ 351 public PersonBean saveAsTransaction(final PersonBean bean 352 ,final ImageBean refImageByImageMd5 ,final PersonGroupBean refPersongroupByGroupId 353 ,final java.util.Collection<FeatureBean> impFeatureByPersonId ,final java.util.Collection<LogBean> impLogByPersonId )throws RuntimeDaoException; 354 ////////////////////////////////////// 355 // GET/SET FOREIGN KEY BEAN METHOD 356 ////////////////////////////////////// 357 //5.1 GET REFERENCED VALUE 358 /** 359 * Retrieves the {@link ImageBean} object referenced by {@link PersonBean#getImageMd5}() field.<br> 360 * FK_NAME : fl_person_ibfk_2 361 * @param bean the {@link PersonBean} 362 * @return the associated {@link ImageBean} bean or {@code null} if {@code bean} is {@code null} 363 * @throws RuntimeDaoException 364 */ 365 public ImageBean getReferencedByImageMd5(PersonBean bean)throws RuntimeDaoException; 366 367 //5.2 SET REFERENCED 368 /** 369 * Associates the {@link PersonBean} object to the {@link ImageBean} object by {@link PersonBean#getImageMd5}() field. 370 * 371 * @param bean the {@link PersonBean} object to use 372 * @param beanToSet the {@link ImageBean} object to associate to the {@link PersonBean} 373 * @return always beanToSet saved 374 * @throws RuntimeDaoException 375 */ 376 public ImageBean setReferencedByImageMd5(PersonBean bean, ImageBean beanToSet)throws RuntimeDaoException; 377 //5.1 GET REFERENCED VALUE 378 /** 379 * Retrieves the {@link PersonGroupBean} object referenced by {@link PersonBean#getGroupId}() field.<br> 380 * FK_NAME : fl_person_ibfk_1 381 * @param bean the {@link PersonBean} 382 * @return the associated {@link PersonGroupBean} bean or {@code null} if {@code bean} is {@code null} 383 * @throws RuntimeDaoException 384 */ 385 public PersonGroupBean getReferencedByGroupId(PersonBean bean)throws RuntimeDaoException; 386 387 //5.2 SET REFERENCED 388 /** 389 * Associates the {@link PersonBean} object to the {@link PersonGroupBean} object by {@link PersonBean#getGroupId}() field. 390 * 391 * @param bean the {@link PersonBean} object to use 392 * @param beanToSet the {@link PersonGroupBean} object to associate to the {@link PersonBean} 393 * @return always beanToSet saved 394 * @throws RuntimeDaoException 395 */ 396 public PersonGroupBean setReferencedByGroupId(PersonBean bean, PersonGroupBean beanToSet)throws RuntimeDaoException; 397 //_____________________________________________________________________ 398 // 399 // USING INDICES 400 //_____________________________________________________________________ 401 402 403 /** 404 * Retrieves an unique PersonBean using the image_md5 index. 405 * 406 * @param imageMd5 the image_md5 column's value filter 407 * @return an PersonBean,otherwise null if not found or exists null in input arguments 408 * @throws RuntimeDaoException 409 */ 410 public PersonBean loadByIndexImageMd5(String imageMd5)throws RuntimeDaoException; 411 /** 412 * Retrieves an unique PersonBean using the image_md5 index. 413 * 414 * @param imageMd5 the image_md5 column's value filter. must not be null 415 * @return an PersonBean 416 * @throws NullPointerException exists null in input arguments 417 * @throws ObjectRetrievalException if not found 418 * @throws RuntimeDaoException 419 */ 420 public PersonBean loadByIndexImageMd5Checked(String imageMd5)throws RuntimeDaoException,ObjectRetrievalException; 421 /** 422 * Retrieves an unique PersonBean for each image_md5 index. 423 * 424 * @param indexs index array 425 * @return an list of PersonBean 426 * @throws RuntimeDaoException 427 */ 428 public java.util.List<PersonBean> loadByIndexImageMd5(String... indexs)throws RuntimeDaoException; 429 /** 430 * Retrieves an unique PersonBean for each image_md5 index. 431 * 432 * @param indexs index collection 433 * @return an list of PersonBean 434 * @throws RuntimeDaoException 435 */ 436 public java.util.List<PersonBean> loadByIndexImageMd5(java.util.Collection<String> indexs)throws RuntimeDaoException; 437 /** 438 * Deletes rows for each image_md5 index. 439 * 440 * @param indexs index array 441 * @return the number of deleted rows 442 * @throws RuntimeDaoException 443 */ 444 public int deleteByIndexImageMd5(String... indexs)throws RuntimeDaoException; 445 /** 446 * Deletes rows for each image_md5 index. 447 * 448 * @param indexs index collection 449 * @return the number of deleted rows 450 * @throws RuntimeDaoException 451 */ 452 public int deleteByIndexImageMd5(java.util.Collection<String> indexs)throws RuntimeDaoException; 453 454 /** 455 * Deletes rows using the image_md5 index. 456 * 457 * @param imageMd5 the image_md5 column's value filter. 458 * @return the number of deleted objects 459 * @throws RuntimeDaoException 460 */ 461 public int deleteByIndexImageMd5(String imageMd5)throws RuntimeDaoException; 462 463 464 /** 465 * Retrieves an unique PersonBean using the mobile_phone index. 466 * 467 * @param mobilePhone the mobile_phone column's value filter 468 * @return an PersonBean,otherwise null if not found or exists null in input arguments 469 * @throws RuntimeDaoException 470 */ 471 public PersonBean loadByIndexMobilePhone(String mobilePhone)throws RuntimeDaoException; 472 /** 473 * Retrieves an unique PersonBean using the mobile_phone index. 474 * 475 * @param mobilePhone the mobile_phone column's value filter. must not be null 476 * @return an PersonBean 477 * @throws NullPointerException exists null in input arguments 478 * @throws ObjectRetrievalException if not found 479 * @throws RuntimeDaoException 480 */ 481 public PersonBean loadByIndexMobilePhoneChecked(String mobilePhone)throws RuntimeDaoException,ObjectRetrievalException; 482 /** 483 * Retrieves an unique PersonBean for each mobile_phone index. 484 * 485 * @param indexs index array 486 * @return an list of PersonBean 487 * @throws RuntimeDaoException 488 */ 489 public java.util.List<PersonBean> loadByIndexMobilePhone(String... indexs)throws RuntimeDaoException; 490 /** 491 * Retrieves an unique PersonBean for each mobile_phone index. 492 * 493 * @param indexs index collection 494 * @return an list of PersonBean 495 * @throws RuntimeDaoException 496 */ 497 public java.util.List<PersonBean> loadByIndexMobilePhone(java.util.Collection<String> indexs)throws RuntimeDaoException; 498 /** 499 * Deletes rows for each mobile_phone index. 500 * 501 * @param indexs index array 502 * @return the number of deleted rows 503 * @throws RuntimeDaoException 504 */ 505 public int deleteByIndexMobilePhone(String... indexs)throws RuntimeDaoException; 506 /** 507 * Deletes rows for each mobile_phone index. 508 * 509 * @param indexs index collection 510 * @return the number of deleted rows 511 * @throws RuntimeDaoException 512 */ 513 public int deleteByIndexMobilePhone(java.util.Collection<String> indexs)throws RuntimeDaoException; 514 515 /** 516 * Deletes rows using the mobile_phone index. 517 * 518 * @param mobilePhone the mobile_phone column's value filter. 519 * @return the number of deleted objects 520 * @throws RuntimeDaoException 521 */ 522 public int deleteByIndexMobilePhone(String mobilePhone)throws RuntimeDaoException; 523 524 525 /** 526 * Retrieves an unique PersonBean using the papers_num index. 527 * 528 * @param papersNum the papers_num column's value filter 529 * @return an PersonBean,otherwise null if not found or exists null in input arguments 530 * @throws RuntimeDaoException 531 */ 532 public PersonBean loadByIndexPapersNum(String papersNum)throws RuntimeDaoException; 533 /** 534 * Retrieves an unique PersonBean using the papers_num index. 535 * 536 * @param papersNum the papers_num column's value filter. must not be null 537 * @return an PersonBean 538 * @throws NullPointerException exists null in input arguments 539 * @throws ObjectRetrievalException if not found 540 * @throws RuntimeDaoException 541 */ 542 public PersonBean loadByIndexPapersNumChecked(String papersNum)throws RuntimeDaoException,ObjectRetrievalException; 543 /** 544 * Retrieves an unique PersonBean for each papers_num index. 545 * 546 * @param indexs index array 547 * @return an list of PersonBean 548 * @throws RuntimeDaoException 549 */ 550 public java.util.List<PersonBean> loadByIndexPapersNum(String... indexs)throws RuntimeDaoException; 551 /** 552 * Retrieves an unique PersonBean for each papers_num index. 553 * 554 * @param indexs index collection 555 * @return an list of PersonBean 556 * @throws RuntimeDaoException 557 */ 558 public java.util.List<PersonBean> loadByIndexPapersNum(java.util.Collection<String> indexs)throws RuntimeDaoException; 559 /** 560 * Deletes rows for each papers_num index. 561 * 562 * @param indexs index array 563 * @return the number of deleted rows 564 * @throws RuntimeDaoException 565 */ 566 public int deleteByIndexPapersNum(String... indexs)throws RuntimeDaoException; 567 /** 568 * Deletes rows for each papers_num index. 569 * 570 * @param indexs index collection 571 * @return the number of deleted rows 572 * @throws RuntimeDaoException 573 */ 574 public int deleteByIndexPapersNum(java.util.Collection<String> indexs)throws RuntimeDaoException; 575 576 /** 577 * Deletes rows using the papers_num index. 578 * 579 * @param papersNum the papers_num column's value filter. 580 * @return the number of deleted objects 581 * @throws RuntimeDaoException 582 */ 583 public int deleteByIndexPapersNum(String papersNum)throws RuntimeDaoException; 584 585 586 /** 587 * Retrieves an array of PersonBean using the expiry_date index. 588 * 589 * @param expiryDate the expiry_date column's value filter. 590 * @return an array of PersonBean 591 * @throws RuntimeDaoException 592 */ 593 public PersonBean[] loadByIndexExpiryDate(java.util.Date expiryDate)throws RuntimeDaoException; 594 595 /** 596 * Retrieves a list of PersonBean using the expiry_date index. 597 * 598 * @param expiryDate the expiry_date column's value filter. 599 * @return a list of PersonBean 600 * @throws RuntimeDaoException 601 */ 602 public java.util.List<PersonBean> loadByIndexExpiryDateAsList(java.util.Date expiryDate)throws RuntimeDaoException; 603 604 /** 605 * Deletes rows using the expiry_date index. 606 * 607 * @param expiryDate the expiry_date column's value filter. 608 * @return the number of deleted objects 609 * @throws RuntimeDaoException 610 */ 611 public int deleteByIndexExpiryDate(java.util.Date expiryDate)throws RuntimeDaoException; 612 613 614 /** 615 * Retrieves an array of PersonBean using the group_id index. 616 * 617 * @param groupId the group_id column's value filter. 618 * @return an array of PersonBean 619 * @throws RuntimeDaoException 620 */ 621 public PersonBean[] loadByIndexGroupId(Integer groupId)throws RuntimeDaoException; 622 623 /** 624 * Retrieves a list of PersonBean using the group_id index. 625 * 626 * @param groupId the group_id column's value filter. 627 * @return a list of PersonBean 628 * @throws RuntimeDaoException 629 */ 630 public java.util.List<PersonBean> loadByIndexGroupIdAsList(Integer groupId)throws RuntimeDaoException; 631 632 /** 633 * Deletes rows using the group_id index. 634 * 635 * @param groupId the group_id column's value filter. 636 * @return the number of deleted objects 637 * @throws RuntimeDaoException 638 */ 639 public int deleteByIndexGroupId(Integer groupId)throws RuntimeDaoException; 640 641 642 //45 643 /** 644 * return a primary key list from {@link PersonBean} array 645 * @param beans 646 * @return 647 */ 648 public java.util.List<Integer> toPrimaryKeyList(PersonBean... beans); 649 //46 650 /** 651 * return a primary key list from {@link PersonBean} collection 652 * @param beans 653 * @return 654 */ 655 public java.util.List<Integer> toPrimaryKeyList(java.util.Collection<PersonBean> beans); 656 657}