Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. class UserDatabase {
  2. public void connectToDatabase() { // make database connection }
  3.  
  4. public void displaySingleUserInfo(int userId) { // fetch user with userId info from the database }
  5.  
  6. public void displayAllUsersInfo() { // display all the users in the database info }
  7.  
  8. public void closeDatabaseConnection() { // close database connection and freeup resource }
  9.  
  10. public void checkDatabaseConnectionStatus() { // check database connection status}
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement