public class Sql extends java.lang.Object implements ISql
| Modifier and Type | Field and Description |
|---|---|
protected java.sql.Connection |
connection |
| Constructor and Description |
|---|
Sql()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close Connection to Database
|
void |
connect()
Connect to Database
|
java.sql.ResultSet |
get(java.lang.String sql)
Return Data from Database
|
boolean |
isConnected()
Check if a Database Connection Exists
|
int |
update(java.lang.String sql)
Execute SQL on Database
|
long |
updateId(java.lang.String sql)
Execute SQL on Database and Return Id of new Row
|
public void connect()
throws java.sql.SQLException
ISqlpublic final void close()
throws java.sql.SQLException
ISqlpublic final boolean isConnected()
throws java.sql.SQLException
ISqlisConnected in interface ISqljava.sql.SQLException - in Case of Errorpublic final int update(java.lang.String sql)
throws java.sql.SQLException
ISqlpublic final long updateId(java.lang.String sql)
throws java.sql.SQLException
ISqlpublic final java.sql.ResultSet get(java.lang.String sql)
throws java.sql.SQLException
ISql