Class SQLCommunication
- java.lang.Object
-
- de.simonsator.partyandfriends.communication.sql.SQLCommunication
-
public abstract class SQLCommunication extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
DATABASE
The MySQL DATABASE
-
Constructor Summary
Constructors Constructor Description SQLCommunication(java.lang.String pDatabase, java.lang.String pURL, java.lang.String pUserName, java.lang.String pPassword)
SQLCommunication(java.lang.String pDatabase, java.lang.String pURL, java.lang.String pUserName, java.lang.String pPassword, boolean pUseSSL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
close(java.sql.PreparedStatement pPrepStmt)
protected void
close(java.sql.ResultSet rs, java.sql.Statement stmt)
protected void
close(java.sql.ResultSet rs, java.sql.Statement stmt, java.sql.PreparedStatement prepStmt)
void
closeConnection()
protected java.sql.Connection
getConnection()
-
-
-
Constructor Detail
-
SQLCommunication
public SQLCommunication(java.lang.String pDatabase, java.lang.String pURL, java.lang.String pUserName, java.lang.String pPassword)
-
SQLCommunication
public SQLCommunication(java.lang.String pDatabase, java.lang.String pURL, java.lang.String pUserName, java.lang.String pPassword, boolean pUseSSL)
-
-
Method Detail
-
close
protected void close(java.sql.ResultSet rs, java.sql.Statement stmt)
-
close
protected void close(java.sql.ResultSet rs, java.sql.Statement stmt, java.sql.PreparedStatement prepStmt)
-
getConnection
protected java.sql.Connection getConnection()
-
close
protected void close(java.sql.PreparedStatement pPrepStmt)
-
closeConnection
public void closeConnection()
-
-