repast.simphony.freezedry.datasource
Class JDBCContextBuilder

java.lang.Object
  extended by repast.simphony.dataLoader.engine.FreezeDryedContextBuilder
      extended by repast.simphony.freezedry.datasource.JDBCContextBuilder
All Implemented Interfaces:
ContextBuilder

public class JDBCContextBuilder
extends FreezeDryedContextBuilder


Field Summary
static String SETTINGS_INFO
           
 
Constructor Summary
JDBCContextBuilder(String dbURL, String driverName, String userName, String password, boolean storeLogin, boolean createContextFromData, Iterable<Class<?>> classesToLoad, Object contextId)
           
 
Method Summary
 String getDbURL()
           
 String getDriverName()
           
 String getPassword()
           
 boolean getStoreLogin()
           
 String getUserName()
           
static void main(String[] args)
           
protected  void registerWriters(FreezeDryedRegistry registry)
           
 void setStoreLogin(boolean storeLogin)
           
protected  boolean validateConnectionSettings()
           
 
Methods inherited from class repast.simphony.dataLoader.engine.FreezeDryedContextBuilder
build, create, getClassesToLoad, getFreezeDryedContextId, isCreateContextFromData, load, load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SETTINGS_INFO

public static final String SETTINGS_INFO
See Also:
Constant Field Values
Constructor Detail

JDBCContextBuilder

public JDBCContextBuilder(String dbURL,
                          String driverName,
                          String userName,
                          String password,
                          boolean storeLogin,
                          boolean createContextFromData,
                          Iterable<Class<?>> classesToLoad,
                          Object contextId)
Method Detail

validateConnectionSettings

protected boolean validateConnectionSettings()

registerWriters

protected void registerWriters(FreezeDryedRegistry registry)
                        throws FreezeDryingException
Specified by:
registerWriters in class FreezeDryedContextBuilder
Throws:
FreezeDryingException

getDbURL

public final String getDbURL()

getDriverName

public final String getDriverName()

getPassword

public final String getPassword()

getUserName

public final String getUserName()

getStoreLogin

public boolean getStoreLogin()

setStoreLogin

public void setStoreLogin(boolean storeLogin)

main

public static void main(String[] args)
                 throws ClassNotFoundException,
                        InstantiationException,
                        IllegalAccessException,
                        UnsupportedLookAndFeelException
Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
UnsupportedLookAndFeelException