Top Description Constructors Methods
org.eclipse.persistence.descriptors

public abstract Class ClassExtractor

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.descriptors.MethodClassExtractor
Imports
org.eclipse.persistence.exceptions.*, org.eclipse.persistence.sessions.*

Purpose: Abstract class to allow complex inheritance support. Typically class indicators are used to define inheritance in the database, however in complex cases the class type may be determined through another mechanism. The class extractor must be able to determine and return the class type from the database row.

See Also
org.eclipse.persistence.descriptors.InheritancePolicy#setClassExtractor(ClassExtractor)

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract <T> Class<T>
extractClassFromRow(DataRecord databaseRow, Session session)

Extract/compute the class from the database row and return the class.

public void
initialize(ClassDescriptor descriptor, Session session)

Allow for any initialization.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ClassExtractorback to summary
public ClassExtractor()

Method Detail

extractClassFromRowback to summary
public abstract <T> Class<T> extractClassFromRow(DataRecord databaseRow, Session session)

Extract/compute the class from the database row and return the class. Map is used as the public interface to database row, the key is the field name, the value is the database value.

initializeback to summary
public void initialize(ClassDescriptor descriptor, Session session) throws DescriptorException

Allow for any initialization.