SolarMetric Kodo JDO 3.1.6 generated on August 25 2004

kodo.jdbc.meta
Class ClassIndicator

java.lang.Object
  |
  +--kodo.jdbc.meta.Indicator
        |
        +--kodo.jdbc.meta.ClassIndicator
All Implemented Interfaces:
Mapping
Direct Known Subclasses:
ColumnClassIndicator

public abstract class ClassIndicator
extends Indicator

Handles determining the object class of database records.


Constructor Summary
ClassIndicator()
           
 
Method Summary
abstract  void addClassConditions(JDBCStoreManager store, Select sel, ClassMapping base, boolean subs)
          Add SQL to limit the classes selected as much as possible to the given base class, and optionally its subclasses.
abstract  Class getClass(JDBCStoreManager store, Result result)
          Return the class for the current result row.
protected  ClassLoader getClassLoader(JDBCStoreManager store)
          Return a class loader from the configured class resolver, based on the owner mapping's described type and the given store manager's persistence manager's class loader.
static ClassIndicator[] getDefaults()
          Return the set of default class indicators.
 void loadSubclasses(JDBCStoreManager store)
          Load all subclasses of the owning class mapping into the JVM.
static ClassIndicator newInstance(String type)
          Return the indicator for the given indicator name.
 void setSubclassesLoaded(boolean loaded)
          Set whether subclasses have been loaded.
 boolean subclassesLoaded()
          Return true if subclasses have been loaded.
 String toString()
           
 
Methods inherited from class kodo.jdbc.meta.Indicator
addMappingInfoAttributes, delete, delete, fromMappingInfo, getDBDictionary, getMappingRepository, getOwnerMapping, getTable, insert, insert, isCustomDelete, isCustomInsert, isCustomUpdate, refSchemaComponents, reverseMap, select, setOwnerMapping, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface kodo.jdbc.meta.Mapping
getMappingType, map, toMappingInfo
 

Constructor Detail

ClassIndicator

public ClassIndicator()
Method Detail

newInstance

public static ClassIndicator newInstance(String type)
Return the indicator for the given indicator name.

getDefaults

public static ClassIndicator[] getDefaults()
Return the set of default class indicators.

subclassesLoaded

public boolean subclassesLoaded()
Return true if subclasses have been loaded.

setSubclassesLoaded

public void setSubclassesLoaded(boolean loaded)
Set whether subclasses have been loaded.

loadSubclasses

public void loadSubclasses(JDBCStoreManager store)
                    throws SQLException,
                           ClassNotFoundException
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.

getClass

public abstract Class getClass(JDBCStoreManager store,
                               Result result)
                        throws SQLException,
                               ClassNotFoundException
Return the class for the current result row.

addClassConditions

public abstract void addClassConditions(JDBCStoreManager store,
                                        Select sel,
                                        ClassMapping base,
                                        boolean subs)
Add SQL to limit the classes selected as much as possible to the given base class, and optionally its subclasses.

getClassLoader

protected ClassLoader getClassLoader(JDBCStoreManager store)
Return a class loader from the configured class resolver, based on the owner mapping's described type and the given store manager's persistence manager's class loader.

toString

public String toString()
Overrides:
toString in class Object

SolarMetric Kodo JDO 3.1.6 generated on August 25 2004

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.