ch.agent.crnickl.junit
Class Context

java.lang.Object
  extended by ch.agent.crnickl.junit.Context

public class Context
extends Object


Constructor Summary
Context()
           
 
Method Summary
 ch.agent.crnickl.api.Database getDatabase()
           
 boolean hasStandardRegex()
           
 boolean isPersistent()
           
 boolean isTransactional()
           
protected  ch.agent.crnickl.api.Database setup()
           
protected  void setup(ch.agent.crnickl.api.SimpleDatabaseManager dbm, Map<String,String> parameters)
          Override this method for special needs.
protected  void setUpNumberType(ch.agent.crnickl.api.Database db)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Context

public Context()
Method Detail

setup

protected ch.agent.crnickl.api.Database setup()
                                       throws Exception
Throws:
Exception

setup

protected void setup(ch.agent.crnickl.api.SimpleDatabaseManager dbm,
                     Map<String,String> parameters)
              throws Exception
Override this method for special needs. Typically, the method is used for running the DDL to define the schema of the database application. By default, the method executes setUpNumberType(ch.agent.crnickl.api.Database), assuming the schema has already been defined.

Parameters:
dbm - the database manager
parameters - configuration parameter
Throws:
Exception

getDatabase

public ch.agent.crnickl.api.Database getDatabase()
                                          throws Exception
Throws:
Exception

isTransactional

public boolean isTransactional()

hasStandardRegex

public boolean hasStandardRegex()

isPersistent

public boolean isPersistent()

setUpNumberType

protected void setUpNumberType(ch.agent.crnickl.api.Database db)
                        throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.