FileDocCategorySizeDatePackage
ManyToOneAccessor.javaAPI DocGlassfish v2 API4329Tue May 22 16:54:26 BST 2007oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors

ManyToOneAccessor

public class ManyToOneAccessor extends ObjectAccessor
A many to one relationship accessor.
author
Guy Pelletier
since
TopLink EJB 3.0 Reference Implementation

Fields Summary
private ManyToOne
m_manyToOne
Constructors Summary
public ManyToOneAccessor(MetadataAccessibleObject accessibleObject, ClassAccessor classAccessor)
INTERNAL:

        super(accessibleObject, classAccessor);
        m_manyToOne = getAnnotation(ManyToOne.class);
    
Methods Summary
public java.util.ListgetCascadeTypes()
INTERNAL: (Overridden in XMLManyToOneAccessor)

        return getCascadeTypes(m_manyToOne.cascade());
    
public java.lang.StringgetFetchType()
INTERNAL: (Overridden in XMLManyToOneAccessor)

        return m_manyToOne.fetch().name();
    
protected java.lang.StringgetLoggingContext()
INTERNAL: Return the logging context for this accessor.

        return m_logger.MANY_TO_ONE_MAPPING_REFERENCE_CLASS;
    
public java.lang.ClassgetTargetEntity()
INTERNAL: (Overridden in XMLManyToOneAccessor)

        return m_manyToOne.targetEntity();
    
public booleanisManyToOne()
INTERNAL:

        return true;
    
public booleanisOptional()
INTERNAL: (Overridden in XMLManyToOneAccessor)

        return m_manyToOne.optional();
    
public voidprocess()
INTERNAL: Process a @ManyToOne or many-to-one element into a TopLink OneToOne mapping.

        // Initialize our mapping now with what we found.
        OneToOneMapping mapping = initOneToOneMapping();

        // Now process the JoinColumns (if there are any) for this mapping.
        processOwningMappingKeys(mapping);
        
        // Add the mapping to the descriptor.
        m_descriptor.addMapping(mapping);