com.tonbeller.jpivot.test.olap
Class TestSqlAccess

java.lang.Object
  extended by com.tonbeller.jpivot.core.ExtensionSupport
      extended by com.tonbeller.jpivot.test.olap.TestSqlAccess
All Implemented Interfaces:
Extension, SqlAccess

public class TestSqlAccess
extends ExtensionSupport
implements SqlAccess

Author:
av

Field Summary
 
Fields inherited from interface com.tonbeller.jpivot.param.SqlAccess
ID
 
Constructor Summary
TestSqlAccess()
           
 
Method Summary
 com.tonbeller.wcf.param.SessionParam createParameter(Member m, java.lang.String paramName)
          returns a parameter that describes the member.
 com.tonbeller.wcf.param.SessionParam createParameter(Member m, java.lang.String paramName, java.lang.String propertyName)
          returns a parameter that describes the member.
 javax.sql.DataSource getDataSource()
          returns the data source to access the database
 
Methods inherited from class com.tonbeller.jpivot.core.ExtensionSupport
decorate, getId, getModel, modelInitialized, setId, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.tonbeller.jpivot.core.Extension
decorate, getId, modelInitialized, setModel
 

Constructor Detail

TestSqlAccess

public TestSqlAccess()
Method Detail

getDataSource

public javax.sql.DataSource getDataSource()
Description copied from interface: SqlAccess
returns the data source to access the database

Specified by:
getDataSource in interface SqlAccess

createParameter

public com.tonbeller.wcf.param.SessionParam createParameter(Member m,
                                                            java.lang.String paramName)
Description copied from interface: SqlAccess
returns a parameter that describes the member. returns null, if the member does not represent a column in the database, for example because its the ALL member or a calculated member.

Specified by:
createParameter in interface SqlAccess

createParameter

public com.tonbeller.wcf.param.SessionParam createParameter(Member m,
                                                            java.lang.String paramName,
                                                            java.lang.String propertyName)
Description copied from interface: SqlAccess
returns a parameter that describes the member. returns null, if the member does not represent a column in the database, for example because its the ALL member or a calculated member.

Specified by:
createParameter in interface SqlAccess
Parameters:
m - the member
paramName - teh name of the new paramter
propertyName - name of a member property whose value will be used as sqlValue of the parameter. This may be used in situations where the members key is for example "John Smith" and the member property is the customer ID "123" which we want to use in the SQL queries.