Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jcorporate.expresso.core.db.config
Class JDBCConfig  view JDBCConfig download JDBCConfig.java

java.lang.Object
  extended bycom.jcorporate.expresso.core.db.config.JDBCConfig

public class JDBCConfig
extends java.lang.Object

A Commons digester class for JDBC section of the standardmaessig Expresso Configuration XML file. This bean defines the conection characteristics to the database in this context

Documentation written by Peter Pilgrim @ Xenonsoft, Tue Feb 05 22:55:00 GMT 2002

All the 'bean' methods here are directly mapped to the <jdbc> section int the expresso-config.xml file. It is recommend that you also look at the Expresso config DTD for a better understanding of the relation of these various parameters.

Since:
Expresso 5.1, its predecessor in the core.misc package since Expresso 4.0

Field Summary
protected  java.lang.String cache
           
protected  java.lang.String checkZeroUpdate
           
protected  java.lang.String connectFormat
           
protected  java.lang.String createTableIndicies
           
protected  java.lang.String dateSelectFormat
           
protected  java.lang.String dateSelectFunction
           
protected  java.lang.String dateTimeSelectFormat
           
protected  java.lang.String dateTimeSelectFunction
           
protected  java.lang.String dateTimeUpdateFormat
           
protected  java.lang.String dateTimeUpdateFunction
           
protected  java.lang.String dateUpdateFormat
           
protected  java.lang.String dateUpdateFunction
           
protected  java.lang.String dbCatalogue
           
protected  java.lang.String dbSchema
           
protected  java.lang.String dbStats
           
protected  java.lang.String dbTest
           
protected  java.lang.String driver
           
protected  java.lang.String driverType
           
protected  java.lang.String escapeHandler
           
protected  com.jcorporate.expresso.core.db.EscapeHandler escapeHandlerInstance
           
protected  java.lang.String limitationPosition
           
protected  java.lang.String limitationSyntax
           
protected  java.lang.String login
           
protected  java.lang.String nativeBlob
           
protected  java.lang.String nativeBool
           
protected  java.lang.String password
           
protected  java.lang.String skipText
           
protected  java.lang.String stringNotTrim
           
protected  java.lang.String timeSelectFormat
           
protected  java.lang.String timeSelectFunction
           
protected  java.lang.String timeUpdateFormat
           
protected  java.lang.String timeUpdateFunction
           
protected  java.lang.String transactionNotActive
           
private  java.util.List typeMappings
           
protected  java.lang.String uniqueRowKeyword
           
protected  java.lang.String url
           
protected  java.lang.String useNullOnCreate
           
protected  java.util.Vector wildCards
           
 
Constructor Summary
JDBCConfig()
           
 
Method Summary
 void addTypeMapping(TypeMappingConfig newValue)
          Add a type mapping to the system
 void addWildcard(java.lang.String newWild)
          Adds the specified wildcard entry
 boolean cache()
          Gets the cache enabled boolean flag
 boolean checkZeroUpdate()
          Gets the check zero update version as a boolean
 boolean createTableIndicies()
          Gets the create table indicies boolean value
 boolean dbStats()
          Gets the database statistics flag boolean
 java.lang.String getCheckZeroUpdate()
          Gets the check zero update version as a boolean
 java.lang.String getConnectFormat()
          Gets the JDBC connection format style.
 java.lang.String getDateSelectFormat()
          Gets the date update function string
 java.lang.String getDateSelectFunction()
          Gets the date select format string
 java.lang.String getDateTimeSelectFormat()
          Sets the date time select format string
 java.lang.String getDateTimeSelectFunction()
          Sets the date time select function string
 java.lang.String getDateTimeUpdateFormat()
          Sets the date time update format string
 java.lang.String getDateTimeUpdateFunction()
          Sets the date time select function string
 java.lang.String getDateUpdateFormat()
          Gets the date update format string
 java.lang.String getDateUpdateFunction()
          Gets the date update function string
 java.lang.String getDbCatalogue()
           
 java.lang.String getDbSchema()
           
 java.lang.String getDbTest()
          Retrieves the DB test string
 java.lang.String getDriver()
          Gets the JDBC Driver class name
 java.lang.String getDriverType()
          Gets the JDBC Driver Type name
 java.lang.String getEscapeHandler()
          Get the classname of the current escape handler for this data context
 com.jcorporate.expresso.core.db.EscapeHandler getEscapeHandlerClass()
           
 java.lang.String getLimitationPosition()
          Gets the limitation syntax position string
 java.lang.String getLimitationSyntax()
          Gets the limitation syntax
 java.lang.String getLogin()
          Gets the JDBC login account name
 java.lang.String getPassword()
          Gets the JDBC login password
 java.lang.String getStringNotTrim()
          Get the NoTrim parameter setting
 java.lang.String getTimeSelectFormat()
          Gets the time select function string
 java.lang.String getTimeSelectFunction()
          Gets the time select function string
 java.lang.String getTimeUpdateFormat()
          Gets the time update format string
 java.lang.String getTimeUpdateFunction()
          Gets the time update function string
 java.lang.String getTransactionNotActive()
          Get the transaction non action setting
 java.util.List getTypeMappings()
          Retrieve a list of all type mappings available.
 java.util.Vector getTypeMappingVector()
          Old type mappings style for a Vector to help with migration.
 java.lang.String getUniqueRowKeyword()
          Gets the unique keyword flag
 java.lang.String getUrl()
          Gets the JDBC URL
 java.util.Vector getWildcards()
          Gets a vector list of wildcard entries
 boolean isNativeBlob()
          Return whether this database type supports native blob types
 boolean isNativeBool()
          Returns whether or not this database supports native boolean datatypes
 boolean isStringNotTrim()
          Return whether this database persistence string will not be trimmed before store it and get it after.
 boolean isTransactionNotActive()
          Return whether this database transaction is active or not
 void setCache(java.lang.String newCache)
          Sets the cache enabled boolean flag
 void setCheckZeroUpdate(java.lang.String newCheckZeroUpdate)
          Set the check zero update version
 void setConnectFormat(java.lang.String newFormat)
          Sets the JDBC connection format style.
 void setCreateTableIndicies(java.lang.String newIndicies)
          Sets the create table indicies boolean value
 void setDateSelectFormat(java.lang.String newFormat)
          Sets the date select format string
 void setDateSelectFunction(java.lang.String newFunction)
          Sets the date select functon string
 void setDateTimeSelectFormat(java.lang.String newFormat)
          Sets the date time select format string
 void setDateTimeSelectFunction(java.lang.String newFunction)
          Sets the date time select function string
 void setDateTimeUpdateFormat(java.lang.String newFormat)
          Sets the date time update format string
 void setDateTimeUpdateFunction(java.lang.String newFunction)
          Sets the date time update function string
 void setDateUpdateFormat(java.lang.String newFormat)
          Sets the date update format string
 void setDateUpdateFunction(java.lang.String newFunction)
          Sets the date update function string
 void setDbCatalogue(java.lang.String newValue)
           
 void setDbSchema(java.lang.String newValue)
           
 void setDbStats(java.lang.String newStats)
          Sets the database statistics flag boolean
 void setDbTest(java.lang.String newTest)
          Sets the database test
 void setDriver(java.lang.String newDriver)
          Sets the JDBC driver class name
 void setDriverType(java.lang.String newDriverType)
          Sets the JDBC driver Type name
 void setEscapeHandler(java.lang.String newValue)
          Sets the escape handler for this jdbc connection.
 void setHasBooleanType(java.lang.String newValue)
          Sets whether or not this JDBC configuration supports a native boolean datatype.
 void setLimitationPosition(java.lang.String newPos)
          Sets the limitation position string
 void setLimitationSyntax(java.lang.String newLimit)
          Sets the limitation syntax string
 void setLogin(java.lang.String newLogin)
          Sets the JDBC login account name
 void setNativeBlob(java.lang.String newValue)
          Sets whether the database supports the native BLOB datatype, or whether you need binary streams.
 void setPassword(java.lang.String newPassword)
          Sets the JDBC login password
 void setSkipText(java.lang.String newSkip)
          Sets the skip text flag
 void setStringNotTrim(java.lang.String newValue)
          Set the NoTrim parameter setting
 void setTimeSelectFormat(java.lang.String newFormat)
          Sets the time select format string
 void setTimeSelectFunction(java.lang.String newFunction)
          Sets the time select function string
 void setTimeUpdateFormat(java.lang.String newFormat)
          Sets the time update format string
 void setTimeUpdateFunction(java.lang.String newFunction)
          Sets the time update function string
 void setTransactionNotActive(java.lang.String newValue)
          Set the transaction non action parameter

* @param string

 void setTypeMappings(java.util.List newValue)
          Set the list of type mappings
 void setUniqueRowKeyword(java.lang.String newKey)
          Sets the unique keyword flag
 void setUrl(java.lang.String newUrl)
          Sets the JDBC URL
 void setUseNullOnCreate(java.lang.String newUseNull)
          Set the flag that specifies if we use the "null" keyword in the create table statement when setting a field which does allow nulls.
 boolean skipText()
          Gets the skip text flag
 boolean useNullOnCreate()
          Get the flag that specifies if we use the "null" keyword in the create table statement when setting a field which does allow nulls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driverType

protected java.lang.String driverType

driver

protected java.lang.String driver

url

protected java.lang.String url

connectFormat

protected java.lang.String connectFormat

login

protected java.lang.String login

password

protected java.lang.String password

cache

protected java.lang.String cache

wildCards

protected java.util.Vector wildCards

dateSelectFormat

protected java.lang.String dateSelectFormat

dateSelectFunction

protected java.lang.String dateSelectFunction

dateUpdateFormat

protected java.lang.String dateUpdateFormat

dateUpdateFunction

protected java.lang.String dateUpdateFunction

timeSelectFormat

protected java.lang.String timeSelectFormat

timeSelectFunction

protected java.lang.String timeSelectFunction

timeUpdateFormat

protected java.lang.String timeUpdateFormat

timeUpdateFunction

protected java.lang.String timeUpdateFunction

dateTimeSelectFormat

protected java.lang.String dateTimeSelectFormat

dateTimeSelectFunction

protected java.lang.String dateTimeSelectFunction

dateTimeUpdateFormat

protected java.lang.String dateTimeUpdateFormat

dateTimeUpdateFunction

protected java.lang.String dateTimeUpdateFunction

dbStats

protected java.lang.String dbStats

dbTest

protected java.lang.String dbTest

createTableIndicies

protected java.lang.String createTableIndicies

limitationSyntax

protected java.lang.String limitationSyntax

limitationPosition

protected java.lang.String limitationPosition

uniqueRowKeyword

protected java.lang.String uniqueRowKeyword

skipText

protected java.lang.String skipText

useNullOnCreate

protected java.lang.String useNullOnCreate

nativeBool

protected java.lang.String nativeBool

transactionNotActive

protected java.lang.String transactionNotActive

stringNotTrim

protected java.lang.String stringNotTrim

checkZeroUpdate

protected java.lang.String checkZeroUpdate

escapeHandler

protected java.lang.String escapeHandler

escapeHandlerInstance

protected com.jcorporate.expresso.core.db.EscapeHandler escapeHandlerInstance

nativeBlob

protected java.lang.String nativeBlob

dbSchema

protected java.lang.String dbSchema

dbCatalogue

protected java.lang.String dbCatalogue

typeMappings

private java.util.List typeMappings
Constructor Detail

JDBCConfig

public JDBCConfig()
Method Detail

setSkipText

public void setSkipText(java.lang.String newSkip)
Sets the skip text flag


setUseNullOnCreate

public void setUseNullOnCreate(java.lang.String newUseNull)
Set the flag that specifies if we use the "null" keyword in the create table statement when setting a field which does allow nulls. Some databases insist on this (sybase), others do not allow it (firebird)


useNullOnCreate

public boolean useNullOnCreate()
Get the flag that specifies if we use the "null" keyword in the create table statement when setting a field which does allow nulls. Some databases insist on this (sybase), others do not allow it (firebird)


skipText

public boolean skipText()
Gets the skip text flag


setUniqueRowKeyword

public void setUniqueRowKeyword(java.lang.String newKey)
Sets the unique keyword flag


getUniqueRowKeyword

public java.lang.String getUniqueRowKeyword()
Gets the unique keyword flag


setLimitationSyntax

public void setLimitationSyntax(java.lang.String newLimit)
Sets the limitation syntax string


getLimitationSyntax

public java.lang.String getLimitationSyntax()
Gets the limitation syntax


setLimitationPosition

public void setLimitationPosition(java.lang.String newPos)
Sets the limitation position string


getLimitationPosition

public java.lang.String getLimitationPosition()
Gets the limitation syntax position string


setDbTest

public void setDbTest(java.lang.String newTest)
Sets the database test


getDbTest

public java.lang.String getDbTest()
Retrieves the DB test string


setDbStats

public void setDbStats(java.lang.String newStats)
Sets the database statistics flag boolean


dbStats

public boolean dbStats()
Gets the database statistics flag boolean


setCreateTableIndicies

public void setCreateTableIndicies(java.lang.String newIndicies)
Sets the create table indicies boolean value


createTableIndicies

public boolean createTableIndicies()
Gets the create table indicies boolean value


setDateSelectFormat

public void setDateSelectFormat(java.lang.String newFormat)
Sets the date select format string


setTimeSelectFormat

public void setTimeSelectFormat(java.lang.String newFormat)
Sets the time select format string


setDateTimeSelectFormat

public void setDateTimeSelectFormat(java.lang.String newFormat)
Sets the date time select format string


setDateUpdateFormat

public void setDateUpdateFormat(java.lang.String newFormat)
Sets the date update format string


setTimeUpdateFormat

public void setTimeUpdateFormat(java.lang.String newFormat)
Sets the time update format string


setDateTimeUpdateFormat

public void setDateTimeUpdateFormat(java.lang.String newFormat)
Sets the date time update format string


setDateSelectFunction

public void setDateSelectFunction(java.lang.String newFunction)
Sets the date select functon string


setTimeSelectFunction

public void setTimeSelectFunction(java.lang.String newFunction)
Sets the time select function string


setDateTimeSelectFunction

public void setDateTimeSelectFunction(java.lang.String newFunction)
Sets the date time select function string


setDateUpdateFunction

public void setDateUpdateFunction(java.lang.String newFunction)
Sets the date update function string


setTimeUpdateFunction

public void setTimeUpdateFunction(java.lang.String newFunction)
Sets the time update function string


setDateTimeUpdateFunction

public void setDateTimeUpdateFunction(java.lang.String newFunction)
Sets the date time update function string


getDateSelectFormat

public java.lang.String getDateSelectFormat()
Gets the date update function string


getDateSelectFunction

public java.lang.String getDateSelectFunction()
Gets the date select format string


getDateUpdateFormat

public java.lang.String getDateUpdateFormat()
Gets the date update format string


getDateUpdateFunction

public java.lang.String getDateUpdateFunction()
Gets the date update function string


getTimeSelectFormat

public java.lang.String getTimeSelectFormat()
Gets the time select function string


getTimeSelectFunction

public java.lang.String getTimeSelectFunction()
Gets the time select function string


getTimeUpdateFormat

public java.lang.String getTimeUpdateFormat()
Gets the time update format string


getTimeUpdateFunction

public java.lang.String getTimeUpdateFunction()
Gets the time update function string


getDateTimeSelectFormat

public java.lang.String getDateTimeSelectFormat()
Sets the date time select format string


getDateTimeSelectFunction

public java.lang.String getDateTimeSelectFunction()
Sets the date time select function string


getDateTimeUpdateFormat

public java.lang.String getDateTimeUpdateFormat()
Sets the date time update format string


getDateTimeUpdateFunction

public java.lang.String getDateTimeUpdateFunction()
Sets the date time select function string


setDriver

public void setDriver(java.lang.String newDriver)
Sets the JDBC driver class name


addWildcard

public void addWildcard(java.lang.String newWild)
Adds the specified wildcard entry


getWildcards

public java.util.Vector getWildcards()
Gets a vector list of wildcard entries


setDriverType

public void setDriverType(java.lang.String newDriverType)
Sets the JDBC driver Type name


getDriverType

public java.lang.String getDriverType()
Gets the JDBC Driver Type name


getDriver

public java.lang.String getDriver()
Gets the JDBC Driver class name


setUrl

public void setUrl(java.lang.String newUrl)
Sets the JDBC URL


getUrl

public java.lang.String getUrl()
Gets the JDBC URL


setConnectFormat

public void setConnectFormat(java.lang.String newFormat)
Sets the JDBC connection format style. How does Expresso connect to the data source?


getConnectFormat

public java.lang.String getConnectFormat()
Gets the JDBC connection format style. How does Expresso connect to the data source?


setLogin

public void setLogin(java.lang.String newLogin)
Sets the JDBC login account name


getLogin

public java.lang.String getLogin()
Gets the JDBC login account name


setHasBooleanType

public void setHasBooleanType(java.lang.String newValue)
Sets whether or not this JDBC configuration supports a native boolean datatype.


setNativeBlob

public void setNativeBlob(java.lang.String newValue)
Sets whether the database supports the native BLOB datatype, or whether you need binary streams.


isNativeBlob

public boolean isNativeBlob()
Return whether this database type supports native blob types


setEscapeHandler

public void setEscapeHandler(java.lang.String newValue)
Sets the escape handler for this jdbc connection. ie. What class performs the filtering on the codes to properly process any special characters for the database.


getEscapeHandler

public java.lang.String getEscapeHandler()
Get the classname of the current escape handler for this data context


getEscapeHandlerClass

public com.jcorporate.expresso.core.db.EscapeHandler getEscapeHandlerClass()

isNativeBool

public boolean isNativeBool()
Returns whether or not this database supports native boolean datatypes


setPassword

public void setPassword(java.lang.String newPassword)
Sets the JDBC login password


getPassword

public java.lang.String getPassword()
Gets the JDBC login password


setCache

public void setCache(java.lang.String newCache)
Sets the cache enabled boolean flag


cache

public boolean cache()
Gets the cache enabled boolean flag


setCheckZeroUpdate

public void setCheckZeroUpdate(java.lang.String newCheckZeroUpdate)
Set the check zero update version


getCheckZeroUpdate

public java.lang.String getCheckZeroUpdate()
Gets the check zero update version as a boolean


checkZeroUpdate

public boolean checkZeroUpdate()
Gets the check zero update version as a boolean


getTypeMappings

public java.util.List getTypeMappings()
Retrieve a list of all type mappings available.

Since:
Expresso 5.1

getTypeMappingVector

public java.util.Vector getTypeMappingVector()
Old type mappings style for a Vector to help with migration. Will eventually be deprecated.


setTypeMappings

public void setTypeMappings(java.util.List newValue)
Set the list of type mappings

Since:
Expresso 5.1

addTypeMapping

public void addTypeMapping(TypeMappingConfig newValue)
Add a type mapping to the system


getStringNotTrim

public java.lang.String getStringNotTrim()
Get the NoTrim parameter setting


getTransactionNotActive

public java.lang.String getTransactionNotActive()
Get the transaction non action setting


setStringNotTrim

public void setStringNotTrim(java.lang.String newValue)
Set the NoTrim parameter setting


setTransactionNotActive

public void setTransactionNotActive(java.lang.String newValue)
Set the transaction non action parameter

* @param string


isStringNotTrim

public boolean isStringNotTrim()
Return whether this database persistence string will not be trimmed before store it and get it after.

* @return boolean true if database string column will not be trimmed before or after store or get.


isTransactionNotActive

public boolean isTransactionNotActive()
Return whether this database transaction is active or not


getDbCatalogue

public java.lang.String getDbCatalogue()

getDbSchema

public java.lang.String getDbSchema()

setDbCatalogue

public void setDbCatalogue(java.lang.String newValue)

setDbSchema

public void setDbSchema(java.lang.String newValue)