com.objectwave.persist.properties
Class BrokerPropertyDetail

java.lang.Object
  |
  +--com.objectwave.persist.properties.BrokerPropertyDetail

public class BrokerPropertyDetail
extends java.lang.Object

The properties for configuration of the RDBBroker.

Version:
$Id: BrokerPropertyDetail.java,v 2.5 2002/02/11 22:58:05 dave_hoag Exp $
Author:
dhoag

Constructor Summary
BrokerPropertyDetail()
          Constructor for the BrokerPropertyDetail object
 
Method Summary
protected  SqlConnectionFactory getActualConnectionFactory()
          Get the actual instance - Normal use should get this from the BrokerPropertySource
protected  SQLConvertExceptionIF getActualConverter()
          Gets the ActualConverter attribute of the BrokerPropertyDetail object
protected  java.sql.Driver getActualPersistDriver()
           
protected  PrimaryKeyStrategy getActualStrategy()
          Get an instance of the primary key strategy instead of the name
 java.lang.String getConnectionFactory()
           
 java.lang.String getConnectUrl()
          Get the value.
 java.lang.String getDatabaseImpl()
          Get the value.
 java.lang.String getExceptionConverter()
           
 java.lang.String getPersistDriver()
          Get the value.
 java.lang.String getPersistPassword()
          Gets the PersistPassword attribute of the BrokerPropertyDetail object
 java.lang.String getPersistUser()
          Gets the PersistUser attribute of the BrokerPropertyDetail object
 java.lang.String getPrimaryKeyStrategy()
          Gets the PrimaryKeyStrategy attribute of the BrokerPropertyDetail object
 boolean getUsePreparedStatements()
          Gets the UsePreparedStatements attribute of the BrokerPropertyDetail object
 boolean isShowingSql()
          Gets the ShowingSql attribute of the BrokerPropertyDetail object
protected  void setActualConnectionFactory(SqlConnectionFactory factory)
          Use the BrokerPropertySource to set these values.
protected  void setActualConverter(SQLConvertExceptionIF converter)
          Sets the ActualConverter attribute of the BrokerPropertyDetail object
protected  void setActualPersistDriver(java.sql.Driver driver)
          Use the BrokerPropertySource to set this value.
protected  void setActualStrategy(PrimaryKeyStrategy strat)
          Use the BrokerPropertySource to set these values.
 void setConnectionFactory(java.lang.String className)
          Set the name of the class that is to be used as the SqlConnectionFactory for the RDBConnection objects.
 void setConnectUrl(java.lang.String aValue)
          Set the value.
 void setDatabaseImpl(java.lang.String aValue)
          Set the value.
 void setExceptionConverter(java.lang.String value)
          The name of a class that implements the SQLConvertExceptionIF interface.
 void setPersistDriver(java.lang.String aValue)
          Set the value.
 void setPersistPassword(java.lang.String value)
          Sets the PersistPassword attribute of the BrokerPropertyDetail object
 void setPersistUser(java.lang.String value)
          Sets the PersistUser attribute of the BrokerPropertyDetail object
 void setPrimaryKeyStrategy(java.lang.String str)
          Sets the PrimaryKeyStrategy attribute of the BrokerPropertyDetail object
 void setShowingSql(boolean showSql)
          If true, show the sql statements
 void setUsePreparedStatements(boolean prep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokerPropertyDetail

public BrokerPropertyDetail()
Constructor for the BrokerPropertyDetail object

Method Detail

setDatabaseImpl

public void setDatabaseImpl(java.lang.String aValue)
Set the value.

Parameters:
aValue - The new DatabaseImpl value

setConnectUrl

public void setConnectUrl(java.lang.String aValue)
Set the value.

Parameters:
aValue - The new ConnectUrl value

setExceptionConverter

public void setExceptionConverter(java.lang.String value)
                           throws java.lang.ClassNotFoundException
The name of a class that implements the SQLConvertExceptionIF interface.

Parameters:
value - The new ExceptionConverter value
Throws:
java.lang.ClassNotFoundException

setPersistPassword

public void setPersistPassword(java.lang.String value)
Sets the PersistPassword attribute of the BrokerPropertyDetail object

Parameters:
value - The new PersistPassword value

setPersistUser

public void setPersistUser(java.lang.String value)
Sets the PersistUser attribute of the BrokerPropertyDetail object

Parameters:
value - The new PersistUser value

setPersistDriver

public void setPersistDriver(java.lang.String aValue)
                      throws java.lang.ClassNotFoundException
Set the value.

Parameters:
aValue - The new PersistDriver value
Throws:
java.lang.ClassNotFoundException

setConnectionFactory

public void setConnectionFactory(java.lang.String className)
                          throws java.lang.ClassNotFoundException
Set the name of the class that is to be used as the SqlConnectionFactory for the RDBConnection objects.

Parameters:
className - The new ConnectionFactory value
Throws:
java.lang.ClassNotFoundException

setPrimaryKeyStrategy

public void setPrimaryKeyStrategy(java.lang.String str)
                           throws java.lang.ClassNotFoundException
Sets the PrimaryKeyStrategy attribute of the BrokerPropertyDetail object

Parameters:
str - The new PrimaryKeyStrategy value
Throws:
java.lang.ClassNotFoundException

setUsePreparedStatements

public void setUsePreparedStatements(boolean prep)
Parameters:
prep - The new UsePreparedStatements value

setShowingSql

public void setShowingSql(boolean showSql)
If true, show the sql statements

Parameters:
showSql - The new ShowingSql value

setActualPersistDriver

protected void setActualPersistDriver(java.sql.Driver driver)
Use the BrokerPropertySource to set this value.

Parameters:
driver - The new ActualPersistDriver value

setActualConverter

protected void setActualConverter(SQLConvertExceptionIF converter)
Sets the ActualConverter attribute of the BrokerPropertyDetail object

Parameters:
converter - The new ActualConverter value

setActualConnectionFactory

protected void setActualConnectionFactory(SqlConnectionFactory factory)
Use the BrokerPropertySource to set these values.

Parameters:
factory - The new ActualConnectionFactory value

setActualStrategy

protected void setActualStrategy(PrimaryKeyStrategy strat)
Use the BrokerPropertySource to set these values.

Parameters:
strat - The new ActualStrategy value

getExceptionConverter

public java.lang.String getExceptionConverter()
Returns:
The ExceptionConverter value

getPersistUser

public java.lang.String getPersistUser()
Gets the PersistUser attribute of the BrokerPropertyDetail object

Returns:
The PersistUser value

getPersistPassword

public java.lang.String getPersistPassword()
Gets the PersistPassword attribute of the BrokerPropertyDetail object

Returns:
The PersistPassword value

getDatabaseImpl

public java.lang.String getDatabaseImpl()
Get the value.

Returns:
The DatabaseImpl value

getConnectUrl

public java.lang.String getConnectUrl()
Get the value.

Returns:
The ConnectUrl value

getPersistDriver

public java.lang.String getPersistDriver()
Get the value.

Returns:
The PersistDriver value

getPrimaryKeyStrategy

public java.lang.String getPrimaryKeyStrategy()
Gets the PrimaryKeyStrategy attribute of the BrokerPropertyDetail object

Returns:
The PrimaryKeyStrategy value

getConnectionFactory

public java.lang.String getConnectionFactory()
Returns:
The ConnectionFactory value

isShowingSql

public boolean isShowingSql()
Gets the ShowingSql attribute of the BrokerPropertyDetail object

Returns:
The ShowingSql value

getUsePreparedStatements

public boolean getUsePreparedStatements()
Gets the UsePreparedStatements attribute of the BrokerPropertyDetail object

Returns:
The UsePreparedStatements value

getActualPersistDriver

protected java.sql.Driver getActualPersistDriver()
Returns:
The ActualPersistDriver value

getActualConverter

protected SQLConvertExceptionIF getActualConverter()
Gets the ActualConverter attribute of the BrokerPropertyDetail object

Returns:
The ActualConverter value

getActualConnectionFactory

protected SqlConnectionFactory getActualConnectionFactory()
Get the actual instance - Normal use should get this from the BrokerPropertySource

Returns:
The ActualConnectionFactory value

getActualStrategy

protected PrimaryKeyStrategy getActualStrategy()
Get an instance of the primary key strategy instead of the name

Returns:
The ActualStrategy value