Package pt.opensoft.util

Examples of pt.opensoft.util.Timer.start()


   * @see java.sql.Statement#executeQuery(String)
   * @see java.sql.Statement#executeUpdate(String)
   */
  public boolean execute () throws SQLException {
    Timer timer = new Timer();
    timer.start();
    boolean result = false;
    Exception ex = null;
    Logger logger = _dbc.getLogger();
    logger.push("execute");
    try {
View Full Code Here


   * @exception SQLException if a database-access error occurs.
   */

  public ResultSet executeQuery () throws SQLException {
    Timer timer = new Timer();
    timer.start();
    ResultSet results = null;
    Exception ex = null;
    Logger logger = _dbc.getLogger();
    logger.push("query");
    try {
View Full Code Here

   * @exception SQLException if a database-access error occurs.
   */

  public int executeUpdate () throws SQLException {
    Timer timer = new Timer();
    timer.start();
    if(_doQueryTimeout)
    _stmt.setQueryTimeout(_queryTimeout);
    int count = 0;
    Exception ex = null;
    Logger logger = _dbc.getLogger();
View Full Code Here

   * @see Statement#executeQuery(java.lang.String)
   * @see Statement#executeUpdate(java.lang.String)
   */
  public boolean execute () throws SQLException {
    Timer timer = new Timer();
    timer.start();
    boolean result = false;
    Exception ex = null;
    Logger logger = _dbc.getLogger();
    logger.push("execute");
    try {
View Full Code Here

     * Submits a batch of commands to the database for execution and
     * if all commands execute successfully, returns an array of update counts.
     */
  public int[] executeBatch() throws SQLException {
      Timer timer = new Timer();
        timer.start();
        int[] results = null;
        Exception ex = null;
        Logger logger = _dbc.getLogger();
        logger.push("BATCH");
        try {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.