de.ispsoft.jaxme.generator.parserdata
Class JdbcParserData

java.lang.Object
  extended byde.ispsoft.jaxme.generator.parserdata.ParserData
      extended byde.ispsoft.jaxme.generator.parserdata.JdbcParserData
All Implemented Interfaces:
java.lang.Cloneable

public class JdbcParserData
extends ParserData

Holds the JDBC parsers data.

Jochen Wiedmann


Field Summary
 java.lang.String datasource
           
 java.lang.String driver
           
 java.lang.String join
           
 java.lang.String password
           
 java.util.List sqlFields
           
 java.util.Map tables
           
 java.lang.String url
           
 boolean useDataSource
           
 java.lang.String user
           
 
Fields inherited from class de.ispsoft.jaxme.generator.parserdata.ParserData
accessors, attributeFormDefault, context, elementFormDefault, extendsClassName, packageName, prefixes, systemId, targetNamespace, types
 
Constructor Summary
JdbcParserData(ParserData pParserData)
           
JdbcParserData(java.lang.String pTargetNamespace)
           
 
Method Summary
 void addSqlField(SqlField sf)
           
 java.lang.Object clone()
           
 java.sql.Connection getConnection(Configurable pConfigurable)
          Opens an SQL connection.
 java.lang.String getUser(Configurable pConfigurable)
          Returns the connections user name.
 
Methods inherited from class de.ispsoft.jaxme.generator.parserdata.ParserData
addOption, clearOptions, findComplexType, findSimpleType, findType, getDefaultTypes, getOptions, registerComplexType, registerSimpleType, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

datasource

public java.lang.String datasource

driver

public java.lang.String driver

password

public java.lang.String password

user

public java.lang.String user

url

public java.lang.String url

join

public java.lang.String join

useDataSource

public boolean useDataSource

sqlFields

public java.util.List sqlFields

tables

public java.util.Map tables
Constructor Detail

JdbcParserData

public JdbcParserData(java.lang.String pTargetNamespace)

JdbcParserData

public JdbcParserData(ParserData pParserData)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class ParserData

addSqlField

public void addSqlField(SqlField sf)

getUser

public java.lang.String getUser(Configurable pConfigurable)

Returns the connections user name.


getConnection

public java.sql.Connection getConnection(Configurable pConfigurable)
                                  throws java.lang.Exception

Opens an SQL connection.

Throws:
java.lang.Exception