org.apache.ojb.broker
Class OJBPerfTest.OTMPerfHandle

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

public static class OJBPerfTest.OTMPerfHandle
extends PerfHandle


Constructor Summary
OJBPerfTest.OTMPerfHandle(PerfTest test)
           
 
Method Summary
 void deleteArticles(PerfArticle[] arr)
          A performance optimized delete-method implementation, used to test performance
 void deleteArticlesStress(PerfArticle[] arr)
          A resource cumbering delete-method implementation, used to test implementation
 void init()
          Init the test.
 void insertNewArticles(PerfArticle[] arr)
          A performance optimized insert-method implementation, used to test performance.
 void insertNewArticlesStress(PerfArticle[] arr)
          A resource cumbering insert-method implementation, this was used to test implementation.
 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.OTMPerfHandle

public OJBPerfTest.OTMPerfHandle(PerfTest test)
Method Detail

init

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

Specified by:
init in class PerfHandle

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

insertNewArticlesStress

public void insertNewArticlesStress(PerfArticle[] arr)
                             throws java.lang.Exception
A resource cumbering insert-method implementation, this was used to test implementation.

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

insertNewArticles

public void insertNewArticles(PerfArticle[] arr)
                       throws java.lang.Exception
A performance optimized insert-method implementation, used to test performance.

Specified by:
insertNewArticles 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

deleteArticlesStress

public void deleteArticlesStress(PerfArticle[] arr)
                          throws java.lang.Exception
A resource cumbering delete-method implementation, used to test implementation

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

deleteArticles

public void deleteArticles(PerfArticle[] arr)
                    throws java.lang.Exception
A performance optimized delete-method implementation, used to test performance

Specified by:
deleteArticles 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