|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.db.config.JDBCConfig
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.
| Constructor Summary | |
JDBCConfig()
|
|
| Method Summary | |
void |
addTypeMapping(TypeMappingConfig newValue)
Add a type mapping to the system |
void |
addWildcard(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 |
String |
getCheckZeroUpdate()
Gets the check zero update version as a boolean |
String |
getConnectFormat()
Gets the JDBC connection format style. |
String |
getDateSelectFormat()
Gets the date update function string |
String |
getDateSelectFunction()
Gets the date select format string |
String |
getDateTimeSelectFormat()
Sets the date time select format string |
String |
getDateTimeSelectFunction()
Sets the date time select function string |
String |
getDateTimeUpdateFormat()
Sets the date time update format string |
String |
getDateTimeUpdateFunction()
Sets the date time select function string |
String |
getDateUpdateFormat()
Gets the date update format string |
String |
getDateUpdateFunction()
Gets the date update function string |
String |
getDbTest()
Retrieves the DB test string |
String |
getDriver()
Gets the JDBC Driver class name |
String |
getDriverType()
Gets the JDBC Driver Type name |
String |
getEscapeHandler()
Get the classname of the current escape handler for this data context |
EscapeHandler |
getEscapeHandlerClass()
|
String |
getLimitationPosition()
Gets the limitation syntax position string |
String |
getLimitationSyntax()
Gets the limitation syntax |
String |
getLogin()
Gets the JDBC login account name |
String |
getPassword()
Gets the JDBC login password |
String |
getTimeSelectFormat()
Gets the time select function string |
String |
getTimeSelectFunction()
Gets the time select function string |
String |
getTimeUpdateFormat()
Gets the time update format string |
String |
getTimeUpdateFunction()
Gets the time update function string |
List |
getTypeMappings()
Retrieve a list of all type mappings available. |
Vector |
getTypeMappingVector()
Old type mappings style for a Vector to help with migration. |
String |
getUniqueRowKeyword()
Gets the unique keyword flag |
String |
getUrl()
Gets the JDBC URL |
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 |
void |
setCache(String newCache)
Sets the cache enabled boolean flag |
void |
setCheckZeroUpdate(String newCheckZeroUpdate)
Set the check zero update version |
void |
setConnectFormat(String newFormat)
Sets the JDBC connection format style. |
void |
setCreateTableIndicies(String newIndicies)
Sets the create table indicies boolean value |
void |
setDateSelectFormat(String newFormat)
Sets the date select format string |
void |
setDateSelectFunction(String newFunction)
Sets the date select functon string |
void |
setDateTimeSelectFormat(String newFormat)
Sets the date time select format string |
void |
setDateTimeSelectFunction(String newFunction)
Sets the date time select function string |
void |
setDateTimeUpdateFormat(String newFormat)
Sets the date time update format string |
void |
setDateTimeUpdateFunction(String newFunction)
Sets the date time update function string |
void |
setDateUpdateFormat(String newFormat)
Sets the date update format string |
void |
setDateUpdateFunction(String newFunction)
Sets the date update function string |
void |
setDbStats(String newStats)
Sets the database statistics flag boolean |
void |
setDbTest(String newTest)
Sets the database test |
void |
setDriver(String newDriver)
Sets the JDBC driver class name |
void |
setDriverType(String newDriverType)
Sets the JDBC driver Type name |
void |
setEscapeHandler(String newValue)
Sets the escape handler for this jdbc connection. ie. |
void |
setHasBooleanType(String newValue)
Sets whether or not this JDBC configuration supports a native boolean datatype. |
void |
setLimitationPosition(String newPos)
Sets the limitation position string |
void |
setLimitationSyntax(String newLimit)
Sets the limitation syntax string |
void |
setLogin(String newLogin)
Sets the JDBC login account name |
void |
setNativeBlob(String newValue)
Sets whether the database supports the native BLOB datatype, or whether you need binary streams. |
void |
setPassword(String newPassword)
Sets the JDBC login password |
void |
setSkipText(String newSkip)
Sets the skip text flag |
void |
setTimeSelectFormat(String newFormat)
Sets the time select format string |
void |
setTimeSelectFunction(String newFunction)
Sets the time select function string |
void |
setTimeUpdateFormat(String newFormat)
Sets the time update format string |
void |
setTimeUpdateFunction(String newFunction)
Sets the time update function string |
void |
setTypeMappings(List newValue)
Set the list of type mappings |
void |
setUniqueRowKeyword(String newKey)
Sets the unique keyword flag |
void |
setUrl(String newUrl)
Sets the JDBC URL |
void |
setUseNullOnCreate(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 |
protected String driverType
protected String driver
protected String url
protected String connectFormat
protected String login
protected String password
protected String cache
protected Vector wildCards
protected String dateSelectFormat
protected String dateSelectFunction
protected String dateUpdateFormat
protected String dateUpdateFunction
protected String timeSelectFormat
protected String timeSelectFunction
protected String timeUpdateFormat
protected String timeUpdateFunction
protected String dateTimeSelectFormat
protected String dateTimeSelectFunction
protected String dateTimeUpdateFormat
protected String dateTimeUpdateFunction
protected String dbStats
protected String dbTest
protected String createTableIndicies
protected String limitationSyntax
protected String limitationPosition
protected String uniqueRowKeyword
protected String skipText
protected String useNullOnCreate
protected String nativeBool
protected String checkZeroUpdate
protected String escapeHandler
protected EscapeHandler escapeHandlerInstance
protected String nativeBlob
| Constructor Detail |
public JDBCConfig()
| Method Detail |
public void setSkipText(String newSkip)
newSkip - new Skip boolean value in sstring formpublic void setUseNullOnCreate(String newUseNull)
newUseNull - checks if we should use the null keyword in dealing
with table creation.public boolean useNullOnCreate()
public boolean skipText()
public void setUniqueRowKeyword(String newKey)
newKey - the new string to use for 'unique row' as a keyword for
your databasepublic String getUniqueRowKeyword()
public void setLimitationSyntax(String newLimit)
newLimit - the limitation syntax stringpublic String getLimitationSyntax()
public void setLimitationPosition(String newPos)
newPos - The limitation syntax position string. See the DTD for
possible valuespublic String getLimitationPosition()
public void setDbTest(String newTest)
newTest - java.lang.Stringpublic String getDbTest()
public void setDbStats(String newStats)
newStats - true if you wish to get Database statspublic boolean dbStats()
public void setCreateTableIndicies(String newIndicies)
newIndicies - boolean string indicating that database CREATE INDEX statements
should be issued to the underlying database on db creation.public boolean createTableIndicies()
public void setDateSelectFormat(String newFormat)
newFormat - The data select format string.public void setTimeSelectFormat(String newFormat)
newFormat - the new time select format stringpublic void setDateTimeSelectFormat(String newFormat)
newFormat - the Date-Time Select format formatting stringpublic void setDateUpdateFormat(String newFormat)
newFormat - the new Date Update format to usepublic void setTimeUpdateFormat(String newFormat)
newFormat - the new TimeUpdate formatpublic void setDateTimeUpdateFormat(String newFormat)
newFormat - the new date time format string for update statementspublic void setDateSelectFunction(String newFunction)
newFunction - the new format string to use for selecting date types
from the databasepublic void setTimeSelectFunction(String newFunction)
newFunction - the new function for formatting time strings for
database select statementspublic void setDateTimeSelectFunction(String newFunction)
newFunction - the new function for date time select statementspublic void setDateUpdateFunction(String newFunction)
newFunction - the new date update function for UPDATE execution
statementspublic void setTimeUpdateFunction(String newFunction)
newFunction - the new Time Update function to execute for TIME
datatypes for UPDATE execution statements.public void setDateTimeUpdateFunction(String newFunction)
newFunction - the new date-type update funcitonpublic String getDateSelectFormat()
public String getDateSelectFunction()
public String getDateUpdateFormat()
public String getDateUpdateFunction()
public String getTimeSelectFormat()
public String getTimeSelectFunction()
public String getTimeUpdateFormat()
public String getTimeUpdateFunction()
public String getDateTimeSelectFormat()
public String getDateTimeSelectFunction()
public String getDateTimeUpdateFormat()
public String getDateTimeUpdateFunction()
public void setDriver(String newDriver)
newDriver - the new driver class name as spefied by the config filepublic void addWildcard(String newWild)
newWild - a new string that denotes wildcard strings for this
databasepublic Vector getWildcards()
public void setDriverType(String newDriverType)
newDriverType - either "e;datasource"e; or "e;jdbc"e;public String getDriverType()
public String getDriver()
public void setUrl(String newUrl)
newUrl - the new URL for the JDBC connectionpublic String getUrl()
public void setConnectFormat(String newFormat)
newFormat - number one through 5public String getConnectFormat()
public void setLogin(String newLogin)
newLogin - the login to use for JDBCpublic String getLogin()
public void setHasBooleanType(String newValue)
newValue - true if your database supports native boolean data types.public void setNativeBlob(String newValue)
newValue - The new value to set.public boolean isNativeBlob()
public void setEscapeHandler(String newValue)
newValue - The new value to set for the escape handler. Must be a valid
classname in your class path.public String getEscapeHandler()
public EscapeHandler getEscapeHandlerClass()
public boolean isNativeBool()
public void setPassword(String newPassword)
newPassword - the new password to connect to the databasepublic String getPassword()
public void setCache(String newCache)
newCache - true if you want this data context cachedpublic boolean cache()
public void setCheckZeroUpdate(String newCheckZeroUpdate)
newCheckZeroUpdate - - a boolean valuepublic String getCheckZeroUpdate()
public boolean checkZeroUpdate()
public List getTypeMappings()
public Vector getTypeMappingVector()
public void setTypeMappings(List newValue)
newValue - a list of TypeMappingConfig objectspublic void addTypeMapping(TypeMappingConfig newValue)
newValue - a new TypeMappingConfig value.
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||