Class BaseOjbConfigurer
java.lang.Object
org.kuali.rice.core.api.lifecycle.BaseLifecycle
org.kuali.rice.core.framework.persistence.ojb.BaseOjbConfigurer
- All Implemented Interfaces:
org.kuali.rice.core.api.lifecycle.Lifecycle,org.springframework.beans.factory.InitializingBean
@Deprecated
public class BaseOjbConfigurer
extends org.kuali.rice.core.api.lifecycle.BaseLifecycle
implements org.springframework.beans.factory.InitializingBean
Deprecated.
Base Ojb Configurer implementation which configures OJB for a particular rice module.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.No-arg constructorBaseOjbConfigurer(String moduleName) Deprecated.Constructor that derives jcd aliases and repository metadata location from the module name jcdAliases = [ moduleName.toLowerCase() + "DataSource" ] metadataLocation = "classpath:OJB-repository-" + moduleName.toLowerCase() + ".xml";BaseOjbConfigurer(String[] jcdAliases, String metadataLocation) Deprecated.Constructor which takes the jcdAliases and metadata location -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.protected voidestablishConnectionMetaData(org.apache.ojb.broker.metadata.MetadataManager mm) Deprecated.protected voidestablishRepositoryMetaData(org.apache.ojb.broker.metadata.MetadataManager mm) Deprecated.Deprecated.List of additional OJB descriptor files to include with the connectprotected String[]Deprecated.Return the jcd alias of the connection loaded by the connection metadata.protected StringDeprecated.Should return a String representing the location of a file to load OJB connection and repository metadata from.protected StringDeprecated.protected booleanisConnectionAlreadyConfigured(org.apache.ojb.broker.metadata.MetadataManager mm) Deprecated.protected InputStreampreprocessConnectionMetadata(InputStream inputStream) Deprecated.protected InputStreampreprocessRepositoryMetadata(InputStream inputStream) Deprecated.voidsetAdditionalMetadataLocations(List<String> additionalMetadataLocations) Deprecated.Setter for additional ojb metadata filesvoidsetJcdAliases(String[] jcdAliases) Deprecated.voidsetMetadataLocation(String metadataLocation) Deprecated.voidstart()Deprecated.voidstop()Deprecated.Methods inherited from class org.kuali.rice.core.api.lifecycle.BaseLifecycle
isStarted, setStarted
-
Field Details
-
RICE_OJB_PROPERTIES_PARAM
Deprecated.- See Also:
-
OJB_PROPERTIES_PROP
Deprecated.- See Also:
-
jcdAliases
Deprecated.The OJB JCD aliases -
metadataLocation
Deprecated.The location of the OJB repository/metadata descriptor -
additionalMetadataLocations
Deprecated.
-
-
Constructor Details
-
BaseOjbConfigurer
public BaseOjbConfigurer()Deprecated.No-arg constructor -
BaseOjbConfigurer
Deprecated.Constructor that derives jcd aliases and repository metadata location from the module name jcdAliases = [ moduleName.toLowerCase() + "DataSource" ] metadataLocation = "classpath:OJB-repository-" + moduleName.toLowerCase() + ".xml";- Parameters:
moduleName- the module name
-
BaseOjbConfigurer
Deprecated.Constructor which takes the jcdAliases and metadata location- Parameters:
jcdAliases- the jcd aliasesmetadataLocation- the metadata location
-
-
Method Details
-
start
Deprecated.- Specified by:
startin interfaceorg.kuali.rice.core.api.lifecycle.Lifecycle- Overrides:
startin classorg.kuali.rice.core.api.lifecycle.BaseLifecycle- Throws:
Exception
-
stop
Deprecated.- Specified by:
stopin interfaceorg.kuali.rice.core.api.lifecycle.Lifecycle- Overrides:
stopin classorg.kuali.rice.core.api.lifecycle.BaseLifecycle- Throws:
Exception
-
getOjbPropertiesLocation
Deprecated. -
establishConnectionMetaData
protected void establishConnectionMetaData(org.apache.ojb.broker.metadata.MetadataManager mm) throws Exception Deprecated.- Throws:
Exception
-
preprocessConnectionMetadata
Deprecated.- Throws:
Exception
-
isConnectionAlreadyConfigured
protected boolean isConnectionAlreadyConfigured(org.apache.ojb.broker.metadata.MetadataManager mm) Deprecated. -
preprocessRepositoryMetadata
Deprecated.- Throws:
Exception
-
establishRepositoryMetaData
protected void establishRepositoryMetaData(org.apache.ojb.broker.metadata.MetadataManager mm) throws Exception Deprecated.- Throws:
Exception
-
getJcdAliases
Deprecated.Return the jcd alias of the connection loaded by the connection metadata. The default implementation returns the jcd alias with which the instance was created (if any)- Returns:
- the jcd alias of the connection loaded by the connection metadata.
-
getMetadataLocation
Deprecated.Should return a String representing the location of a file to load OJB connection and repository metadata from. If null or empty than no metadata will be loaded. The default implementation returns the metadata location with which the instance was created (if any) -
afterPropertiesSet
Deprecated.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception- See Also:
-
setJcdAliases
Deprecated.- Parameters:
jcdAliases- the jcdAliases to set
-
setMetadataLocation
Deprecated.- Parameters:
metadataLocation- the metadataLocation to set
-
getAdditionalMetadataLocations
Deprecated.List of additional OJB descriptor files to include with the connect- Returns:
- List<String> list of ojb files
-
setAdditionalMetadataLocations
Deprecated.Setter for additional ojb metadata files
-