Modifier and Type | Method and Description |
---|---|
static ClassInfo |
ClassInfoBuilder.buildClassInfo(Class<?> type)
Builds a new
ClassInfo describing the given Class. |
static void |
InfoToDescriptorConverter.convert(ClassInfo classInfo,
ClassDescriptorResolver cdr,
ClassDescriptorImpl descriptor)
This method converts a
ClassInfo to a ClassDescriptorImpl
. |
Modifier and Type | Method and Description |
---|---|
TypeConvertor |
TypeConvertorRegistry.getConvertor(Class<?> fromType,
Class<?> toType,
String parameter)
Returns a type convertor initialized with parameter if specified.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnectionFactory.initializeFactory()
Initialize the concrete factory.
|
void |
JNDIConnectionFactory.initializeFactory()
Initialize the concrete factory.
|
void |
DriverConnectionFactory.initializeFactory()
Initialize the concrete factory.
|
void |
DataSourceConnectionFactory.initializeFactory()
Initialize the concrete factory.
|
static DataSource |
DataSourceConnectionFactory.loadDataSource(DataSource confDataSource,
ClassLoader loader)
Initialize JDBC DataSource instance with the given database configuration
instances and the given class loader.
|
static void |
DataSourceConnectionFactory.setParameters(DataSource dataSource,
Param[] params)
Set all the parameters of the given array at the given datasource by calling
one of the set methods of the datasource.
|
Modifier and Type | Method and Description |
---|---|
KeyGenerator |
BaseFactory.getKeyGenerator(ClassDescriptor clsDesc)
Returns a key generator as specified in the given class descriptor.
|
Constructor and Description |
---|
SQLStatementInsert(SQLEngine engine,
PersistenceFactory factory)
Constructor.
|
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 |
---|---|
KeyGenerator |
TableKeyGeneratorFactory.getKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType) |
KeyGenerator |
KeyGeneratorFactory.getKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Produce the key generator.
|
KeyGenerator |
MaxKeyGeneratorFactory.getKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Produce the key generator.
|
KeyGenerator |
HighLowKeyGeneratorFactory.getKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Produce the key generator.
|
KeyGenerator |
IdentityKeyGeneratorFactory.getKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Produce the key generator.
|
KeyGenerator |
NoKeyGeneratorFactory.getKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Produce the key generator.
|
KeyGenerator |
UUIDKeyGeneratorFactory.getKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Produce the key generator.
|
KeyGenerator |
SequenceKeyGeneratorFactory.getKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Produce the key generator.
|
void |
HighLowKeyGenerator.initFromParameters(Properties params)
Method to init some class variables.
|
Constructor and Description |
---|
HighLowKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Initialize the HIGH-LOW key generator.
|
IdentityKeyGenerator(PersistenceFactory factory,
int sqlType)
Initialize the IDENTITY key generator.
|
MaxKeyGenerator(PersistenceFactory factory,
int sqlType)
Initialize the MAX key generator.
|
SequenceAfterKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Initialize the SEQUENCE key generator for AFTER_INSERT style
SequenceAfterKeyGenerator.generateKey(java.sql.Connection, java.lang.String, java.lang.String) is called after INSERT. |
SequenceBeforeKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Initialize the SEQUENCE key generator for BEFORE_INSERT style
SequenceBeforeKeyGenerator.generateKey(java.sql.Connection, java.lang.String, java.lang.String) is called before INSERT. |
SequenceDuringKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Initialize the SEQUENCE key generator for DURING_INSERT style
SequenceDuringKeyGenerator.generateKey(java.sql.Connection, java.lang.String, java.lang.String) is never called. |
TableKeyGenerator(PersistenceFactory factory,
Properties params,
int sqlType)
Creates an instance of this key generator.
|
UUIDKeyGenerator(PersistenceFactory factory,
int sqlType)
Initialize the UUID key generator.
|
Modifier and Type | Method and Description |
---|---|
static KeyGeneratorTypeHandler<?> |
KeyGeneratorTypeHandlerFactory.getTypeHandler(int sqlType,
int allocationSize)
Returns an
KeyGeneratorTypeHandler instance. |
Modifier and Type | Method and Description |
---|---|
static DatabaseContext |
DatabaseRegistry.getDatabaseContext(String name)
Get the ConnectionFactory for the given database name.
|
void |
DatabaseContext.initialize()
Initialize factory if it had not been initialized before.
|
void |
DatabaseContext.initializeFactory() |
static void |
DatabaseRegistry.loadDatabase(InputSource source,
EntityResolver resolver,
ClassLoader loader)
Instantiates a ConnectionFactory from the JDO configuration file.
|
static void |
DatabaseRegistry.loadDatabase(InputSource source,
EntityResolver resolver,
ClassLoader loader,
JDOClassDescriptorResolver classDescriptorResolver)
Instantiates a ConnectionFactory from the JDO configuration file.
|
static void |
DatabaseRegistry.loadDatabase(JdoConf jdoConf,
EntityResolver resolver,
ClassLoader loader,
String baseURI)
Creates a entry for every database and associates them with their name in a
map.
|
static void |
DatabaseRegistry.loadDatabase(JdoConf jdoConf,
EntityResolver resolver,
ClassLoader loader,
String baseURI,
JDOClassDescriptorResolver classDescriptorResolver)
Creates a entry for every database and associates them with their name in
a map.
|
static void |
DatabaseRegistry.loadDatabase(String name,
String engine,
DataSource datasource,
Mapping mapping,
TransactionManager txManager)
Instantiates a DataSourceConnectionFactory with given name, engine, datasource
and mapping.
|
static Class<?> |
SQLTypeInfos.sqlTypeName2javaType(String sqlTypeName)
Returns the Java type for the given SQL type name.
|
static Class<?> |
SQLTypeInfos.sqlTypeNum2javaType(int sqlTypeNum)
Returns the Java type for the given SQL type.
|
static String |
SQLTypeInfos.sqlTypeNum2sqlTypeName(int sqlTypeNum)
Returns the SQL type name for the given SQL type number.
|
Constructor and Description |
---|
DatabaseContext(String name,
String engine,
Mapping mapping,
TransactionManager txManager,
ConnectionFactory factory)
Constructs a new AbstractConnectionFactory with given name, engine and mapping.
|
Modifier and Type | Method and Description |
---|---|
static JdoConf |
JDOConfFactory.createJdoConf(InputSource source,
EntityResolver resolver,
ClassLoader loader)
Creates a JdoConf instance from a SAX InputSource, using a Castor XML
Unmarshaller.
|
static ClassDescriptor |
JDOUtils.getClassDescriptor(String db,
Class<?> type)
Return ClassDescriptor for given type in named database .
|
String |
JDOConfAdapter.getTransactionManager() |
Modifier and Type | Method and Description |
---|---|
MappingLoader |
AbstractMappingLoaderFactory.getMappingLoader() |
MappingLoader |
MappingLoaderFactory.getMappingLoader()
Acquires the appropriate org.exolab.castor.mapping.MappingLoader with the
given properties.
|
MappingLoader |
MappingUnmarshaller.getMappingLoader(Mapping mapping,
BindingType bindingType)
Returns a mapping resolver for the suitable engine.
|
MappingLoader |
MappingUnmarshaller.getMappingLoader(Mapping mapping,
BindingType bindingType,
Object param)
Returns a mapping resolver for the suitable engine.
|
MappingLoader |
MappingLoaderRegistry.getMappingLoader(String sourceType,
BindingType bindingType)
Returns a mapping loader for the suitable source and binding type.
|
protected void |
MappingUnmarshaller.loadMappingInternal(Mapping mapping,
DTDResolver resolver,
String url)
Internal recursive loading method.
|
void |
MappingUnmarshaller.loadMappingOnly(Mapping mapping) |
Modifier and Type | Method and Description |
---|---|
void |
InternalContext.addMapping(Mapping mapping)
Instructs Castor to load class descriptors from the mapping given.
|
void |
AbstractInternalContext.addMapping(Mapping mapping) |
Modifier and Type | Method and Description |
---|---|
static JDOManager |
JDOManager.createInstance(String databaseName)
Factory method for creating a JDOManager instance for one of the
databases configured in the JDOManager configuration file.
|
ConnectionFactory |
JDOManager.getConnectionFactory()
Returns the ConnectionFactory for this JDOManager instance.
|
static void |
JDOManager.loadConfiguration(InputSource source,
EntityResolver resolver,
ClassLoader loader)
Load the JDOManager configuration from the specified input source using
a custom class loader.
|
static void |
JDOManager.loadConfiguration(InputSource source,
EntityResolver resolver,
ClassLoader loader,
JDOClassDescriptorResolver classDescriptorResolver)
Load the JDOManager configuration from the specified input source using
a custom class loader.
|
static void |
JDOManager.loadConfiguration(JdoConf jdoConf,
ClassLoader loader,
String baseURI)
Load the JDOManager configuration from the specified in-memory JdoConf.
|
static void |
JDOManager.loadConfiguration(JdoConf jdoConf,
EntityResolver resolver,
ClassLoader loader,
String baseURI)
Load the JDOManager configuration from the specified in-memory JdoConf.
|
static void |
JDOManager.loadConfiguration(JdoConf jdoConf,
String baseURI)
Load the JDOManager configuration from the specified in-memory JdoConf.
|
static void |
JDOManager.loadConfiguration(String url)
Load the JDOManager configuration from the specified location.
|
static void |
JDOManager.loadConfiguration(String url,
ClassLoader loader)
Load the JDOManager configuration from the specified location using a
custom class loader.
|
static void |
JDOManager.loadConfiguration(String url,
ClassLoader loader,
JDOClassDescriptorResolver classDescriptorResolver)
Load the JDOManager configuration from the specified location using a
custom class loader.
|
static void |
JDOManager.loadConfiguration(String name,
String engine,
DataSource datasource,
Mapping mapping,
TransactionManager txManager)
Initialize the JDOManager configuration with given name, engine, datasource,
transaction demarcation and mapping.
|
Modifier and Type | Method and Description |
---|---|
protected ClassDescriptor |
JDOMappingLoader.createClassDescriptor(ClassMapping classMapping) |
protected FieldDescriptorImpl |
JDOMappingLoader.createFieldDesc(Class javaClass,
FieldMapping fieldMap) |
protected FieldDescriptor |
JDOMappingLoader.findIdentityByName(List<FieldDescriptor> fldList,
String idName,
Class javaClass) |
protected TypeInfo |
JDOMappingLoader.getTypeInfo(Class fieldType,
CollectionHandler colHandler,
FieldMapping fieldMap) |
void |
JDOMappingLoader.loadMapping(MappingRoot mapping,
Object param)
Loads the mapping from the specified mapping object if not loaded previously.
|
Constructor and Description |
---|
SQLEngine(ClassDescriptor clsDesc,
PersistenceFactory factory) |
SQLFieldInfo(ClassDescriptor clsDesc,
FieldDescriptor fieldDesc,
String classTable,
boolean ext) |
SQLStatementLoad(SQLEngine engine,
PersistenceFactory factory)
Constructor creating new SQLStatementLoad.
|
SQLStatementQuery(SQLEngine engine,
PersistenceFactory factory) |
Modifier and Type | Method and Description |
---|---|
abstract GeneralizedFieldHandler |
FieldHandlerFactory.createFieldHandler(Class type)
Creates a GeneralizedFieldHandler for the given class type.
|
List |
Mapping.getMappingSources()
Get list of mapping sources to resolve.
|
void |
Mapping.loadMapping(String url)
Loads the mapping from the specified URL with type defaults to
'CastorXmlMapping'.
|
void |
Mapping.loadMapping(String url,
String type)
Loads the mapping from the specified URL.
|
void |
Mapping.loadMapping(URL url)
Loads the mapping from the specified URL with type defaults to
'CastorXmlMapping'.
|
void |
Mapping.loadMapping(URL url,
String type)
Loads the mapping from the specified URL.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractMappingLoader2.addDescriptor(ClassDescriptor descriptor)
Adds a class descriptor.
|
protected void |
AbstractMappingLoader.checkFieldNameDuplicates(FieldDescriptor[] fields,
Class<?> cls)
Checks all given fields for name equality and throws a MappingException if at
least two fields have the same name.
|
protected abstract ClassDescriptor |
AbstractMappingLoader.createClassDescriptor(ClassMapping clsMap) |
protected void |
AbstractMappingLoader.createClassDescriptors(MappingRoot mapping) |
protected FieldDescriptorImpl |
AbstractMappingLoader.createFieldDesc(Class<?> javaClass,
FieldMapping fieldMap)
Creates a single field descriptor.
|
protected FieldDescriptorImpl[] |
AbstractMappingLoader.createFieldDescriptors(ClassMapping clsMap,
Class<?> javaClass)
Create field descriptors.
|
protected FieldHandler |
AbstractMappingLoader.createFieldHandler(Class<?> javaClass,
Class<?> fldType,
FieldMapping fldMap,
AbstractMappingLoader.TypeInfoReference typeInfoRef)
Creates the FieldHandler for the given FieldMapping.
|
protected void |
AbstractMappingLoader.createFieldHandlers(MappingRoot mapping)
Load field handler definitions, check for duplicate definitions and
instantiate the appropriate FieldHandler implementations.
|
static Method |
AbstractMappingLoader.findAccessor(Class<?> javaClass,
String methodName,
Class<?> fieldType,
boolean getMethod)
Returns the named accessor.
|
static Class |
CollectionHandlers.getCollectionType(String name)
Returns the collection's Java class from the collection name.
|
protected ClassDescriptor |
AbstractMappingLoader.getDepended(ClassMapping clsMap,
Class<?> javaClass)
Gets the ClassDescriptor the given
classMapping depends
on. |
protected ClassDescriptor |
AbstractMappingLoader.getExtended(ClassMapping clsMap,
Class<?> javaClass)
Gets the ClassDescriptor the given
classMapping extends. |
static FieldDescriptor[] |
ClassDescriptorHelper.getFullFields(ClassDescriptor classDescriptor)
Get all the
FieldDescriptor s for non-identity fields, including
all the fields in base classes. |
static CollectionHandler |
CollectionHandlers.getHandler(Class javaClass)
Returns the collection's handler based on the Java class.
|
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 TypeInfo |
AbstractMappingLoader.getTypeInfo(Class<?> fieldType,
CollectionHandler colHandler,
FieldMapping fieldMap) |
static boolean |
CollectionHandlers.isGetSetCollection(Class javaClass)
Returns true if the collection requires get/set methods.
|
abstract void |
AbstractMappingLoader.loadMapping(MappingRoot mapping,
Object param)
Loads the mapping from the specified mapping object if not loaded previously.
|
protected Class<?> |
AbstractMappingLoader.resolveType(String typeName)
Returns the Java class for the named type.
|
void |
FieldHandlerImpl.setAddMethod(Method method)
Mutator method used by
Introspector . |
void |
FieldHandlerImpl.setCreateMethod(Method method)
Mutator method used by
AbstractMappingLoader and
Introspector . |
void |
FieldHandlerImpl.setEnumMethod(Method method)
Sets the enumeration method.
|
void |
FieldHandlerImpl.setHasDeleteMethod(Method hasMethod,
Method deleteMethod)
Mutator method used by
AbstractMappingLoader and
Introspector . |
void |
FieldHandlerImpl.setIterMethod(Method method)
Sets the iteration method.
|
void |
FieldHandlerImpl.setReadMethod(Method method)
Mutator method used by
Introspector . |
void |
FieldHandlerImpl.setWriteMethod(Method method)
Mutator method used by
Introspector . |
Constructor and Description |
---|
FieldHandlerImpl(Field field,
TypeInfo typeInfo)
Construct a new field handler for the specified field.
|
FieldHandlerImpl(String fieldName,
Method[] getSequence,
Method[] setSequence,
Method getMethod,
Method setMethod,
TypeInfo typeInfo)
Construct a new field handler for the specified field that
is accessed through the accessor methods (get/set).
|
Modifier and Type | Method and Description |
---|---|
LockEngine |
PersistenceEngineFactory.createEngine(DatabaseContext databaseContext,
ClassDescriptorResolver cdResolver,
PersistenceFactory persistenceFactory)
Creates and returns a new persistence engine.
|
static Method |
FieldMolder.findAccessor(Class<?> javaClass,
String methodName,
Class<?> fieldType,
boolean getMethod)
Returns the named accessor.
|
Constructor and Description |
---|
FieldMolder(DatingService datingService,
ClassMolder enclosingClassMolder,
FieldDescriptor fieldDescriptor) |
FieldMolder(DatingService ds,
ClassMolder eMold,
FieldDescriptor fieldDescriptor,
SQLRelationLoader loader)
Creates a single field descriptor.
|
LockEngine(DatabaseContext databaseContext,
ClassDescriptorResolver cdResolver,
PersistenceFactory persistenceFactory)
Construct a new cache engine with the specified mapping table,
persistence engine and the log interceptor.
|
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 | Method and Description |
---|---|
void |
MappingTool.addClass(Class cls)
Adds the given Class to the mapping file.
|
void |
MappingTool.addClass(Class cls,
boolean deep)
Adds the given Class to the mapping file.
|
void |
MappingTool.addClass(String name)
Adds the Class, specified by the given name, to the mapping file.
|
void |
MappingTool.addClass(String name,
boolean deep)
Adds the Class, specified by the given name, to the mapping file.
|
void |
MappingTool.write(Writer writer)
Serializes the mapping to the given writer.
|
Modifier and Type | Method and Description |
---|---|
void |
XMLContext.addMapping(Mapping mapping)
Instructs Castor to load class descriptors from the mapping given.
|
protected ClassDescriptor |
XMLMappingLoader.createClassDescriptor(ClassMapping classMapping)
To create the class descriptor for the given class mapping.
|
protected FieldDescriptorImpl |
XMLMappingLoader.createFieldDesc(Class javaClass,
FieldMapping fieldMap) |
protected TypeInfo |
XMLMappingLoader.getTypeInfo(Class fieldType,
CollectionHandler colHandler,
FieldMapping fieldMap) |
void |
XMLMappingLoader.loadMapping(MappingRoot mapping,
Object param)
Loads the mapping from the specified mapping object if not loaded previously.
|
void |
Marshaller.setMapping(Mapping mapping)
Sets the given mapping to be used by the marshalling Framework.
|
void |
Unmarshaller.setMapping(Mapping mapping)
Sets the Mapping to use during unmarshalling.
|
Constructor and Description |
---|
Unmarshaller(InternalContext internalContext,
Mapping mapping)
Creates a new Unmarshaller with the given Mapping.
|
Unmarshaller(Mapping mapping)
Creates a new Unmarshaller with the given Mapping.
|
Modifier and Type | Method and Description |
---|---|
GeneralizedFieldHandler |
DefaultFieldHandlerFactory.createFieldHandler(Class type)
Creates a GeneralizedFieldHandler for the given class type.
|
Constructor and Description |
---|
ValueOfFieldHandler(Class type)
Creates a new ValueOfFieldHandler.
|
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.
|
XMLContainerElementFieldDescriptor(XMLFieldDescriptorImpl fieldDesc,
NodeType primitiveNodeType) |
XMLFieldDescriptorImpl(FieldDescriptor fieldDesc,
String xmlName,
NodeType nodeType,
NodeType primitiveNodeType)
Construct a new field descriptor for the specified field.
|
Copyright © 2013. All rights reserved.