-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestDb.java
More file actions
30 lines (20 loc) · 752 Bytes
/
TestDb.java
File metadata and controls
30 lines (20 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.cat.multi.net;
import com.cat.multi.sql.DaoManager;
import com.cat.multi.sql.UriBean;
import java.io.File;
import java.util.Set;
/**
* Created by cat on 2018/1/29.
*/
public class TestDb {
public static void main(String[] args) {
// DaoManager.show();
String key="http://www.99ff6.com/get_file/3/acdd0af6980223213b645a60264fab66/63000/63640/63640.mp4/";
int delete = DaoManager.delete(key);
if (delete > 0) {
new File(DaoManager.select(key)).delete();
}
int delete2 = DaoManager.delete("http://www.51ppx.com/get_file/1/97f362d10918454fd7cc39adb2df67f8/1000/1017/1017.mp4/?rnd=1517152632324");
System.out.println("del==" + delete + " , " + delete2);
}
}