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

net.gdface.facelog.db.IStoreManager 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_store table.
* Remarks: 二进制数据存储表 * @author guyadong */ public interface IStoreManager extends TableManager { ////////////////////////////////////// // PRIMARY KEY METHODS ////////////////////////////////////// //1 /** * Loads a {@link StoreBean} from the fl_store using primary key fields. * * @param md5 String - PK# 1 * @return a unique StoreBean or {@code null} if not found * @throws RuntimeDaoException */ public StoreBean loadByPrimaryKey(String md5)throws RuntimeDaoException; //1.1 /** * Loads a {@link StoreBean} from the fl_store using primary key fields. * * @param md5 String - PK# 1 * @return a unique StoreBean * @throws ObjectRetrievalException if not found * @throws RuntimeDaoException */ public StoreBean loadByPrimaryKeyChecked(String md5) throws RuntimeDaoException,ObjectRetrievalException; //1.4 /** * check if contains row with primary key fields. * @param md5 String - PK# 1 * @return true if this fl_store contains row with primary key fields. * @throws RuntimeDaoException */ public boolean existsPrimaryKey(String md5)throws RuntimeDaoException; //1.4.1 /** * Check duplicated row by primary keys,if row exists throw exception * @param md5 primary keys * @return md5 * @throws RuntimeDaoException * @throws ObjectRetrievalException */ public String checkDuplicate(String md5)throws RuntimeDaoException,ObjectRetrievalException; //1.8 /** * Loads {@link StoreBean} from the fl_store using primary key fields. * * @param keys primary keys array * @return list of StoreBean * @throws RuntimeDaoException */ public java.util.List loadByPrimaryKey(String... keys)throws RuntimeDaoException; //1.9 /** * Loads {@link StoreBean} from the fl_store using primary key fields. * * @param keys primary keys collection * @return list of StoreBean * @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 md5 String - PK# 1 * @return the number of deleted rows * @throws RuntimeDaoException */ public int deleteByPrimaryKey(String md5)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(String... 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; //45 /** * return a primary key list from {@link StoreBean} array * @param beans * @return primary key list */ public java.util.List toPrimaryKeyList(StoreBean... beans); //46 /** * return a primary key list from {@link StoreBean} collection * @param beans * @return primary key list */ public java.util.List toPrimaryKeyList(java.util.Collection beans); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy