Package samuelal.squelized
Class PostgreSQLConnection
- java.lang.Object
-
- samuelal.squelized.SQLConnection
-
- samuelal.squelized.PostgreSQLConnection
-
public class PostgreSQLConnection extends SQLConnection
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Propertiespropsprotected java.lang.Stringurl-
Fields inherited from class samuelal.squelized.SQLConnection
VERSION
-
-
Constructor Summary
Constructors Constructor Description PostgreSQLConnection(java.lang.String url)Constructor with full urlPostgreSQLConnection(java.lang.String user, java.lang.String password, java.lang.String url)Constructor taking in user, password, and url stringsPostgreSQLConnection(java.lang.String url, java.util.Properties props)Constructor with url and pre-made Properties object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DatabaseTypegetDatabaseType()protected java.sql.ConnectiongetSQLConnection()Factory method to create connection object-
Methods inherited from class samuelal.squelized.SQLConnection
getColumn, getColumns, getTable, insertIntoColumns, runQuery, updateQuery, version, welcome
-
-
-
-
Constructor Detail
-
PostgreSQLConnection
public PostgreSQLConnection(java.lang.String url)
Constructor with full url- Parameters:
url-
-
PostgreSQLConnection
public PostgreSQLConnection(java.lang.String url, java.util.Properties props)Constructor with url and pre-made Properties object- Parameters:
url-Properties- props
-
PostgreSQLConnection
public PostgreSQLConnection(java.lang.String user, java.lang.String password, java.lang.String url)Constructor taking in user, password, and url strings- Parameters:
user-password-url-
-
-
Method Detail
-
getSQLConnection
protected java.sql.Connection getSQLConnection()
Factory method to create connection object- Specified by:
getSQLConnectionin classSQLConnection- Returns:
- Connection connection object
-
getDatabaseType
protected DatabaseType getDatabaseType()
- Specified by:
getDatabaseTypein classSQLConnection
-
-