org.apache.jdo.impl.model.jdo
Class JDOReferenceImplDynamic

java.lang.Object
  extended by org.apache.jdo.impl.model.jdo.JDOElementImpl
      extended by org.apache.jdo.impl.model.jdo.JDORelationshipImpl
          extended by org.apache.jdo.impl.model.jdo.JDOReferenceImplDynamic
All Implemented Interfaces:
JDOElement, JDOReference, JDORelationship
Direct Known Subclasses:
JDOReferenceImplCaching

public class JDOReferenceImplDynamic
extends JDORelationshipImpl
implements JDOReference

An instance of this class represents the JDO relationship metadata of a reference relationship field.

Author:
Michael Bouschen

Field Summary
 
Fields inherited from class org.apache.jdo.impl.model.jdo.JDORelationshipImpl
inverse, mappedBy
 
Fields inherited from interface org.apache.jdo.model.jdo.JDORelationship
CARDINALITY_N, CARDINALITY_ONE, CARDINALITY_ZERO
 
Constructor Summary
JDOReferenceImplDynamic()
           
 
Method Summary
 JavaType getRelatedJavaType()
          Get the type representation of the relationship.
 boolean isJDOReference()
          Determines whether this JDORelationship represents a reference relationship or not.
 
Methods inherited from class org.apache.jdo.impl.model.jdo.JDORelationshipImpl
getDeclaringField, getInverseRelationship, getInverseRelationshipName, getLowerBound, getMappedBy, getRelatedJDOClass, getUpperBound, isJDOArray, isJDOCollection, isJDOMap, isOwner, setDeclaringField, setInverseRelationship, setLowerBound, setMappedBy, setUpperBound
 
Methods inherited from class org.apache.jdo.impl.model.jdo.JDOElementImpl
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, firePropertyChange, fireVetoableChange, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jdo.model.jdo.JDORelationship
getDeclaringField, getInverseRelationship, getInverseRelationshipName, getLowerBound, getMappedBy, getRelatedJDOClass, getUpperBound, isJDOArray, isJDOCollection, isJDOMap, isOwner, setDeclaringField, setInverseRelationship, setLowerBound, setMappedBy, setUpperBound
 
Methods inherited from interface org.apache.jdo.model.jdo.JDOElement
addPropertyChangeListener, addVetoableChangeListener, createJDOExtension, getJDOExtensions, removeJDOExtension, removePropertyChangeListener, removeVetoableChangeListener
 

Constructor Detail

JDOReferenceImplDynamic

public JDOReferenceImplDynamic()
Method Detail

isJDOReference

public boolean isJDOReference()
Determines whether this JDORelationship represents a reference relationship or not. A return of true means this JDORelationship is a JDOReference instance.

Specified by:
isJDOReference in interface JDORelationship
Overrides:
isJDOReference in class JDORelationshipImpl
Returns:
true if this JDORelationship represents a reference relationship; false otherwise.

getRelatedJavaType

public JavaType getRelatedJavaType()
Get the type representation of the relationship. This will be the JavaType for references, the element type for collections and arrays, and the value type for maps.

Specified by:
getRelatedJavaType in class JDORelationshipImpl
Returns:
the relationship type


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.