FileDocCategorySizeDatePackage
XMLOneToOneAccessor.javaAPI DocGlassfish v2 API5202Tue May 22 16:54:30 BST 2007oracle.toplink.essentials.internal.ejb.cmp3.xml.accessors

XMLOneToOneAccessor

public class XMLOneToOneAccessor extends OneToOneAccessor
An extended one to one relationship accessor.
author
Guy Pelletier
since
TopLink EJB 3.0 Reference Implementation

Fields Summary
private Node
m_node
private XMLHelper
m_helper
Constructors Summary
public XMLOneToOneAccessor(MetadataAccessibleObject accessibleObject, Node node, XMLClassAccessor classAccessor)
INTERNAL:

        super(accessibleObject, classAccessor);
        
        m_node = node;
        m_helper = classAccessor.getHelper();
    
Methods Summary
public java.util.ListgetCascadeTypes()
INTERNAL: (Override from OneToOneAccessor)

        return m_helper.getCascadeTypes(m_node);
    
public java.lang.StringgetFetchType()
INTERNAL: (Override from OneToOneAccessor)

        return m_helper.getFetchTypeDefaultEAGER(m_node);
    
protected oracle.toplink.essentials.internal.ejb.cmp3.metadata.columns.MetadataJoinColumnsgetJoinColumns()
INTERNAL: (Override from RelationshipAccessor)

        if (m_helper.nodeHasJoinColumns(m_node)) {
            return new XMLJoinColumns(m_node, m_helper);
        } else {
            return super.getJoinColumns();
        }
    
public java.lang.StringgetMappedBy()
INTERNAL: (Override from OneToOneAccessor)

        return m_helper.getMappedBy(m_node);
    
protected oracle.toplink.essentials.internal.ejb.cmp3.metadata.columns.MetadataPrimaryKeyJoinColumnsgetPrimaryKeyJoinColumns(java.lang.String sourceTableName, java.lang.String targetTableName)
INTERNAL: (Override from MetadataAccessor)

        if (m_helper.nodeHasPrimaryKeyJoinColumns(m_node)) {
            return new XMLPrimaryKeyJoinColumns(m_node, m_helper, sourceTableName, targetTableName);
        } else {
            return super.getPrimaryKeyJoinColumns(sourceTableName, targetTableName);
        }
    
public java.lang.ClassgetTargetEntity()
INTERNAL: (Override from OneToOneAccessor)

        return m_helper.getTargetEntity(m_node);
    
public booleanhasPrimaryKeyJoinColumns()
INTERNAL: (Override from RelationshipAccessor) Return true is this one-to-one has primary key join columns.

        if (m_helper.nodeHasPrimaryKeyJoinColumns(m_node)) {
            return true;
        } else {
            return super.hasPrimaryKeyJoinColumns();
        }
    
public booleanisOptional()
INTERNAL: (Override from OneToOneAccessor)

        return m_helper.isOptional(m_node);