org.opensubsystems.security.persist.db
Class SessionViewListDatabaseTestUtils

java.lang.Object
  extended by org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils
      extended by org.opensubsystems.security.patterns.listdata.persist.db.SecureListDatabaseTestUtils
          extended by org.opensubsystems.security.persist.db.SessionViewListDatabaseTestUtils

public class SessionViewListDatabaseTestUtils
extends SecureListDatabaseTestUtils

Utilities for testing of list functionality for session views.

Version:
$Id: SessionViewListDatabaseTestUtils.java,v 1.2 2007/01/28 06:54:40 bastafidli Exp $
Author:
Julo Legeny
Code reviewer:
Miro Halas
Code reviewed:
1.6 2004/11/10 19:02:39 jlegeny

Field Summary
protected  org.opensubsystems.security.persist.InternalSessionFactory m_internalSessionFactory
          Factory to manage internal sessions.
protected  org.opensubsystems.security.persist.UserFactory m_userFactory
          Factory to manage user.
 
Fields inherited from class org.opensubsystems.security.patterns.listdata.persist.db.SecureListDatabaseTestUtils
EXTRA_TEST_DATA_DISTRIBUTION, EXTRA_TEST_DATA_MULTIPLIER, UNIT_OF_INSERTION
 
Fields inherited from class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils
m_arrAllColumnCodes, m_clsListDatabaseSchemaClass, m_clsListFactoryClass, m_iColumnOneCode, m_iColumnTwoCode, NO_PARENT
 
Constructor Summary
SessionViewListDatabaseTestUtils()
          Constructor
 
Method Summary
protected  org.opensubsystems.core.data.DataObject constructData(java.lang.Object parent, int iDomainId, java.lang.String str1, java.lang.String str2)
          
protected  org.opensubsystems.core.data.DataObject createDataObject(org.opensubsystems.core.data.DataObject data)
          
protected  void createDataObjects(java.util.List lstDataObjects)
          
protected  void deleteData(java.lang.Object parent, int iDomainId, java.lang.String strPrefix1, java.lang.String strPrefix2)
          
protected  void deleteDataObject(org.opensubsystems.core.data.DataObject data, int iDomainId)
          
protected  void deleteParent(java.lang.Object parent, int iDomainId)
          
 java.lang.String getColumnOneValue(org.opensubsystems.core.data.DataObject data)
          
 java.lang.String getColumnTwoValue(org.opensubsystems.core.data.DataObject data)
          
 org.opensubsystems.patterns.listdata.data.ListOptions getDefaultListOptions(java.lang.Object parent)
          
protected  java.lang.Object insertParent(int iDomainId, java.lang.String str1, java.lang.String str2)
          
 
Methods inherited from class org.opensubsystems.security.patterns.listdata.persist.db.SecureListDatabaseTestUtils
deleteMultiDomainLoadTestData, insertMultiDomainLoadTestData
 
Methods inherited from class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils
analyzeDatabase, deleteData, deleteDataObjects, deleteLoadTestData, deleteLoadTestData, deleteTestData, getAllColumnCodes, getColumnOneCode, getColumnTwoCode, getDefaultResultListColumnTwo, getExpectedResultListColumnOne, getListDatabaseSchema, getListDatabaseSchemaClass, getListFactory, getListFactoryClass, insertData, insertLoadTestData, insertLoadTestData, insertMultipleData, insertTestData, printDebug, printDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_userFactory

protected org.opensubsystems.security.persist.UserFactory m_userFactory
Factory to manage user.


m_internalSessionFactory

protected org.opensubsystems.security.persist.InternalSessionFactory m_internalSessionFactory
Factory to manage internal sessions.

Constructor Detail

SessionViewListDatabaseTestUtils

public SessionViewListDatabaseTestUtils()
                                 throws java.lang.Exception
Constructor

Throws:
java.lang.Exception - - an error has occured
Method Detail

insertParent

protected java.lang.Object insertParent(int iDomainId,
                                        java.lang.String str1,
                                        java.lang.String str2)
                                 throws java.lang.Exception

Specified by:
insertParent in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils
Throws:
java.lang.Exception

deleteParent

protected void deleteParent(java.lang.Object parent,
                            int iDomainId)
                     throws java.lang.Exception

Specified by:
deleteParent in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils
Throws:
java.lang.Exception

constructData

protected org.opensubsystems.core.data.DataObject constructData(java.lang.Object parent,
                                                                int iDomainId,
                                                                java.lang.String str1,
                                                                java.lang.String str2)
                                                         throws java.lang.Exception

Specified by:
constructData in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils
Throws:
java.lang.Exception

deleteData

protected void deleteData(java.lang.Object parent,
                          int iDomainId,
                          java.lang.String strPrefix1,
                          java.lang.String strPrefix2)
                   throws java.lang.Exception

Specified by:
deleteData in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils
Throws:
java.lang.Exception

getColumnOneValue

public java.lang.String getColumnOneValue(org.opensubsystems.core.data.DataObject data)

Specified by:
getColumnOneValue in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils

getColumnTwoValue

public java.lang.String getColumnTwoValue(org.opensubsystems.core.data.DataObject data)

Specified by:
getColumnTwoValue in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils

getDefaultListOptions

public org.opensubsystems.patterns.listdata.data.ListOptions getDefaultListOptions(java.lang.Object parent)
                                                                            throws org.opensubsystems.core.error.OSSException

Overrides:
getDefaultListOptions in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils
Throws:
org.opensubsystems.core.error.OSSException

createDataObject

protected org.opensubsystems.core.data.DataObject createDataObject(org.opensubsystems.core.data.DataObject data)
                                                            throws org.opensubsystems.core.error.OSSException

Overrides:
createDataObject in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils
Throws:
org.opensubsystems.core.error.OSSException

deleteDataObject

protected void deleteDataObject(org.opensubsystems.core.data.DataObject data,
                                int iDomainId)
                         throws org.opensubsystems.core.error.OSSException

Overrides:
deleteDataObject in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils
Throws:
org.opensubsystems.core.error.OSSException

createDataObjects

protected void createDataObjects(java.util.List lstDataObjects)
                          throws org.opensubsystems.core.error.OSSException

Overrides:
createDataObjects in class org.opensubsystems.patterns.listdata.persist.db.ListDatabaseTestUtils
Throws:
org.opensubsystems.core.error.OSSException


Copyright © 2003 - 2006 OpenSubsystems s.r.o.