public class FaceDao extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
long |
deleteAll()
删除全部
|
boolean |
deleteFace(String... keys)
删除人脸
|
List<FaceData> |
findFace(int pageNo,
int pageSize)
分页查询人脸
|
List<Long> |
findIndexList(String... keys)
查询index
|
String |
findKeyByIndex(long index)
使用index查询key
|
void |
save(FaceData faceData) |
int |
updateIndex(long index,
FaceData faceData)
更新index
|
public FaceDao(String dbFilePath)
public void save(FaceData faceData) throws SQLException, ClassNotFoundException
public String findKeyByIndex(long index) throws SQLException, ClassNotFoundException
index - SQLExceptionClassNotFoundExceptionpublic long deleteAll()
throws SQLException,
ClassNotFoundException
SQLExceptionClassNotFoundExceptionpublic List<Long> findIndexList(String... keys) throws SQLException, ClassNotFoundException
keys - SQLExceptionClassNotFoundExceptionpublic boolean deleteFace(String... keys) throws SQLException, ClassNotFoundException
keys - SQLExceptionClassNotFoundExceptionpublic List<FaceData> findFace(int pageNo, int pageSize) throws SQLException, ClassNotFoundException
pageNo - pageSize - SQLExceptionClassNotFoundExceptionpublic int updateIndex(long index,
FaceData faceData)
throws SQLException,
ClassNotFoundException
index - faceData - SQLExceptionClassNotFoundExceptionCopyright © 2025. All rights reserved.