Commit 21032025
This commit is contained in:
@@ -3,7 +3,6 @@ package Database;
|
||||
import static Config.SomeCodes.LocalDateTimeToString;
|
||||
import static Config.SomeCodes.ValidString;
|
||||
|
||||
import lombok.val;
|
||||
import org.tinylog.Logger;
|
||||
|
||||
import java.sql.*;
|
||||
@@ -41,6 +40,8 @@ public class Sqlite {
|
||||
*/
|
||||
public void Insert(PhotoReviewClass pr){
|
||||
if (pr!=null){
|
||||
// System.out.println("Inserting PhotoReviewClass");
|
||||
// System.out.println(pr);
|
||||
Insert(pr.getPrefix(), pr.getFileLeft90(), pr.getFileLeft45(), pr.getFileCenter(), pr.getFileRight45(), pr.getFileRight90(), pr.getThumbLeft90(), pr.getThumbLeft45(), pr.getThumbCenter(), pr.getThumbRight45(), pr.getThumbRight90());
|
||||
}
|
||||
}
|
||||
@@ -107,6 +108,13 @@ public class Sqlite {
|
||||
try{
|
||||
Connection conn = GetConnection();
|
||||
if (conn != null){
|
||||
// System.out.println("Inserting data");
|
||||
// System.out.println("prefix: "+prefix);
|
||||
// System.out.println("fileLeft90: "+fileLeft90);
|
||||
// System.out.println("fileLeft45: "+fileLeft45);
|
||||
// System.out.println("fileCenter: "+fileCenter);
|
||||
// System.out.println("fileRight45: "+fileRight45);
|
||||
// System.out.println("fileRight90: "+fileRight90);
|
||||
|
||||
PreparedStatement stmt = conn.prepareStatement("INSERT INTO photos (DateTime, Prefix, FileLeft90, FileLeft45, FileCenter, FileRight45, FileRight90, ThumbLeft90, ThumbLeft45, ThumbCenter, ThumbRight45, ThumbRight90 ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
|
||||
stmt.setString(1, LocalDateTimeToString(LocalDateTime.now()));
|
||||
|
||||
Reference in New Issue
Block a user