Package com.thortech.xl.util.adapters
Class tcUtilJDBCClass
java.lang.Object
com.thortech.xl.util.adapters.tcUtilJDBCClass
JDBC Utility class
- Version:
- $Revision: 1.6 $
- Author:
- $author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Connection
DB Connectionstatic ResultSet
Result Setstatic Statement
SQL Statementstatic int
Result set Count -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This method closes the conenctionvoid
Creates a coonection to the Databaseint
This method executes the Delete Statementint
This method executes the Insert StatementThis method executes the Select QueryObject[]
This method executes the Select Queryint
This method executes the Update Statement
-
Field Details
-
ioCon
DB Connection -
ioStatement
SQL Statement -
ioResultSet
Result Set -
mnCount
public static int mnCountResult set Count
-
-
Constructor Details
-
tcUtilJDBCClass
public tcUtilJDBCClass()Creates a new tcUtilJDBCClass object.
-
-
Method Details
-
connect
Creates a coonection to the Database- Parameters:
s
- JDBC Drivers1
- jdbc URLs2
- User Names3
- Password
-
close
public void close()This method closes the conenction -
executeSelectStatement
This method executes the Select Query- Parameters:
s
- SQL Query- Returns:
- Vector, having the result set
-
executeSelectStatementAll
This method executes the Select Query- Parameters:
s
- SQL Query- Returns:
- Object Array, having the result set
-
executeInsertStatement
This method executes the Insert Statement- Parameters:
s
- SQL Query- Returns:
- Number of records inserted
-
executeUpdateStatement
This method executes the Update Statement- Parameters:
s
- SQL Query- Returns:
- Number of records updated
-
executeDeleteStatement
This method executes the Delete Statement- Parameters:
s
- SQL Query- Returns:
- Number of records deleted
-