Modifier and Type | Method and Description |
---|---|
KeyGenerator |
BaseFactory.getKeyGenerator(ClassDescriptor clsDesc)
Returns a key generator as specified in the given class descriptor.
|
Persistence |
BaseFactory.getPersistence(ClassDescriptor clsDesc)
Returns a persistence implementation for the specified object
type (given its descriptor) on behalf of the specified cache
engine.
|
Modifier and Type | Method and Description |
---|---|
TableInfo |
InfoFactory.createTableInfo(ClassDescriptor classDescriptor)
Method checks if table for given class descriptor exists.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
JDOClassDescriptorResolverImpl.resolve(Class<?> type)
Returns the ClassDescriptor for the given class using the following
strategy.
Lookup the class descriptor cache Call ClassResolutionByMappingLoader command
Call ClassResolutionByFile command
|
ClassDescriptor |
JDOClassDescriptorResolver.resolve(String type)
Returns the ClassDescriptor for the given class.
|
ClassDescriptor |
JDOClassDescriptorResolverImpl.resolve(String type)
Returns the ClassDescriptor for the given class.
|
Modifier and Type | Method and Description |
---|---|
Iterator<ClassDescriptor> |
JDOClassDescriptorResolver.descriptorIterator()
Returns an iterator over all the known descriptors in the original order they have been
added.
|
Iterator<ClassDescriptor> |
JDOClassDescriptorResolverImpl.descriptorIterator()
Returns an iterator over all the known descriptors in the original order they have been
added.
|
Modifier and Type | Method and Description |
---|---|
void |
JDOClassDescriptorResolver.registerDescriptor(Class<?> type,
ClassDescriptor classDescriptor)
Registers a
ClassDescriptor with the descriptor cache. |
void |
JDOClassDescriptorResolverImpl.registerDescriptor(Class<?> type,
ClassDescriptor classDescriptor)
Registers a
ClassDescriptor with the descriptor cache. |
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
ClassResolutionByCDR.resolve(Class type)
Resolves a
type to a ClassDescriptor by looking for
a JDOConstants.PKG_CDR_LIST_FILE file in the root directory. |
ClassDescriptor |
ClassResolutionByAnnotations.resolve(Class type)
Try to resolve/generate a
ClassDescriptor for the given (JPA
annotated) type. |
ClassDescriptor |
ClassResolutionByMappingLoader.resolve(Class type)
|
ClassDescriptor |
ClassResolutionByFile.resolve(Class type)
Tries to load a
ClassDescriptor for the given type from the
filesystem by lookup the subpackage specified in
using the
ClassLoader of the ClassLoaderNature . |
ClassDescriptor |
ClassDescriptorResolutionCommand.resolve(Class<?> type)
Resolves a
ClassDescriptor .. |
Modifier and Type | Method and Description |
---|---|
Map<String,ClassDescriptor> |
ClassResolutionByCDR.getDescriptors(String packageName)
Get all descriptors from the package defined by the
packageName that contains the
JDOConstants.PKG_CDR_LIST_FILE file. |
Modifier and Type | Class and Description |
---|---|
class |
DatabaseChoiceDescriptor
Class DatabaseChoiceDescriptor.
|
class |
DatabaseDescriptor
Class DatabaseDescriptor.
|
class |
DataSourceDescriptor
Class DataSourceDescriptor.
|
class |
DriverDescriptor
Class DriverDescriptor.
|
class |
JdoConfDescriptor
Class JdoConfDescriptor.
|
class |
JndiDescriptor
Class JndiDescriptor.
|
class |
MappingDescriptor
Class MappingDescriptor.
|
class |
PackageMappingDescriptor
Class PackageMappingDescriptor.
|
class |
TransactionDemarcationDescriptor
Class TransactionDemarcationDescriptor.
|
class |
TransactionManagerDescriptor
Class TransactionManagerDescriptor.
|
Modifier and Type | Method and Description |
---|---|
static ClassDescriptor |
JDOUtils.getClassDescriptor(String db,
Class<?> type)
Return ClassDescriptor for given type in named database .
|
Modifier and Type | Class and Description |
---|---|
class |
AutomaticNamingTypeDescriptor
Class AutomaticNamingTypeDescriptor.
|
class |
BindingDescriptor
Class BindingDescriptor.
|
class |
ClassTypeDescriptor
Class ClassTypeDescriptor.
|
class |
ComponentBindingTypeChoiceDescriptor
Class ComponentBindingTypeChoiceDescriptor.
|
class |
ComponentBindingTypeDescriptor
Class ComponentBindingTypeDescriptor.
|
class |
ContentMemberTypeDescriptor
Class ContentMemberTypeDescriptor.
|
class |
EnumBindingTypeDescriptor
Class EnumBindingTypeDescriptor.
|
class |
EnumClassNameDescriptor
Class EnumClassNameDescriptor.
|
class |
EnumMemberDescriptor
Class EnumMemberDescriptor.
|
class |
ExcludeDescriptor
Class ExcludeDescriptor.
|
class |
ExcludesDescriptor
Class ExcludesDescriptor.
|
class |
FieldTypeDescriptor
Class FieldTypeDescriptor.
|
class |
ForcesDescriptor
Class ForcesDescriptor.
|
class |
IncludeTypeDescriptor
Class IncludeTypeDescriptor.
|
class |
InterfaceDescriptor
Class InterfaceDescriptor.
|
class |
NamingTypeDescriptor
Class NamingTypeDescriptor.
|
class |
NamingXMLTypeDescriptor
Class NamingXMLTypeDescriptor.
|
class |
PackageTypeChoiceDescriptor
Class PackageTypeChoiceDescriptor.
|
class |
PackageTypeDescriptor
Class PackageTypeDescriptor.
|
Modifier and Type | Class and Description |
---|---|
class |
BindingTypeDescriptor
Class BindingTypeDescriptor.
|
class |
FieldTypeCollectionTypeDescriptor
Class FieldTypeCollectionTypeDescriptor.
|
class |
FieldTypeVisibilityTypeDescriptor
Class FieldTypeVisibilityTypeDescriptor.
|
class |
VisibilityTypeDescriptor
Class VisibilityTypeDescriptor.
|
Modifier and Type | Method and Description |
---|---|
protected ClassDescriptor |
JDOMappingLoader.createClassDescriptor(ClassMapping classMapping) |
ClassDescriptor |
SQLEngine.getDescriptor()
Used by
OQLQuery to retrieve the class descriptor. |
Modifier and Type | Method and Description |
---|---|
static String[] |
SQLHelper.getIdentitySQLNames(ClassDescriptor desc) |
static int |
SQLHelper.numberOfExtendingClassDescriptors(ClassDescriptor classDescriptor) |
protected void |
JDOMappingLoader.resolveRelations(ClassDescriptor clsDesc)
Walks through all fields of a descriptor and resolves relation
ClassDescriptor s by using mapping information or, if not
present, resolution by file to support generated
ClassDescriptor s. |
Modifier and Type | Method and Description |
---|---|
static void |
SQLHelper.addExtendingClassDescriptors(Collection<ClassDescriptor> classDescriptorsToAdd,
Collection<ClassDescriptor> extendClassDescriptors) |
static void |
SQLHelper.addExtendingClassDescriptors(Collection<ClassDescriptor> classDescriptorsToAdd,
Collection<ClassDescriptor> extendClassDescriptors) |
static Object[] |
SQLHelper.calculateNumberOfFields(Collection<ClassDescriptor> extendingClassDescriptors,
int numberOfIdentityColumns,
int numberOfFields,
int numberOfExtendLevels,
ResultSet rs) |
Constructor and Description |
---|
SQLEngine(ClassDescriptor clsDesc,
PersistenceFactory factory) |
SQLFieldInfo(ClassDescriptor clsDesc,
FieldDescriptor fieldDesc,
String classTable,
boolean ext) |
Modifier and Type | Method and Description |
---|---|
Collection<ClassDescriptor> |
ClassDescriptorJDONature.getExtended()
Returns a collection of
ClassDescriptor s that extend this class (descriptor). |
Modifier and Type | Method and Description |
---|---|
void |
ClassDescriptorJDONature.addExtended(ClassDescriptor classDesc)
Adds a
ClassDescriptor that extends this class. |
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
ParseTreeWalker.getClassDescriptor()
Accessor method for _clsDesc.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
FieldDescriptor.getClassDescriptor()
Returns the class descriptor related to the field type.
|
ClassDescriptor |
FieldDescriptor.getContainingClassDescriptor()
Get the class descriptor which contains this field.
|
ClassDescriptor |
MappingLoader.getDescriptor(String classname)
Returns the ClassDescriptor for the class with the given name.
|
ClassDescriptor |
ClassDescriptor.getExtends()
Returns the class descriptor of the class extended by this class.
|
Modifier and Type | Method and Description |
---|---|
List<ClassDescriptor> |
MappingLoader.getDescriptors()
Returns a List of
ClassDescriptor s of all known descriptors. |
Modifier and Type | Method and Description |
---|---|
void |
FieldDescriptor.setContainingClassDescriptor(ClassDescriptor parent)
Set the class descriptor which contains this field.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassDescriptorImpl
The standard
ClassDescriptor implementation, holding general OO information
about the class described.
Engines will use Nature s to augment this class with engine-specific knowledge
and functionality, using ClassDescriptorImpl.addNature(String) to register these views
with this class.
Once a Nature has been registered with this ClassDescriptor , the nature
can be applied to the ClassDescriptor and nature-specific properties
can be accessed in a type-safe way. |
Modifier and Type | Method and Description |
---|---|
protected abstract ClassDescriptor |
AbstractMappingLoader.createClassDescriptor(ClassMapping clsMap) |
ClassDescriptor |
FieldDescriptorImpl.getClassDescriptor() |
ClassDescriptor |
FieldDescriptorImpl.getContainingClassDescriptor() |
protected ClassDescriptor |
AbstractMappingLoader.getDepended(ClassMapping clsMap,
Class<?> javaClass)
Gets the ClassDescriptor the given
classMapping depends
on. |
ClassDescriptor |
ClassDescriptorImpl.getDepends()
Returns the
ClassDescriptor of the class which this class
depends upon. |
ClassDescriptor |
AbstractMappingLoader2.getDescriptor(String classname) |
protected ClassDescriptor |
AbstractMappingLoader.getExtended(ClassMapping clsMap,
Class<?> javaClass)
Gets the ClassDescriptor the given
classMapping extends. |
ClassDescriptor |
ClassDescriptorImpl.getExtends()
Returns the class descriptor of the class extended by this class.
|
Modifier and Type | Method and Description |
---|---|
List<ClassDescriptor> |
AbstractMappingLoader2.getDescriptors() |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractMappingLoader2.addDescriptor(ClassDescriptor descriptor)
Adds a class descriptor.
|
static FieldDescriptor[] |
ClassDescriptorHelper.getFullFields(ClassDescriptor classDescriptor)
Get all the
FieldDescriptor s for non-identity fields, including
all the fields in base classes. |
static FieldDescriptor[] |
ClassDescriptorHelper.getIdFields(ClassDescriptor classDescriptor)
Get the all the id fields of a class
If the class, C, is a dependent class, then
the depended class', D, id fields will be
appended at the back and returned.
|
protected abstract void |
AbstractMappingLoader.resolveRelations(ClassDescriptor clsDesc) |
void |
FieldDescriptorImpl.setClassDescriptor(ClassDescriptor classDescriptor)
Set the ClassDescriptor for the described field.
|
void |
FieldDescriptorImpl.setContainingClassDescriptor(ClassDescriptor parent) |
void |
ClassDescriptorImpl.setDepends(ClassDescriptor depends)
Sets the
ClassDescriptor of the class which this class
depends upon. |
void |
ClassDescriptorImpl.setExtends(ClassDescriptor extend)
Sets the descriptor of the class which this class extends.
|
Modifier and Type | Class and Description |
---|---|
class |
BindXmlDescriptor
Class BindXmlDescriptor.
|
class |
CacheTypeMappingDescriptor
Class CacheTypeMappingDescriptor.
|
class |
ClassChoiceDescriptor
Class ClassChoiceDescriptor.
|
class |
ClassMappingDescriptor
Class ClassMappingDescriptor.
|
class |
ContainerDescriptor
Class ContainerDescriptor.
|
class |
FieldHandlerDefDescriptor
Class FieldHandlerDefDescriptor.
|
class |
FieldMappingDescriptor
Class FieldMappingDescriptor.
|
class |
IncludeDescriptor
Class IncludeDescriptor.
|
class |
KeyGeneratorDefDescriptor
Class KeyGeneratorDefDescriptor.
|
class |
LdapDescriptor
Class LdapDescriptor.
|
class |
MappingRootDescriptor
Class MappingRootDescriptor.
|
class |
MapToDescriptor
Class MapToDescriptor.
|
class |
NamedNativeQueryDescriptor
Class NamedNativeQueryDescriptor.
|
class |
NamedQueryDescriptor
Class NamedQueryDescriptor.
|
class |
ParamDescriptor
Class ParamDescriptor.
|
class |
PropertyDescriptor
Class PropertyDescriptor.
|
class |
PropertyTypeDescriptor
Class PropertyTypeDescriptor.
|
class |
QueryHintDescriptor
Class QueryHintDescriptor.
|
class |
SqlDescriptor
Class SqlDescriptor.
|
Modifier and Type | Class and Description |
---|---|
class |
BindXmlAutoNamingTypeDescriptor
Class BindXmlAutoNamingTypeDescriptor.
|
class |
BindXmlNodeTypeDescriptor
Class BindXmlNodeTypeDescriptor.
|
class |
ClassMappingAccessTypeDescriptor
Class ClassMappingAccessTypeDescriptor.
|
class |
FieldMappingCollectionTypeDescriptor
Class FieldMappingCollectionTypeDescriptor.
|
class |
SqlDirtyTypeDescriptor
Class SqlDirtyTypeDescriptor.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
ClassMolder.getClassDescriptor() |
Modifier and Type | Method and Description |
---|---|
KeyGenerator |
PersistenceFactory.getKeyGenerator(ClassDescriptor clsDesc)
Returns a key generator as specified in the given class descriptor.
|
Persistence |
PersistenceFactory.getPersistence(ClassDescriptor clsDesc)
Returns a persistence implementation for the specified object
type (given its descriptor) on behalf of the specified cache
engine.
|
Modifier and Type | Class and Description |
---|---|
class |
BaseDescriptor
The Base Descriptor class, this class is extended
by the descriptors for the custom Castor schema types.
|
class |
CenturyDescriptor
Deprecated.
since Castor 1.0.6 since this type is not in any recommendation.
|
class |
DateDescriptor
The Date Descriptor.
|
class |
DateTimeDescriptor
The DateTime Descriptor.
|
class |
DurationDescriptor
The Duration Descriptor.
|
class |
GDayDescriptor
The GDay Descriptor.
|
class |
GMonthDayDescriptor
The gMonthDay Descriptor.
|
class |
GMonthDescriptor
The GMonth Descriptor.
|
class |
GYearDescriptor
The GYear Descriptor.
|
class |
GYearMonthDescriptor
The GYearMonth Descriptor.
|
class |
MonthDescriptor
Deprecated.
since Castor 1.0.6 since this type is not in any recommendation.
|
class |
RecurringDurationDescriptor
Deprecated.
since Castor 1.0.6 since this type is not in any recommendation.
|
class |
TimeDescriptor
The Time Descriptor.
|
class |
TimeDurationDescriptor
Deprecated.
since Castor 1.0.6 since this type is not in any recommendation.
|
class |
TimePeriodDescriptor
Deprecated.
since Castor 1.0.6 since this type is not in any recommendation.
|
class |
YearDescriptor
Deprecated.
since Castor 1.0.6 since this type is not in any recommendation.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
BaseDescriptor.getExtends()
Returns the class descriptor of the class extended by this class.
|
Modifier and Type | Interface and Description |
---|---|
interface |
XMLClassDescriptor
A class descriptor for describing relationships between a Class
and an XML element or complexType.
|
Modifier and Type | Method and Description |
---|---|
protected ClassDescriptor |
XMLMappingLoader.createClassDescriptor(ClassMapping classMapping)
To create the class descriptor for the given class mapping.
|
ClassDescriptor |
ClassDescriptorResolver.resolve(Class<?> type)
Returns the ClassDescriptor for the given class.
|
Modifier and Type | Method and Description |
---|---|
Iterator<ClassDescriptor> |
XMLClassDescriptorResolver.resolveAllByXMLName(String xmlName,
String namespaceURI,
ClassLoader loader)
Returns an enumeration of XMLClassDescriptor objects that match the given
xml name.
|
Modifier and Type | Method and Description |
---|---|
protected void |
XMLMappingLoader.resolveRelations(ClassDescriptor clsDesc) |
Modifier and Type | Class and Description |
---|---|
class |
DateClassDescriptor
A ClassDescriptor for java.util.Date.
|
class |
EnumerationDescriptor
The default class descriptor for Enumerations that are passed in as the
root-level class, this is really only useful for marshaling, as Enumerations
are immutable.
|
class |
ListClassDescriptor
The default java.util.List class descriptor.
|
class |
LocaleDescriptor
A ClassDescriptor for java.util.Locale.
|
class |
PrimitivesClassDescriptor
The default primitives class descriptor, this is only used when unmarshaling
a primitive as the "root" object.
|
class |
RootArrayDescriptor
The default class descriptor for Arrays that are passed in as the root-level
class.
|
class |
SQLDateClassDescriptor
A ClassDescriptor for java.sql.Date.
|
class |
SQLTimeClassDescriptor
A ClassDescriptor for java.sql.Time.
|
class |
SQLTimestampClassDescriptor
A ClassDescriptor for java.sql.Date.
|
class |
StringClassDescriptor
The default String class descriptor.
|
class |
VectorClassDescriptor
The default java.util.Vector class descriptor.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
DateClassDescriptor.getExtends()
Returns the class descriptor of the class extended by this class.
|
ClassDescriptor |
SQLTimeClassDescriptor.getExtends()
Returns the class descriptor of the class extended by this class.
|
ClassDescriptor |
ListClassDescriptor.getExtends()
Returns the class descriptor of the class extended by this class.
|
ClassDescriptor |
RootArrayDescriptor.getExtends()
Returns the class descriptor of the class extended by this class.
|
ClassDescriptor |
VectorClassDescriptor.getExtends()
Returns the class descriptor of the class extended by this class.
|
ClassDescriptor |
StringClassDescriptor.getExtends()
Returns the class descriptor of the class extended by this class.
|
ClassDescriptor |
SQLTimestampClassDescriptor.getExtends()
Returns the class descriptor of the class extended by this class.
|
ClassDescriptor |
LocaleDescriptor.getExtends()
Returns the class descriptor of the class extended by this class.
|
ClassDescriptor |
SQLDateClassDescriptor.getExtends()
Returns the class descriptor of the class extended by this class.
|
Modifier and Type | Class and Description |
---|---|
class |
ColumnDescriptor
Class ColumnDescriptor.
|
class |
ManyToManyDescriptor
Class ManyToManyDescriptor.
|
class |
OneToManyDescriptor
Class OneToManyDescriptor.
|
class |
OneToOneDescriptor
Class OneToOneDescriptor.
|
class |
PkTypeDescriptor
Class PkTypeDescriptor.
|
class |
PrimaryKeyDescriptor
Class PrimaryKeyDescriptor.
|
class |
ReadonlyDirtyTypeDescriptor
Class ReadonlyDirtyTypeDescriptor.
|
class |
TableDescriptor
Class TableDescriptor.
|
Modifier and Type | Class and Description |
---|---|
class |
TableAccessModeTypeDescriptor
Class TableAccessModeTypeDescriptor.
|
Modifier and Type | Class and Description |
---|---|
class |
XMLClassDescriptorAdapter
An adapter class which can turn an ordinary ClassDescriptor into an
XMLClassDescriptor.
|
class |
XMLClassDescriptorImpl
The core implementation of XMLClassDescriptor.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
XMLClassDescriptorImpl.getExtends()
Returns the class descriptor of the class extended by this class.
|
ClassDescriptor |
XMLClassDescriptorResolverImpl.resolve(Class<?> type)
Returns the ClassDescriptor for the given class.
|
ClassDescriptor |
ResolverStrategy.resolveClass(ResolverStrategy.ResolverResults resolverResults,
String className)
Implementes a strategy how a class is resolved into a list of class descriptors.
|
Modifier and Type | Method and Description |
---|---|
Iterator<ClassDescriptor> |
XMLClassDescriptorResolverImpl.resolveAllByXMLName(String xmlName,
String namespaceURI,
ClassLoader loader)
Returns an enumeration of XMLClassDescriptor objects that match the given
xml name.
|
Constructor and Description |
---|
XMLClassDescriptorAdapter(ClassDescriptor classDesc,
String xmlName)
Creates a new XMLClassDescriptorAdapter using the given ClassDescriptor.
|
XMLClassDescriptorAdapter(ClassDescriptor classDesc,
String xmlName,
NodeType primitiveNodeType)
Creates a new XMLClassDescriptorAdapter using the given ClassDescriptor.
|
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
CastorXMLStrategy.resolveClass(ResolverStrategy.ResolverResults resolverResults,
String className)
Implementes a strategy how a class is resolved into a list of class descriptors.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,ClassDescriptor> |
ByCDR.internalResolve(String packageName,
ClassLoader classLoader,
Map properties)
Tries to load the CDR file for the given package name using the provided
class loader.
|
protected abstract Map<String,ClassDescriptor> |
AbstractResolverPackageCommand.internalResolve(String packageName,
ClassLoader classLoader,
Map props)
The required parameter checks are in the public method and here we expect that the
resolve logic itself is implemented.
|
protected Map<String,ClassDescriptor> |
ByPackageMapping.internalResolve(String packageName,
ClassLoader classLoader,
Map properties)
The required parameter checks are in the public method and here we expect that the
resolve logic itself is implemented.
|
Map<String,ClassDescriptor> |
AbstractResolverPackageCommand.resolve(String packageName,
Map properties)
The one and only purpose resolver commands are good for ;-) .
|
Copyright © 2014. All rights reserved.