Package | Description |
---|---|
org.apache.jdo.impl.enhancer.meta.model | |
org.apache.jdo.impl.jdoql.jdoqlc | |
org.apache.jdo.impl.jdoql.scope | |
org.apache.jdo.impl.model.java |
This package contains classes that are for use across all kinds of
JavaModel implementations.
|
org.apache.jdo.impl.model.java.reflection | |
org.apache.jdo.impl.model.java.runtime |
This package contains a runtime specific JavaModel implementation
based on reflection.
|
org.apache.jdo.impl.model.jdo |
This package contains classes that implement the JDO model interfaces
and provide access to JDO metadata.
|
org.apache.jdo.impl.model.jdo.caching | |
org.apache.jdo.impl.model.jdo.util | |
org.apache.jdo.model.java |
This package defines the JavaModel API.
|
org.apache.jdo.model.jdo |
This package defines the JDOModel API.
|
Modifier and Type | Class and Description |
---|---|
class |
EnhancerJavaType
Provides some basic Java type information based on JVM descriptors.
|
Modifier and Type | Method and Description |
---|---|
protected JavaType |
EnhancerJavaModel.createJavaType(java.lang.Class clazz)
Creates a new JavaType instance for the specified Class object.
|
protected JavaType |
EnhancerJavaType.getJavaTypeInternal(java.lang.Class clazz)
Returns a JavaType instance for the specified Class object.
|
Modifier and Type | Field and Description |
---|---|
protected JavaType |
Semantic.candidateClass
Candidate class.
|
protected JavaType |
JDOQLAST.typeInfo
The type info
|
Modifier and Type | Method and Description |
---|---|
protected JavaType |
Semantic.analyseBitwiseExpr(JDOQLAST op,
JDOQLAST leftAST,
JDOQLAST rightAST)
Analyses a bitwise/logical operation (&, |, ^)
|
protected JavaType |
Semantic.analyseComplementExprType(JDOQLAST op,
JDOQLAST argAST)
Analyses a complement expression.
|
protected JavaType |
Semantic.analyseConditionalExpr(JDOQLAST op,
JDOQLAST leftAST,
JDOQLAST rightAST)
Analyses a boolean conditional operation (&&, ||)
|
protected JavaType |
Semantic.analyseUnaryArithmeticExprType(JDOQLAST op,
JDOQLAST argAST)
Analyses a unary expression + and -
|
static JavaType |
TypeSupport.binaryNumericPromotion(JavaType left,
JavaType right)
Implements binary numeric promotion as defined in the
Java Language Specification section 5.6.2
|
JavaType |
TypeSupport.checkType(java.lang.Class clazz)
Checks for the Java Type with the specified class object.
|
JavaType |
TypeSupport.checkType(java.lang.String name)
Returns the JavaType representation for the type with the specified
name.
|
protected JavaType |
Semantic.getCommonOperandType(JavaType left,
JavaType right)
Returns the common type info for the specified operand types.
|
static JavaType |
TypeSupport.getElementType(JavaField field) |
JavaType |
JDOQLAST.getTypeInfo() |
static JavaType |
TypeSupport.unaryNumericPromotion(JavaType type)
Implements unray numeric promotion as defined in the
Java Language Specification section 5.6.1
|
Modifier and Type | Method and Description |
---|---|
protected JDOQLAST |
Semantic.addCharacterCast(JDOQLAST ast,
JavaType common)
The query runtime has a problem with binary or relational expressions
having an operand of type char or Character.
|
protected JDOQLAST |
Semantic.analyseFieldAccess(JDOQLAST objectExpr,
JDOQLAST ident,
JavaType classType,
JavaField javaField) |
protected JDOQLAST |
Semantic.analyseStaticFieldAccess(JDOQLAST typename,
JDOQLAST ident,
JavaType classType,
JavaField javaField) |
static JavaType |
TypeSupport.binaryNumericPromotion(JavaType left,
JavaType right)
Implements binary numeric promotion as defined in the
Java Language Specification section 5.6.2
|
protected JavaType |
Semantic.getCommonOperandType(JavaType left,
JavaType right)
Returns the common type info for the specified operand types.
|
static java.lang.Class |
TypeSupport.getJavaClass(JavaType type)
Returns the java.lang.Class instance for the specified type.
|
void |
JDOQLAST.initialize(int type,
java.lang.String text,
JavaType typeInfo) |
static boolean |
TypeSupport.isBooleanType(JavaType type)
Returns
true if the specified type is
boolean or java.lang.Boolean. |
static boolean |
TypeSupport.isCharType(JavaType type)
Returns
true if the specified type is
char or java.lang.Character |
static boolean |
TypeSupport.isIntegralType(JavaType type)
Returns
true if the specified type is an interal type
or a Java wrapper class for an interal type. |
static boolean |
TypeSupport.isMathType(JavaType type)
Returns
true if the specified type is either
java.math.BigDecimal or java.math.BigInteger. |
static boolean |
TypeSupport.isNumberType(JavaType type)
Returns
true if specified type is a number type:
a numeric primitive a numeric wrapper class java.math.BigDecimal, java.math.BigInteger. |
static boolean |
TypeSupport.isNumericType(JavaType type)
Returns
true if the specified type is a either a
integral or a floating point type. |
static boolean |
TypeSupport.isNumericWrapperClassType(JavaType type)
Returns
true if the specified type is a Java wrapper
class type for a numeric primitive type. |
void |
JDOQLAST.setTypeInfo(JavaType typeInfo) |
static JavaType |
TypeSupport.unaryNumericPromotion(JavaType type)
Implements unray numeric promotion as defined in the
Java Language Specification section 5.6.1
|
Constructor and Description |
---|
JDOQLAST(int type,
java.lang.String text,
JavaType typeInfo) |
Modifier and Type | Method and Description |
---|---|
JavaType |
TypeNames.resolve(java.lang.String name)
Resolves a type name.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractJavaType
Abstract super class for JavaType implementations.
|
class |
BaseReflectionJavaType
This class provides a basic JavaType implementation using a reflection
Class instance.
|
class |
ErrorType
An instance of class ErrorType represents an erroneous type.
|
class |
FloatingPointType
A FloatingPointType instance represents a floating point type as defined
in the Java language.
|
class |
IntegralType
A IntegralType instance represents an integral type as defined in the
Java language.
|
class |
JDOSupportedCollectionType
A JDOSupportedCollectionType instance represents a JDO supported
collection type.
|
class |
JDOSupportedMapType
A JDOSupportedMapType instance represents a JDO supported map type.
|
class |
MutableValueClassType
A MutableValueClassType instance represents a mutable class whoses
values may be treated as values rather than refernces during
storing.
|
class |
NullType
An instance of class NullType represents the type of the null expression
in Java.
|
class |
PredefinedType
Instances of this class represent a type that is not a persistence
capable class, but is known by JDO.
|
class |
PrimitiveType
A PrimitiveType instance represents a primitive type as defined in the
Java language.
|
class |
ValueClassType
A ValueClassType instance represents a class whoses values may be treated
as values rather than refernces during storing.
|
class |
WrapperClassType
A WrapperClassType instance represents a Java wrapper class type.
|
Modifier and Type | Field and Description |
---|---|
protected JavaType |
BaseReflectionJavaType.superclass
The superclass JavaType.
|
protected JavaType |
BaseReflectionJavaField.type
The type of the field.
|
Modifier and Type | Method and Description |
---|---|
JavaType |
AbstractJavaType.getArrayComponentType() |
JavaType |
AbstractJavaField.getDeclaringClass()
Returns the JavaType instance representing the class or interface
that declares the field represented by this JavaField instance.
|
JavaType |
AbstractJavaModel.getJavaType(java.lang.Class clazz)
The method returns the JavaType instance for the type name of the
specified class object.
|
JavaType |
AbstractJavaModelFactory.getJavaType(java.lang.Object typeDesc)
Returns a JavaType instance for the specified type description
(optional operation).
|
abstract JavaType |
AbstractJavaModel.getJavaType(java.lang.String name)
The method returns the JavaType instance for the specified type
name.
|
static JavaType |
PredefinedType.getPredefinedType(java.lang.String name)
Returns the JavaType instance for a predefined type with the
specified name.
|
JavaType |
BaseReflectionJavaType.getSuperclass()
Returns the JavaType representing the superclass of the entity
represented by this JavaType.
|
JavaType |
AbstractJavaType.getSuperclass() |
abstract JavaType |
AbstractJavaField.getType()
Returns the JavaType representation of the field type.
|
JavaType |
BaseReflectionJavaField.getType()
Returns the JavaType representation of the field type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BaseReflectionJavaType.isCompatibleWith(JavaType javaType)
Returns true if this JavaType is compatible with the specified
JavaType.
|
boolean |
AbstractJavaType.isCompatibleWith(JavaType javaType) |
boolean |
ErrorType.isCompatibleWith(JavaType javaType)
Returns true if this JavaType is compatible with the specified
JavaType.
|
boolean |
NullType.isCompatibleWith(JavaType javaType)
Returns true if this JavaType is compatible with the specified
JavaType.
|
Constructor and Description |
---|
AbstractJavaField(java.lang.String name,
JavaType declaringClass)
Constructor setting the name and declaringClass property.
|
BaseReflectionJavaField(java.lang.reflect.Field field,
JavaType declaringClass)
Constructor taking a reflection field representation.
|
BaseReflectionJavaField(java.lang.String fieldName,
JavaType declaringClass)
Constructor taking the field name.
|
BaseReflectionJavaType(java.lang.Class clazz,
JavaType superclass)
Constructor.
|
JDOSupportedCollectionType(java.lang.Class clazz,
JavaType superclass)
Constructor for JDOSupportedCollection types having a superclass.
|
JDOSupportedMapType(java.lang.Class clazz,
JavaType superclass)
Constructor for JDOSupportedMap types having a superclass.
|
MutableValueClassType(java.lang.Class clazz,
JavaType superclass,
boolean orderable)
Constructor.
|
PredefinedType(java.lang.Class clazz,
JavaType superclass)
Constructor taking a Class instance and a JavaType representing the
superclass of the new JavaType instance.
|
ValueClassType(java.lang.Class clazz,
JavaType superclass,
boolean orderable)
Constructor.
|
WrapperClassType(java.lang.Class clazz,
JavaType superclass,
boolean orderable) |
Modifier and Type | Class and Description |
---|---|
class |
ReflectionJavaType
/**
A reflection based JavaType implementation used at runtime.
|
Modifier and Type | Method and Description |
---|---|
protected abstract JavaType |
ReflectionJavaModel.createJavaType(java.lang.Class clazz)
Creates a new JavaType instance for the specified Class object.
|
JavaType |
ReflectionJavaType.getArrayComponentType()
Returns the JavaType representing the component type of an array.
|
JavaType |
ReflectionJavaModel.getJavaType(java.lang.Class clazz)
The method returns the JavaType instance for the type name of the
specified class object.
|
JavaType |
ReflectionJavaModel.getJavaType(java.lang.String name)
The method returns the JavaType instance for the specified type
name.
|
JavaType |
ReflectionJavaModel.getJavaTypeInternal(java.lang.Class clazz)
The method returns the JavaType instance for the type name of the
specified class object.
|
protected abstract JavaType |
ReflectionJavaType.getJavaTypeInternal(java.lang.Class clazz)
Returns a JavaType instance for the specified Class object.
|
protected JavaType |
ReflectionJavaField.getJavaTypeInternal(java.lang.Class clazz)
Returns a JavaType instance for the specified Class object.
|
JavaType |
ReflectionJavaType.getSuperclass()
Returns the JavaType representing the superclass of the entity
represented by this JavaType.
|
JavaType |
ReflectionJavaField.getType()
Returns the JavaType representation of the field type.
|
Modifier and Type | Method and Description |
---|---|
JavaField |
ReflectionJavaType.createJavaField(JDOField jdoField,
JavaType type)
RegisterClassListener calls this method to create a ReflectionJavaField
instance when processing the enhancer generated metadata.
|
Constructor and Description |
---|
ReflectionJavaField(java.lang.reflect.Field field,
JavaType declaringClass)
Constructor for fields w/o JDO metadata.
|
ReflectionJavaField(JDOField jdoField,
JavaType declaringClass)
Constructor for fields having JDO metadata.
|
ReflectionJavaField(JDOField jdoField,
JavaType type,
JavaType declaringClass)
Constructor for fields having JDO metadata.
|
Modifier and Type | Class and Description |
---|---|
class |
RuntimeJavaType
/**
A reflection based JavaType implementation used at runtime.
|
Modifier and Type | Method and Description |
---|---|
protected JavaType |
RuntimeJavaModel.createJavaType(java.lang.Class clazz)
Creates a new JavaType instance for the specified Class object.
|
JavaType |
RuntimeJavaModel.getJavaType(java.lang.Class clazz)
The method returns the JavaType instance for the type name of the
specified class object.
|
JavaType |
RuntimeJavaModelFactory.getJavaType(java.lang.Object typeDesc)
Returns a JavaType instance for the specified type description
(optional operation).
|
JavaType |
RuntimeJavaModel.getJavaType(java.lang.String name)
The method returns the JavaType instance for the specified type
name.
|
protected JavaType |
RuntimeJavaType.getJavaTypeInternal(java.lang.Class clazz)
Returns a JavaType instance for the specified Class object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
RuntimeJavaModelFactory.getJavaClass(JavaType javaType)
Returns the
java.lang.Class wrapped in the specified
JavaType. |
Modifier and Type | Field and Description |
---|---|
protected JavaType |
JDOCollectionImplDynamic.elementType
Property elementType.
|
protected JavaType |
JDOClassImplDynamic.javaType
Property javaType.
|
protected JavaType |
JDOMapImplDynamic.keyType
Property keyType.
|
protected JavaType |
JDOClassImplDynamic.objectIdClass
Property objectIdClass.
|
protected JavaType |
JDOMapImplDynamic.valueType
Property valueType.
|
Modifier and Type | Method and Description |
---|---|
JavaType |
JDOArrayImplDynamic.getElementType()
Get the type representation of the array component type.
|
JavaType |
JDOCollectionImplDynamic.getElementType()
Get the type representation of the collection elements.
|
JavaType |
JDOClassImplDynamic.getJavaType()
Provides the JavaType representaion corresponding to this JDOClass.
|
JavaType |
JDOMapImplDynamic.getKeyType()
Get the type representation of the keys for this JDOMap.
|
JavaType |
JDOClassImplDynamic.getObjectIdClass()
Get the JavaType representation of the object identity class
(primary key class) for this JDOClass.
|
JavaType |
JDOFieldImplDynamic.getType()
Get the JavaType representation of the type of the field.
|
JavaType |
JDOMapImplDynamic.getValueType()
Get the type representation of the values for this JDOMap.
|
Modifier and Type | Method and Description |
---|---|
JDOClass |
JDOModelImplDynamic.getJDOClassForObjectIdClass(JavaType objectIdClass)
This method returns the JDOClass instance that defines the specified type
as its objectId class.
|
void |
JDOCollectionImplDynamic.setElementType(JavaType elementType)
Set the type representation of the collection elements.
|
void |
JDOClassImplDynamic.setJavaType(JavaType javaType)
Set the JavaType representation corresponding to this JDOClass.
|
void |
JDOMapImplDynamic.setKeyType(JavaType keyType)
Set the type representation of the keys for this JDOMap.
|
void |
JDOClassImplDynamic.setObjectIdClass(JavaType objectIdClass)
Set the JavaType representation of the object identity class
(primary key class) for this JDOClass.
|
void |
JDOMapImplDynamic.setValueType(JavaType valueType)
Set the type representation of the values for this JDOMap.
|
Modifier and Type | Method and Description |
---|---|
JavaType |
JDOArrayImplCaching.getElementType()
Get the type representation of the array component type.
|
JavaType |
JDOCollectionImplCaching.getElementType()
Get the type representation of the collection elements.
|
JavaType |
JDOClassImplCaching.getJavaType()
Provides the JavaType representaion corresponding to this JDOClass.
|
JavaType |
JDOMapImplCaching.getKeyType()
Get the type representation of the keys for this JDOMap.
|
JavaType |
JDOClassImplCaching.getObjectIdClass()
Get the JavaType representation of the object identity class
(primary key class) for this JDOClass.
|
JavaType |
JDOMapImplCaching.getValueType()
Get the type representation of the values for this JDOMap.
|
Modifier and Type | Method and Description |
---|---|
JDOClass |
JDOModelImplCaching.getJDOClassForObjectIdClass(JavaType objectIdClass)
This method returns the JDOClass instance that defines the specified type
as its objectId class.
|
Modifier and Type | Method and Description |
---|---|
static JavaType |
TypeSupport.resolveType(JDOModel jdoModel,
java.lang.String typeName,
java.lang.String packagePrefix)
Returns a JavaType representation for the specified type name.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
TypeSupport.isEmbeddedElementType(JavaType type)
Returns
true if the embedded-element property of a field
having the specified type defaults to true . |
static boolean |
TypeSupport.isEmbeddedFieldType(JavaType type)
Returns
true if the embedded property of a field having
the specified type defaults to true . |
static boolean |
TypeSupport.isPersistenceFieldType(JavaType type)
Returns
true if the persistence-modifier of a field
having the specified type defaults to true . |
static boolean |
TypeSupport.isValueArrayType(JavaType type)
Returns
true if the specified type represents an array
and its element type is a value type. |
Modifier and Type | Method and Description |
---|---|
JavaType |
JavaType.getArrayComponentType()
Returns the JavaType representing the component type of an array.
|
JavaType |
JavaField.getDeclaringClass()
Returns the JavaType instance representing the class or interface
that declares the field represented by this JavaField instance.
|
JavaType |
JavaModel.getJavaType(java.lang.Class clazz)
The method returns the JavaType instance for the type name of the
specified class object.
|
JavaType |
JavaModelFactory.getJavaType(java.lang.Object typeDesc)
Returns a JavaType instance for the specified type description
(optional operation).
|
JavaType |
JavaModel.getJavaType(java.lang.String name)
The method returns the JavaType instance for the specified type
name.
|
JavaType |
JavaType.getSuperclass()
Returns the JavaType representing the superclass of the entity
represented by this JavaType.
|
JavaType |
JavaField.getType()
Returns the JavaType representation of the field type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JavaType.isCompatibleWith(JavaType javaType)
Returns true if this JavaType is compatible with the specified
JavaType.
|
Modifier and Type | Method and Description |
---|---|
JavaType |
JDOCollection.getElementType()
Get the type representation of the collection elements.
|
JavaType |
JDOArray.getElementType()
Get the type representation of the array component type.
|
JavaType |
JDOClass.getJavaType()
Provides the JavaType representaion corresponding to this JDOClass.
|
JavaType |
JDOMap.getKeyType()
Get the type representation of the keys for this JDOMap.
|
JavaType |
JDOClass.getObjectIdClass()
Get the JavaType representation of the object identity class
(primary key class) for this JDOClass.
|
JavaType |
JDOField.getType()
Get the JavaType representation of the type of the field.
|
JavaType |
JDOMap.getValueType()
Get the type representation of the values for this JDOMap.
|
Modifier and Type | Method and Description |
---|---|
JDOClass |
JDOModel.getJDOClassForObjectIdClass(JavaType objectIdClass)
This method returns the JDOClass instance that defines the specified type
as its objectId class.
|
void |
JDOCollection.setElementType(JavaType elementType)
Set the type representation of the collection elements.
|
void |
JDOClass.setJavaType(JavaType javaType)
Set the JavaType representation corresponding to this JDOClass.
|
void |
JDOMap.setKeyType(JavaType keyType)
Set the type representation of the keys for this JDOMap.
|
void |
JDOClass.setObjectIdClass(JavaType objectIdClass)
Set the JavaType representation of the object identity class
(primary key class) for this JDOClass.
|
void |
JDOMap.setValueType(JavaType valueType)
Set the type representation of the values for this JDOMap.
|
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.