Search in sources :

Example 11 with IndexMetaData

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

the class VersionMetadataImpl method newIndexMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.VersionMetadata#newIndexMetadata()
     */
public IndexMetadata newIndexMetadata() {
    IndexMetaData internalIdxmd = getInternal().newIndexMetaData();
    IndexMetadataImpl idxmd = new IndexMetadataImpl(internalIdxmd);
    idxmd.parent = this;
    return idxmd;
}
Also used : IndexMetaData(org.datanucleus.metadata.IndexMetaData)

Example 12 with IndexMetaData

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

the class OrderMetadataImpl method getIndexMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.OrderMetadata#getIndexMetadata()
     */
public IndexMetadata getIndexMetadata() {
    IndexMetaData internalIdxmd = getInternal().getIndexMetaData();
    if (internalIdxmd == null) {
        return null;
    }
    IndexMetadataImpl idxmd = new IndexMetadataImpl(internalIdxmd);
    idxmd.parent = this;
    return idxmd;
}
Also used : IndexMetaData(org.datanucleus.metadata.IndexMetaData)

Example 13 with IndexMetaData

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

the class TypeMetadataImpl method getIndices.

public IndexMetadata[] getIndices() {
    List<IndexMetaData> internalIdxmds = getInternal().getIndexMetaData();
    if (internalIdxmds == null) {
        return null;
    }
    IndexMetadataImpl[] idxmds = new IndexMetadataImpl[internalIdxmds.size()];
    int i = 0;
    for (IndexMetaData internalIdxmd : internalIdxmds) {
        IndexMetadataImpl idxmd = new IndexMetadataImpl(internalIdxmd);
        idxmds[i++] = idxmd;
        idxmd.parent = this;
    }
    return idxmds;
}
Also used : IndexMetaData(org.datanucleus.metadata.IndexMetaData)

Example 14 with IndexMetaData

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

the class ValueMetadataImpl method getIndexMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.ValueMetadata#getIndexMetadata()
     */
public IndexMetadata getIndexMetadata() {
    IndexMetaData internalIdxmd = getInternal().getIndexMetaData();
    if (internalIdxmd == null) {
        return null;
    }
    IndexMetadataImpl idxmd = new IndexMetadataImpl(internalIdxmd);
    idxmd.parent = this;
    return idxmd;
}
Also used : IndexMetaData(org.datanucleus.metadata.IndexMetaData)

Example 15 with IndexMetaData

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

the class ElementMetadataImpl method newIndexMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.ElementMetadata#newIndexMetadata()
     */
public IndexMetadata newIndexMetadata() {
    IndexMetaData internalIdxmd = getInternal().newIndexMetaData();
    IndexMetadataImpl idxmd = new IndexMetadataImpl(internalIdxmd);
    idxmd.parent = this;
    return idxmd;
}
Also used : IndexMetaData(org.datanucleus.metadata.IndexMetaData)

Aggregations

IndexMetaData (org.datanucleus.metadata.IndexMetaData)27 AbstractMemberMetaData (org.datanucleus.metadata.AbstractMemberMetaData)5 ForeignKeyMetaData (org.datanucleus.metadata.ForeignKeyMetaData)5 ColumnMetaData (org.datanucleus.metadata.ColumnMetaData)4 DiscriminatorMetaData (org.datanucleus.metadata.DiscriminatorMetaData)4 JoinMetaData (org.datanucleus.metadata.JoinMetaData)4 PrimaryKeyMetaData (org.datanucleus.metadata.PrimaryKeyMetaData)4 HashSet (java.util.HashSet)3 AbstractClassMetaData (org.datanucleus.metadata.AbstractClassMetaData)3 FetchGroupMetaData (org.datanucleus.metadata.FetchGroupMetaData)3 InvalidMetaDataException (org.datanucleus.metadata.InvalidMetaDataException)3 KeyMetaData (org.datanucleus.metadata.KeyMetaData)3 OrderMetaData (org.datanucleus.metadata.OrderMetaData)3 UniqueMetaData (org.datanucleus.metadata.UniqueMetaData)3 Set (java.util.Set)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