Dao layer interface:
Java code
Copy codeThe Code is as follows:
Package com. last999.im. news. dao;
Import java. util .*;
Import com. last999.im. news. entity. KindEntity;
Import com. last999.im. news. web. PageTool;
Public interface KindEntityDao {
Public KindEntity get (String uuid );
Public void save (KindEntity kindEntity );
Public void update (KindEntity kindEntity );
Public void delete (String uuid );
Public void delete (KindEntity kindEntity );
Public List <KindEntity> findAll ();
Public KindEntity findKindEntityByName (String name );
Public List <KindEntity> getKindEntity (PageTool pageInfo );
Public int getRows ();
}
Copy codeThe Code is as follows:
Package com. last999.im. news. dao;
Import java. util .*;
Import com. last999.im. news. entity. KindEntity;
Import com. last999.im. news. web. PageTool;
Public interface KindEntityDao {
Public KindEntity get (String uuid );
Public void save (KindEntity kindEntity );
Public void update (KindEntity kindEntity );
Public void delete (String uuid );
Public void delete (KindEntity kindEntity );
Public List <KindEntity> findAll ();
Public KindEntity findKindEntityByName (String name );
Public List <KindEntity> getKindEntity (PageTool pageInfo );
Public int getRows ();
}