net.sf.letsparty.cfg
Class Configuration

java.lang.Object
  extended bynet.sf.letsparty.cfg.Configuration

public class Configuration
extends java.lang.Object

Holds the configuration.


Field Summary
private  java.lang.String driver
           
protected  java.lang.String[] registrations
           
private  java.util.Map tables
           
private  java.lang.String url
           
 
Constructor Summary
Configuration()
           
 
Method Summary
 void addTable(PartitionedTable table)
           
 void configure()
          Use the mappings and properties specified in an application resource named letsparty.cfg.xml.
 void configure(java.io.File configFile)
           
 void configure(java.io.InputStream stream, java.lang.String resourceName)
           
 void configure(java.lang.String resource)
          The resource is found via getConfigurationInputStream(resource).
 void configure(java.net.URL url)
           
protected  void createConfig(java.io.InputStream stream, java.lang.String resourceName)
           
protected  java.io.InputStream getConfigurationInputStream(java.lang.String resource)
           
 java.lang.String getDriver()
           
 net.sf.jsqlparser.parser.JSqlParser getParser()
           
 PartitionedTable getPartitionedTable(java.lang.String tableName)
           
 java.lang.String getUrl()
           
 void setDriver(java.lang.String string)
           
 void setUrl(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tables

private java.util.Map tables

url

private java.lang.String url

driver

private java.lang.String driver

registrations

protected java.lang.String[] registrations
Constructor Detail

Configuration

public Configuration()
Method Detail

getConfigurationInputStream

protected java.io.InputStream getConfigurationInputStream(java.lang.String resource)
                                                   throws LetsPartyException
Throws:
LetsPartyException

configure

public void configure()
               throws LetsPartyException
Use the mappings and properties specified in an application resource named letsparty.cfg.xml.

Throws:
LetsPartyException

configure

public void configure(java.lang.String resource)
               throws LetsPartyException
The resource is found via getConfigurationInputStream(resource).

Throws:
LetsPartyException

configure

public void configure(java.net.URL url)
               throws LetsPartyException
Throws:
LetsPartyException

configure

public void configure(java.io.File configFile)
               throws LetsPartyException
Throws:
LetsPartyException

configure

public void configure(java.io.InputStream stream,
                      java.lang.String resourceName)
               throws LetsPartyException
Throws:
LetsPartyException

createConfig

protected void createConfig(java.io.InputStream stream,
                            java.lang.String resourceName)
                     throws LetsPartyException
Throws:
LetsPartyException

addTable

public void addTable(PartitionedTable table)

getPartitionedTable

public PartitionedTable getPartitionedTable(java.lang.String tableName)

getParser

public net.sf.jsqlparser.parser.JSqlParser getParser()

getUrl

public java.lang.String getUrl()

setUrl

public void setUrl(java.lang.String string)

getDriver

public java.lang.String getDriver()

setDriver

public void setDriver(java.lang.String string)