public class tcUtilJDBCClass
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.sql.Connection |
ioCon
DB Connection
|
static java.sql.ResultSet |
ioResultSet
Result Set
|
static java.sql.Statement |
ioStatement
SQL Statement
|
static int |
mnCount
Result set Count
|
Constructor and Description |
---|
tcUtilJDBCClass()
Creates a new tcUtilJDBCClass object.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
This method closes the conenction
|
void |
connect(java.lang.String s,
java.lang.String s1,
java.lang.String s2,
java.lang.String s3)
Creates a coonection to the Database
|
int |
executeDeleteStatement(java.lang.String s)
This method executes the Delete Statement
|
int |
executeInsertStatement(java.lang.String s)
This method executes the Insert Statement
|
java.util.Vector |
executeSelectStatement(java.lang.String s)
This method executes the Select Query
|
java.lang.Object[] |
executeSelectStatementAll(java.lang.String s)
This method executes the Select Query
|
int |
executeUpdateStatement(java.lang.String s)
This method executes the Update Statement
|
public static java.sql.Connection ioCon
public static java.sql.Statement ioStatement
public static java.sql.ResultSet ioResultSet
public static int mnCount
public void connect(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
s
- JDBC Drivers1
- jdbc URLs2
- User Names3
- Passwordpublic void close()
public java.util.Vector executeSelectStatement(java.lang.String s)
s
- SQL Querypublic java.lang.Object[] executeSelectStatementAll(java.lang.String s)
s
- SQL Querypublic int executeInsertStatement(java.lang.String s)
s
- SQL Querypublic int executeUpdateStatement(java.lang.String s)
s
- SQL Querypublic int executeDeleteStatement(java.lang.String s)
s
- SQL Query