Search in sources :

Example 26 with ForeignKeyMetaData

use of org.datanucleus.metadata.ForeignKeyMetaData in project datanucleus-api-jdo by datanucleus.

the class JoinMetadataImpl method newForeignKeyMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.JoinMetadata#newForeignKeyMetadata()
     */
public ForeignKeyMetadata newForeignKeyMetadata() {
    ForeignKeyMetaData internalFkmd = getInternal().newForeignKeyMetaData();
    ForeignKeyMetadataImpl fkmd = new ForeignKeyMetadataImpl(internalFkmd);
    fkmd.parent = this;
    return fkmd;
}
Also used : ForeignKeyMetaData(org.datanucleus.metadata.ForeignKeyMetaData)

Aggregations

ForeignKeyMetaData (org.datanucleus.metadata.ForeignKeyMetaData)26 ForeignKey (org.datanucleus.store.rdbms.key.ForeignKey)8 AbstractMemberMetaData (org.datanucleus.metadata.AbstractMemberMetaData)6 ArrayList (java.util.ArrayList)5 AbstractClassMetaData (org.datanucleus.metadata.AbstractClassMetaData)5 ColumnMetaData (org.datanucleus.metadata.ColumnMetaData)5 DiscriminatorMetaData (org.datanucleus.metadata.DiscriminatorMetaData)3 FetchGroupMetaData (org.datanucleus.metadata.FetchGroupMetaData)3 IndexMetaData (org.datanucleus.metadata.IndexMetaData)3 JoinMetaData (org.datanucleus.metadata.JoinMetaData)3 UniqueMetaData (org.datanucleus.metadata.UniqueMetaData)3 JavaTypeMapping (org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping)3 Collection (java.util.Collection)2 HashSet (java.util.HashSet)2 AttributeConverter (javax.jdo.AttributeConverter)2 Column (javax.jdo.annotations.Column)2 Extension (javax.jdo.annotations.Extension)2 ForeignKeyAction (javax.jdo.annotations.ForeignKeyAction)2 Persistent (javax.jdo.annotations.Persistent)2 ClassLoaderResolver (org.datanucleus.ClassLoaderResolver)2