FileDocCategorySizeDatePackage
MetadataJoinTable.javaAPI DocGlassfish v2 API4763Tue May 22 16:54:28 BST 2007oracle.toplink.essentials.internal.ejb.cmp3.metadata.tables

MetadataJoinTable

public class MetadataJoinTable extends MetadataTable
Object to hold onto table metadata in a TopLink database table.
author
Guy Pelletier
since
TopLink EJB 3.0 Reference Implementation

Fields Summary
private JoinColumn[]
m_joinColumns
private JoinColumn[]
m_inverseJoinColumns
protected MetadataJoinColumns
m_jColumns
protected MetadataJoinColumns
m_inverseJColumns
Constructors Summary
public MetadataJoinTable(MetadataLogger logger)
INTERNAL:

        super(logger);
        
        m_joinColumns = new JoinColumn[] {};
        m_inverseJoinColumns = new JoinColumn[] {};
    
public MetadataJoinTable(JoinTable joinTable, MetadataLogger logger)
INTERNAL:

        this(logger);
        
        if (joinTable != null) {
            m_name = joinTable.name();
            m_schema = joinTable.schema();
            m_catalog = joinTable.catalog();
            m_joinColumns = joinTable.joinColumns();
            m_inverseJoinColumns = joinTable.inverseJoinColumns();
            
            processName();
            processUniqueConstraints(joinTable.uniqueConstraints());
        }
    
Methods Summary
public java.lang.StringgetCatalogContext()
INTERNAL:

        return m_logger.JOIN_TABLE_CATALOG;
    
public oracle.toplink.essentials.internal.ejb.cmp3.metadata.columns.MetadataJoinColumnsgetInverseJoinColumns()
INTERNAL:

        if (m_inverseJColumns == null) {
            m_inverseJColumns = processInverseJoinColumns();
        }
        
        return m_inverseJColumns;
    
public oracle.toplink.essentials.internal.ejb.cmp3.metadata.columns.MetadataJoinColumnsgetJoinColumns()
INTERNAL:

        if (m_jColumns == null) {
            m_jColumns = processJoinColumns();
        }
        
        return m_jColumns;
    
public java.lang.StringgetNameContext()
INTERNAL:

        return m_logger.JOIN_TABLE_NAME;
    
public java.lang.StringgetSchemaContext()
INTERNAL:

        return m_logger.JOIN_TABLE_SCHEMA;
    
public booleanloadedFromXML()
INTERNAL:

        return false;
    
protected oracle.toplink.essentials.internal.ejb.cmp3.metadata.columns.MetadataJoinColumnsprocessInverseJoinColumns()
INTERNAL: (Overridden in XMLJoinTable)

        return new MetadataJoinColumns(m_inverseJoinColumns);
    
protected oracle.toplink.essentials.internal.ejb.cmp3.metadata.columns.MetadataJoinColumnsprocessJoinColumns()
INTERNAL: (Overridden in XMLJoinTable)

        return new MetadataJoinColumns(m_joinColumns);