com.ail.core.configure
Class PersistenceMapping

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.configure.PersistenceMapping
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class PersistenceMapping
extends Type

This class holds Persistance information for a configuration. It holds the mapping description for the database & objects - which is generally a string of XML, and transient instance of a persistanceConfiguration.

Version:
$Revision: 1.2 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
PersistenceMapping()
           
 
Method Summary
 java.lang.String getDatabaseConfiguration()
          Get the XML database configuration defnition.
 java.lang.String getDatabaseConfigurationCDATA()
          Get the XML database configuration string
 java.lang.String getObjectMapping()
          Get the XML object mapping defnition.
 java.lang.String getObjectMappingCDATA()
          Get the XML object mapping string
 java.lang.Object getPersistanceConfiguration()
          Get the persistance Configuration.
 void setDatabaseConfiguration(java.lang.String databaseConfiguration)
          Set the XML database configuration string
 void setObjectMapping(java.lang.String objectMapping)
          Set the XML object mapping string
 void setPersistanceConfiguration(java.lang.Object persistanceConfiguration)
          Set the persistance Configuration for this mapping.
 
Methods inherited from class com.ail.core.Type
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceMapping

public PersistenceMapping()
Method Detail

getObjectMapping

public java.lang.String getObjectMapping()
Get the XML object mapping defnition. The actual format of the information returned depends upon the persistance mechenism being used, but it is generally an XML string that describes how objects are mapped into object instances.

Returns:
String describing the mapping.

getObjectMappingCDATA

public java.lang.String getObjectMappingCDATA()
Get the XML object mapping string

Returns:
String describing the mapping.
See Also:
getObjectMapping()

setObjectMapping

public void setObjectMapping(java.lang.String objectMapping)
Set the XML object mapping string

Parameters:
mapping - The mapping string.
See Also:
getObjectMapping()

getDatabaseConfiguration

public java.lang.String getDatabaseConfiguration()
Get the XML database configuration defnition. The actual format database (ie mysql dialect) It is generally an XML string, but is not compulsory

Returns:
String describing the configuration.

getDatabaseConfigurationCDATA

public java.lang.String getDatabaseConfigurationCDATA()
Get the XML database configuration string

Returns:
String describing the configuration.
See Also:
getDatabaseConfiguration()

setDatabaseConfiguration

public void setDatabaseConfiguration(java.lang.String databaseConfiguration)
Set the XML database configuration string

Parameters:
configuration - The configuration string.
See Also:
getDatabaseConfiguration()

getPersistanceConfiguration

public java.lang.Object getPersistanceConfiguration()
Get the persistance Configuration. The persistance services may use this property to cache an instance of the persistanceConfiguration. The configuration handler will ensure that this is handled in a version safe fashion.

Returns:
An instance of a persistanceConfiguration.

setPersistanceConfiguration

public void setPersistanceConfiguration(java.lang.Object persistanceConfiguration)
Set the persistance Configuration for this mapping.

Parameters:
persistanceConfiguration - The persistance Configuration instance
See Also:
getPersistanceConfiguration()