kodo.jdbc.meta
Class MetaDataValueClassIndicator
java.lang.Object
|
+--kodo.jdbc.meta.Indicator
|
+--kodo.jdbc.meta.ClassIndicator
|
+--kodo.jdbc.meta.ColumnClassIndicator
|
+--kodo.jdbc.meta.InValueClassIndicator
|
+--kodo.jdbc.meta.MetaDataValueClassIndicator
- All Implemented Interfaces:
- Mapping
- public class MetaDataValueClassIndicator
- extends InValueClassIndicator
Determines the class of database records using a metadata extensions
that map a database value to the class it represents.
Methods inherited from class kodo.jdbc.meta.Indicator |
delete, delete, getDBDictionary, getMappingRepository, getOwnerMapping, getTable, insert, isCustomDelete, isCustomInsert, isCustomUpdate, reverseMap, setOwnerMapping, update, update |
INDICATOR_VALUE
public static final String INDICATOR_VALUE
- Extension key used to specify the column class indicator value for
this class.
TYPE
public static final String TYPE
MetaDataValueClassIndicator
public MetaDataValueClassIndicator()
getMappingType
public String getMappingType()
- Description copied from interface:
Mapping
- Return the abbreviated name of this mapping, or the full class name if
it is a custom mapping.
getIndicatorValue
public String getIndicatorValue()
setIndicatorValue
public void setIndicatorValue(String val)
loadSubclasses
public void loadSubclasses(JDBCStoreManager store)
throws SQLException,
ClassNotFoundException
- Description copied from class:
ClassIndicator
- Load all subclasses of the owning class mapping into the JVM.
By default, this method logs a warning that the
kodo.PersistentClasses
property wasn't set. Subclasses
that are able to actually initialize the subclass list should override
this method to do so.
- Overrides:
loadSubclasses
in class ClassIndicator
getDataStoreTypeCode
protected int getDataStoreTypeCode()
- Description copied from class:
ColumnClassIndicator
- Return the
FieldMapping
type code for the type of data stored
by this indicator.
- Overrides:
getDataStoreTypeCode
in class ColumnClassIndicator
getClassIndicator
protected Object getClassIndicator(ClassMapping mapping)
- Description copied from class:
ColumnClassIndicator
- Return the value the column should take.
- Overrides:
getClassIndicator
in class ColumnClassIndicator
getClass
protected Class getClass(Object indicator,
ClassLoader loader)
throws ClassNotFoundException
- Description copied from class:
ColumnClassIndicator
- Return the class for the given column value.
- Overrides:
getClass
in class ColumnClassIndicator
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.