类 FaceDao
- java.lang.Object
-
- cn.smartjavaai.face.dao.FaceDao
-
public class FaceDao extends Object
人脸库持久层- 作者:
- dwj
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 longdeleteAll()删除全部booleandeleteFace(String... keys)删除人脸List<FaceData>findFace(int pageNo, int pageSize)分页查询人脸List<Long>findIndexList(String... keys)查询indexStringfindKeyByIndex(long index)使用index查询keyvoidsave(FaceData faceData)intupdateIndex(long index, FaceData faceData)更新index
-
-
-
构造器详细资料
-
FaceDao
public FaceDao(String dbFilePath)
-
-
方法详细资料
-
save
public void save(FaceData faceData) throws SQLException, ClassNotFoundException
-
findKeyByIndex
public String findKeyByIndex(long index) throws SQLException, ClassNotFoundException
使用index查询key- 参数:
index-- 返回:
- 抛出:
SQLExceptionClassNotFoundException
-
deleteAll
public long deleteAll() throws SQLException, ClassNotFoundException删除全部- 返回:
- 抛出:
SQLExceptionClassNotFoundException
-
findIndexList
public List<Long> findIndexList(String... keys) throws SQLException, ClassNotFoundException
查询index- 参数:
keys-- 返回:
- 抛出:
SQLExceptionClassNotFoundException
-
deleteFace
public boolean deleteFace(String... keys) throws SQLException, ClassNotFoundException
删除人脸- 参数:
keys-- 返回:
- 抛出:
SQLExceptionClassNotFoundException
-
findFace
public List<FaceData> findFace(int pageNo, int pageSize) throws SQLException, ClassNotFoundException
分页查询人脸- 参数:
pageNo-pageSize-- 返回:
- 抛出:
SQLExceptionClassNotFoundException
-
updateIndex
public int updateIndex(long index, FaceData faceData) throws SQLException, ClassNotFoundException更新index- 参数:
index-faceData-- 返回:
- 抛出:
SQLExceptionClassNotFoundException
-
-