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

MetadataSecondaryTable

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

Fields Summary
private PrimaryKeyJoinColumn[]
m_pkJoinColumns
protected MetadataPrimaryKeyJoinColumns
m_primaryKeyJoinColumns
Constructors Summary
public MetadataSecondaryTable(MetadataLogger logger)
INTERNAL:

        super(logger);
        m_primaryKeyJoinColumns = null; 
    
public MetadataSecondaryTable(SecondaryTable secondaryTable, MetadataLogger logger)
INTERNAL:

        this(logger);
        
        if (secondaryTable != null) {
            m_name = secondaryTable.name();
            m_schema = secondaryTable.schema();
            m_catalog = secondaryTable.catalog();
            m_pkJoinColumns = secondaryTable.pkJoinColumns();
            
            processName();
            processUniqueConstraints(secondaryTable.uniqueConstraints());
        }
    
Methods Summary
public java.lang.StringgetCatalogContext()
INTERNAL:

        return m_logger.SECONDARY_TABLE_CATALOG;
    
public java.lang.StringgetNameContext()
INTERNAL:

        return m_logger.SECONDARY_TABLE_NAME;
    
public oracle.toplink.essentials.internal.ejb.cmp3.metadata.columns.MetadataPrimaryKeyJoinColumnsgetPrimaryKeyJoinColumns(java.lang.String sourceTableName)
INTERNAL:

        if (m_primaryKeyJoinColumns == null) {
            processPrimaryKeyJoinColumns(sourceTableName);
        }
        
        return m_primaryKeyJoinColumns;
    
public java.lang.StringgetSchemaContext()
INTERNAL:

        return m_logger.SECONDARY_TABLE_SCHEMA;
    
protected voidprocessPrimaryKeyJoinColumns(java.lang.String sourceTableName)
INTERNAL: (Overridden in XMLSecondaryTable)

        m_primaryKeyJoinColumns = new MetadataPrimaryKeyJoinColumns(m_pkJoinColumns, sourceTableName, m_databaseTable.getQualifiedName());