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_store table.<br> 014 * Remarks: 二进制数据存储表 015 * @author guyadong 016 */ 017public interface IStoreManager extends TableManager<StoreBean> 018{ 019 ////////////////////////////////////// 020 // PRIMARY KEY METHODS 021 ////////////////////////////////////// 022 023 //1 024 /** 025 * Loads a {@link StoreBean} from the fl_store using primary key fields. 026 * 027 * @param md5 String - PK# 1 028 * @return a unique StoreBean or {@code null} if not found 029 * @throws RuntimeDaoException 030 */ 031 public StoreBean loadByPrimaryKey(String md5)throws RuntimeDaoException; 032 033 //1.1 034 /** 035 * Loads a {@link StoreBean} from the fl_store using primary key fields. 036 * 037 * @param md5 String - PK# 1 038 * @return a unique StoreBean 039 * @throws ObjectRetrievalException if not found 040 * @throws RuntimeDaoException 041 */ 042 public StoreBean loadByPrimaryKeyChecked(String md5) throws RuntimeDaoException,ObjectRetrievalException; 043 044 //1.4 045 /** 046 * Returns true if this fl_store contains row with primary key fields. 047 * @param md5 String - PK# 1 048 * @return 049 * @throws RuntimeDaoException 050 */ 051 public boolean existsPrimaryKey(String md5)throws RuntimeDaoException; 052 //1.4.1 053 /** 054 * Check duplicated row by primary keys,if row exists throw exception 055 * @param md5 String 056 * @return 057 * @throws RuntimeDaoException 058 * @throws ObjectRetrievalException 059 */ 060 public String checkDuplicate(String md5)throws RuntimeDaoException,ObjectRetrievalException; 061 //1.8 062 /** 063 * Loads {@link StoreBean} from the fl_store using primary key fields. 064 * 065 * @param keys primary keys array 066 * @return list of StoreBean 067 * @throws RuntimeDaoException 068 */ 069 public java.util.List<StoreBean> loadByPrimaryKey(String... keys)throws RuntimeDaoException; 070 //1.9 071 /** 072 * Loads {@link StoreBean} from the fl_store using primary key fields. 073 * 074 * @param keys primary keys collection 075 * @return list of StoreBean 076 * @throws RuntimeDaoException 077 */ 078 public java.util.List<StoreBean> loadByPrimaryKey(java.util.Collection<String> 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 md5 String - PK# 1 085 * @return the number of deleted rows 086 * @throws RuntimeDaoException 087 */ 088 public int deleteByPrimaryKey(String md5)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(String... 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<String> keys)throws RuntimeDaoException; 107 //2.4 108 /** 109 * Delete beans.<br> 110 * 111 * @param beans StoreBean collection wille be deleted 112 * @return the number of deleted rows 113 * @throws RuntimeDaoException 114 */ 115 public int delete(StoreBean... beans)throws RuntimeDaoException; 116 //2.5 117 /** 118 * Delete beans.<br> 119 * 120 * @param beans StoreBean collection wille be deleted 121 * @return the number of deleted rows 122 * @throws RuntimeDaoException 123 */ 124 public int delete(java.util.Collection<StoreBean> beans)throws RuntimeDaoException; 125 126 127 //45 128 /** 129 * return a primary key list from {@link StoreBean} array 130 * @param beans 131 * @return 132 */ 133 public java.util.List<String> toPrimaryKeyList(StoreBean... beans); 134 //46 135 /** 136 * return a primary key list from {@link StoreBean} collection 137 * @param beans 138 * @return 139 */ 140 public java.util.List<String> toPrimaryKeyList(java.util.Collection<StoreBean> beans); 141 142}