Package org.apache.torque.map
Class InheritanceMap
java.lang.Object
org.apache.torque.map.InheritanceMap
- All Implemented Interfaces:
Serializable
InheritanceMap is used to model OM inheritance classes.
- Version:
- $Id: InheritanceMap.java 1448414 2013-02-20 21:06:35Z tfischer $
- Author:
- Greg Monroe
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInheritanceMap(ColumnMap column, String key, String className, String ancestor) Create an inheritance map object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the class name for this InheritanceMap.Returns the column this inheritance map belongs to.Returns the ancestor class for the class described by this InheritanceMap.getKey()Returns the key by which this inheritanceMap is activated.voidsetClassName(String className) Sets the class name for this InheritanceMap.voidSets the column this inheritance map belongs to.voidsetExtends(String ancestor) Sets the ancestor class for the class described by this InheritanceMap.voidSets the key by which this inheritanceMap is activated.
-
Constructor Details
-
InheritanceMap
Create an inheritance map object.- Parameters:
column- The column this inheritance map belongs to.key- Key to determine which subclass appliesclassName- package.Name of sub class to use for record.ancestor- package.Name of class that className extends.
-
-
Method Details
-
getExtends
Returns the ancestor class for the class described by this InheritanceMap.- Returns:
- the ancestor class for the class described by this InheritanceMap.
-
setExtends
Sets the ancestor class for the class described by this InheritanceMap.- Parameters:
ancestor- The ancestor for the class described by this InheritanceMap.
-
getClassName
Returns the class name for this InheritanceMap.- Returns:
- The class name for this InheritanceMap.
-
setClassName
Sets the class name for this InheritanceMap.- Parameters:
className- The className for this InheritanceMap.
-
getColumn
Returns the column this inheritance map belongs to.- Returns:
- the column this inheritance map belongs to.
-
setColumn
Sets the column this inheritance map belongs to.- Parameters:
column- the column this inheritance map belongs to.
-
getKey
Returns the key by which this inheritanceMap is activated.- Returns:
- The key by which this inheritanceMap is activated.
-
setKey
Sets the key by which this inheritanceMap is activated.- Parameters:
key- The key by which this inheritanceMap is activated.
-