org.objectweb.cjdbc.scenario.templates
Class SQLInjectionTemplate

java.lang.Object
  extended byTestCase
      extended byorg.objectweb.cjdbc.scenario.templates.NoTemplate
          extended byorg.objectweb.cjdbc.scenario.templates.Template
              extended byorg.objectweb.cjdbc.scenario.templates.SQLInjectionTemplate
Direct Known Subclasses:
SQLInjectionScenario

public class SQLInjectionTemplate
extends Template

This class defines a SQLInjectionTemplate

Version:
1.0
Author:
Nicolas Modrzyk
See Also:
Serialized Form

Field Summary
protected static java.util.ResourceBundle bundle
           
protected static java.lang.String cjdbcpassword
           
protected static java.lang.String cjdbcurl
           
protected static java.lang.String cjdbcuser
           
protected static java.lang.String[] classes
           
protected  ControllerManager cm
           
protected  Controller controller
           
protected static java.lang.String createTables
           
protected static java.lang.String dropTables
           
protected  DatabaseManager hm
           
protected  ComponentInterface hm1
           
protected  ComponentInterface hm2
           
protected  ComponentInterface hm3
           
protected static java.lang.String jdbcdriverclass
           
protected static java.lang.String jdbcpassword
           
protected static java.lang.String jdbcurl
           
protected static java.lang.String jdbcuser
           
protected static java.lang.String jointhreadtimeout
           
protected static java.lang.String keyIndex
           
protected  VirtualDatabase mainVdb
           
protected static java.lang.String[] passwords
           
(package private) static java.lang.String standAlone
           
protected static boolean standaloneTest
           
protected static java.lang.String threadcount
           
protected static java.lang.String threadstartwaittimerange
           
protected static java.lang.String threadwaittime
           
protected static java.lang.String unitruncount
           
protected static java.lang.String[] urls
           
protected static java.lang.String[] users
           
 
Fields inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
logger, TEXT_DIR
 
Constructor Summary
SQLInjectionTemplate()
           
 
Method Summary
 java.sql.Connection getBackendConnection(int index)
           
 java.sql.Connection getConnection()
           
protected  void setUp()
           
protected  void tearDown()
           
(package private) static java.lang.String[] tokenize(java.lang.String param)
           
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.Template
getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getCJDBCConnection, getHypersonicConnection
 
Methods inherited from class org.objectweb.cjdbc.scenario.templates.NoTemplate
getTextPath, getUserDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cm

protected ControllerManager cm

hm

protected DatabaseManager hm

hm1

protected ComponentInterface hm1

hm2

protected ComponentInterface hm2

hm3

protected ComponentInterface hm3

controller

protected Controller controller

mainVdb

protected VirtualDatabase mainVdb

standAlone

static final java.lang.String standAlone

standaloneTest

protected static final boolean standaloneTest

bundle

protected static final java.util.ResourceBundle bundle

jdbcurl

protected static final java.lang.String jdbcurl

urls

protected static final java.lang.String[] urls

jdbcuser

protected static final java.lang.String jdbcuser

users

protected static final java.lang.String[] users

jdbcpassword

protected static final java.lang.String jdbcpassword

passwords

protected static final java.lang.String[] passwords

jdbcdriverclass

protected static final java.lang.String jdbcdriverclass

classes

protected static final java.lang.String[] classes

cjdbcurl

protected static final java.lang.String cjdbcurl

cjdbcpassword

protected static final java.lang.String cjdbcpassword

cjdbcuser

protected static final java.lang.String cjdbcuser

threadcount

protected static final java.lang.String threadcount

threadstartwaittimerange

protected static final java.lang.String threadstartwaittimerange

unitruncount

protected static final java.lang.String unitruncount

threadwaittime

protected static final java.lang.String threadwaittime

jointhreadtimeout

protected static final java.lang.String jointhreadtimeout

dropTables

protected static final java.lang.String dropTables

createTables

protected static final java.lang.String createTables

keyIndex

protected static final java.lang.String keyIndex
Constructor Detail

SQLInjectionTemplate

public SQLInjectionTemplate()
Method Detail

tokenize

static java.lang.String[] tokenize(java.lang.String param)

getConnection

public java.sql.Connection getConnection()
                                  throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
Template.getCJDBCConnection()

getBackendConnection

public java.sql.Connection getBackendConnection(int index)
                                         throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
Template.getHypersonicConnection(int)

setUp

protected void setUp()
Specified by:
setUp in class Template
See Also:
junit.framework.TestCase#setUp()

tearDown

protected void tearDown()
Specified by:
tearDown in class Template
See Also:
junit.framework.TestCase#tearDown()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.