|
|||||||||
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.JdbcPerfHandle
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 |
public OJBPerfTest.JdbcPerfHandle(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 insertNewArticles(PerfArticle[] arr) throws java.lang.Exception
PerfHandle
insertNewArticles
in class PerfHandle
java.lang.Exception
public void insertNewArticlesStress(PerfArticle[] arr) throws java.lang.Exception
PerfHandle
insertNewArticlesStress
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 deleteArticles(PerfArticle[] arr) throws java.lang.Exception
PerfHandle
deleteArticles
in class PerfHandle
java.lang.Exception
public void deleteArticlesStress(PerfArticle[] arr) throws java.lang.Exception
PerfHandle
deleteArticlesStress
in class PerfHandle
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |