org.apache.ojb.broker
Class OJBPerfTest.JdbcPerfHandle

java.lang.Object
  extended byorg.apache.ojb.performance.PerfHandle
      extended byorg.apache.ojb.broker.OJBPerfTest.JdbcPerfHandle
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
OJBPerfTest

public static class OJBPerfTest.JdbcPerfHandle
extends PerfHandle


Constructor Summary
OJBPerfTest.JdbcPerfHandle(PerfTest test)
           
 
Method Summary
 void deleteArticles(PerfArticle[] arr)
          Delete all given article from the database.
 void deleteArticlesStress(PerfArticle[] arr)
          Delete all given article from the database in a really resource sressing way.
 void init()
          Init the test.
 void insertNewArticles(PerfArticle[] arr)
          Store the given articles to database.
 void insertNewArticlesStress(PerfArticle[] arr)
          Store the given articles to database.
 java.util.Collection readArticlesByCursor(java.lang.String articleName)
          Read all stored articles from the database and return the result as collection of PerfArticles.
 void tearDown()
          Do clean up.
 void updateArticles(PerfArticle[] arr)
          Update the given articles.
 void updateArticlesStress(PerfArticle[] arr)
          Update the given articles.
 
Methods inherited from class org.apache.ojb.performance.PerfHandle
getPreparedPerfArticle, getTestObjectName, newPerfArticle, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OJBPerfTest.JdbcPerfHandle

public OJBPerfTest.JdbcPerfHandle(PerfTest test)
Method Detail

init

public void init()
          throws java.lang.Exception
Description copied from class: PerfHandle
Init the test. do setup stuff here

Specified by:
init in class PerfHandle
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Description copied from class: PerfHandle
Do clean up.

Specified by:
tearDown in class PerfHandle
Throws:
java.lang.Exception

insertNewArticles

public void insertNewArticles(PerfArticle[] arr)
                       throws java.lang.Exception
Description copied from class: PerfHandle
Store the given articles to database. Do optimize performance.

Specified by:
insertNewArticles in class PerfHandle
Throws:
java.lang.Exception

insertNewArticlesStress

public void insertNewArticlesStress(PerfArticle[] arr)
                             throws java.lang.Exception
Description copied from class: PerfHandle
Store the given articles to database. Implement a really resource stressing way.

Specified by:
insertNewArticlesStress in class PerfHandle
Throws:
java.lang.Exception

readArticlesByCursor

public java.util.Collection readArticlesByCursor(java.lang.String articleName)
                                          throws java.lang.Exception
Description copied from class: PerfHandle
Read all stored articles from the database and return the result as collection of PerfArticles. Do optimize performance.

Specified by:
readArticlesByCursor in class PerfHandle
Parameters:
articleName - article name used for all PerfArticle created by this instance/thread. Use this name in your query to match all belonging articles
Throws:
java.lang.Exception

updateArticles

public void updateArticles(PerfArticle[] arr)
                    throws java.lang.Exception
Description copied from class: PerfHandle
Update the given articles. Do optimize performance.

Specified by:
updateArticles in class PerfHandle
Throws:
java.lang.Exception

updateArticlesStress

public void updateArticlesStress(PerfArticle[] arr)
                          throws java.lang.Exception
Description copied from class: PerfHandle
Update the given articles. Implement a really resource stressing way.

Specified by:
updateArticlesStress in class PerfHandle
Throws:
java.lang.Exception

deleteArticles

public void deleteArticles(PerfArticle[] arr)
                    throws java.lang.Exception
Description copied from class: PerfHandle
Delete all given article from the database. Do optimize performance.

Specified by:
deleteArticles in class PerfHandle
Throws:
java.lang.Exception

deleteArticlesStress

public void deleteArticlesStress(PerfArticle[] arr)
                          throws java.lang.Exception
Description copied from class: PerfHandle
Delete all given article from the database in a really resource sressing way.

Specified by:
deleteArticlesStress in class PerfHandle
Throws:
java.lang.Exception


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14