Common data Access Object interface Commdao

Source: Internet
Author: User

1  PackageOrg.guangsoft.dao;2 3 Importjava.util.List;4 ImportJava.util.Set;5 /**6 * Public DAO function7  * @param<K> primary key type to manipulate, implemented by child interface8  * @param<V> Pojo type to manipulate, implemented by sub-interface9  * @authorGuangheTen  */ One  Public InterfaceCommdao<k,v> A { -     //Add Data -      PublicBoolean docreate (V pojo)throwsException; the     //Delete Data -      PublicBoolean DoDelete (V pojo)throwsException; -     //Modifying Data -      PublicBoolean doupdate (V pojo)throwsException; +     //Querying all data -      PublicList<v> FindAll ()throwsException; +     //get data by ID A      PublicV FindByID (K ID)throwsException; at     //get data by name -      PublicV findbyname (String name)throwsException; -     //Bulk delete data by ID -      PublicBoolean Doremovebatch (set<k> IDs)throwsException; -     // -      PublicInteger Getallcount (String column,string KeyWord)throwsException; in     //Paging query Data -      PublicList<v> findallsplit (Integer currentpage,integer linesize,string column,string KeyWord)throwsException; to}

Common data Access Object interface Commdao

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.