|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.configuration.BasicPropertySource | +--com.objectwave.persist.properties.BrokerPropertySource
This class is stateless and really acts like a finder for property support.
Field Summary |
Fields inherited from class com.objectwave.configuration.BasicPropertySource |
configurationService, name |
Constructor Summary | |
BrokerPropertySource()
Constructor for the BrokerPropertySource object |
|
BrokerPropertySource(BrokerPropertyDetail detail)
Bypass the traditional initialization and use the provided parameter as the source of property values. |
|
BrokerPropertySource(java.lang.String customCategory)
A custom category allows user of this class to define the category. |
Method Summary | |
protected void |
customInitialize()
|
SqlConnectionFactory |
getConnectionFactory()
Get the connection factory |
java.lang.String |
getConnectUrl()
Gets the ConnectUrl attribute of the BrokerPropertyDetail object |
java.lang.String |
getDatabaseImpl()
Gets the DatabaseImpl attribute of the BrokerPropertyDetail object |
SQLConvertExceptionIF |
getExceptionConverter()
Get the instance to use as the converter - null is a legal return type |
java.lang.Class |
getExpectedClass()
Return the 'type' of the detail class to populate with configured values. |
java.sql.Driver |
getPersistDriver()
Gets the PersistDriver attribute of the BrokerPropertyDetail object |
java.lang.String |
getPersistPassword()
Gets the PersistPassword attribute of the BrokerPropertyDetail object |
java.lang.String |
getPersistUser()
Gets the PersistUser attribute of the BrokerPropertyDetail object |
PrimaryKeyStrategy |
getPrimaryKeyStrategy()
Get the primaryKeyStrategy. |
BrokerPropertyDetail |
getPropertyDetail()
Return the instance holding the property values. |
boolean |
getUsePreparedStatements()
Gets the UsePreparedStatements attribute of the BrokerPropertyDetail object |
protected void |
initialize()
Find our LoggingPropertySourceDetail instance. |
boolean |
isShowingSql()
Gets the ShowingSql attribute of the BrokerPropertyDetail object |
void |
setConnectionFactory(SqlConnectionFactory factory)
Sets the SqlConnectionFactory attribute of the BrokerPropertySource object |
void |
setConnectionFactoryName(java.lang.String connectionFactoryName)
Change the SqlConnectionFactory to an instance of the provided name. |
void |
setConnectUrl(java.lang.String aValue)
Sets the ConnectUrl attribute of the BrokerPropertyDetail object |
void |
setDatabaseImpl(java.lang.String aValue)
Sets the DatabaseImpl attribute of the BrokerPropertyDetail object |
static void |
setDetailClass(java.lang.Class aBrokerPropertyDetailClass)
Facilitate customization by allowing the default detail class to be set prior to instantiation. |
void |
setExceptionConverter(SQLConvertExceptionIF converter)
Sets the ExceptionConverter attribute of the BrokerPropertySource object |
void |
setPersistDriver(java.sql.Driver driver)
Force the driver to be a specific java.sql.Driver instance |
void |
setPersistDriverName(java.lang.String aValue)
Sets the PersistDriver attribute of the BrokerPropertyDetail object |
void |
setPersistPassword(java.lang.String aValue)
Sets the PersistPassword attribute of the BrokerPropertyDetail object |
void |
setPersistUser(java.lang.String aValue)
Sets the PersistUser attribute of the BrokerPropertyDetail object |
void |
setPrimaryKeyStrategy(PrimaryKeyStrategy strategy)
Force the strategy to be something specific. |
void |
setPropertyDetail(BrokerPropertyDetail detail)
Allow one to programmatically set the values of a broker property source. |
void |
setUsePreparedStatements(boolean val)
If this is true Java Grinder will create prepared statements for every sql call. |
Methods inherited from class com.objectwave.configuration.BasicPropertySource |
getCategoryId, getConfigObject, getConfigurationInstance, getConfigurationInstance, getConfigurationService, getName, setConfigurationService, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BrokerPropertySource()
public BrokerPropertySource(BrokerPropertyDetail detail)
detail
- public BrokerPropertySource(java.lang.String customCategory)
customCategory
- Method Detail |
public static void setDetailClass(java.lang.Class aBrokerPropertyDetailClass) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.InstantiationException
aBrokerPropertyDetailClass
- The new DetailClass value
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.InstantiationException
public void setPropertyDetail(BrokerPropertyDetail detail)
detail
- The new PropertyDetail valuepublic void setDatabaseImpl(java.lang.String aValue)
aValue
- The new DatabaseImpl valuepublic void setConnectUrl(java.lang.String aValue)
aValue
- The new ConnectUrl valuepublic void setPersistUser(java.lang.String aValue)
aValue
- The new PersistUser valuepublic void setPersistPassword(java.lang.String aValue)
aValue
- The new PersistPassword valuepublic void setPersistDriverName(java.lang.String aValue) throws java.lang.ClassNotFoundException
aValue
- The new PersistDriver value
java.lang.ClassNotFoundException
public void setPersistDriver(java.sql.Driver driver)
driver
- The new PersistDriver valuepublic void setConnectionFactoryName(java.lang.String connectionFactoryName) throws java.lang.ClassNotFoundException
connectionFactoryName
- The new ConnectionFactoryName value
java.lang.ClassNotFoundException
public void setExceptionConverter(SQLConvertExceptionIF converter)
converter
- The new ExceptionConverter valuepublic void setUsePreparedStatements(boolean val)
val
- booleanpublic void setPrimaryKeyStrategy(PrimaryKeyStrategy strategy)
strategy
- The new PrimaryKeyStrategy valuepublic void setConnectionFactory(SqlConnectionFactory factory)
factory
- The new SqlConnectionFactory valuepublic BrokerPropertyDetail getPropertyDetail()
public java.lang.String getPersistPassword()
public java.lang.String getPersistUser()
public java.lang.Class getExpectedClass()
public java.lang.String getDatabaseImpl()
public java.lang.String getConnectUrl()
public boolean getUsePreparedStatements()
public SQLConvertExceptionIF getExceptionConverter()
public java.sql.Driver getPersistDriver()
public SqlConnectionFactory getConnectionFactory()
public boolean isShowingSql()
public PrimaryKeyStrategy getPrimaryKeyStrategy()
protected void customInitialize()
protected void initialize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |