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 ConnectionDB Connectionstatic ResultSetResult Setstatic StatementSQL Statementstatic intResult set Count -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This method closes the conenctionvoidCreates a coonection to the DatabaseintThis method executes the Delete StatementintThis method executes the Insert StatementThis method executes the Select QueryObject[]This method executes the Select QueryintThis 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
-