Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public class OnebaseUtil {
  2. private static final String JDBC_DRIVER = "org.postgresql.Driver";
  3. private static Connection conn = null;
  4. private static String url = "jdbc:postgresql://localhost:5432/onebase?user=useradmin&password=123456";
  5.  
  6. private static void dbConnect() { ... }
  7.  
  8. private static void dbDisconnect() { ... }
  9.  
  10. public static ResultSet dbExecuteQuery(String queryStmt) { ... }
  11.  
  12. public static void dbExecuteUpdate(String sqlStmt) { ... }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement