net.sf.letsparty.cfg
Class Configuration
java.lang.Object
net.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tables
private java.util.Map tables
url
private java.lang.String url
driver
private java.lang.String driver
registrations
protected java.lang.String[] registrations
Configuration
public Configuration()
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)