|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.performance.PerfHandle
org.apache.ojb.broker.OJBPerfTest.PBPerfHandle
Constructor Summary | |
OJBPerfTest.PBPerfHandle(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 |
public OJBPerfTest.PBPerfHandle(PerfTest test)
Method Detail |
public void init() throws java.lang.Exception
PerfHandle
init
in class PerfHandle
java.lang.Exception
public void tearDown() throws java.lang.Exception
PerfHandle
tearDown
in class PerfHandle
java.lang.Exception
public void insertNewArticlesStress(PerfArticle[] arr) throws java.lang.Exception
insertNewArticlesStress
in class PerfHandle
java.lang.Exception
public void insertNewArticles(PerfArticle[] arr) throws java.lang.Exception
insertNewArticles
in class PerfHandle
java.lang.Exception
public java.util.Collection readArticlesByCursor(java.lang.String articleName) throws java.lang.Exception
PerfHandle
PerfArticles
.
Do optimize performance.
readArticlesByCursor
in class PerfHandle
articleName
- article name used for all PerfArticle
created
by this instance/thread. Use this name in your query to match all belonging articles
java.lang.Exception
public void updateArticles(PerfArticle[] arr) throws java.lang.Exception
PerfHandle
updateArticles
in class PerfHandle
java.lang.Exception
public void updateArticlesStress(PerfArticle[] arr) throws java.lang.Exception
PerfHandle
updateArticlesStress
in class PerfHandle
java.lang.Exception
public void deleteArticlesStress(PerfArticle[] arr) throws java.lang.Exception
deleteArticlesStress
in class PerfHandle
java.lang.Exception
public void deleteArticles(PerfArticle[] arr) throws java.lang.Exception
deleteArticles
in class PerfHandle
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |