Search in sources :

Example 16 with UniqueMetaData

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

the class MemberMetadataImpl method newUniqueMetadata.

public UniqueMetadata newUniqueMetadata() {
    UniqueMetaData internalUnimd = getInternal().newUniqueMetaData();
    UniqueMetadataImpl unimd = new UniqueMetadataImpl(internalUnimd);
    unimd.parent = this;
    return unimd;
}
Also used : UniqueMetaData(org.datanucleus.metadata.UniqueMetaData)

Example 17 with UniqueMetaData

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

the class TypeMetadataImpl method getUniques.

public UniqueMetadata[] getUniques() {
    List<UniqueMetaData> internalUnimds = getInternal().getUniqueMetaData();
    if (internalUnimds == null) {
        return null;
    }
    UniqueMetadataImpl[] unimds = new UniqueMetadataImpl[internalUnimds.size()];
    int i = 0;
    for (UniqueMetaData internalUniMD : internalUnimds) {
        UniqueMetadataImpl unimd = new UniqueMetadataImpl(internalUniMD);
        unimds[i++] = unimd;
        unimd.parent = this;
    }
    return unimds;
}
Also used : UniqueMetaData(org.datanucleus.metadata.UniqueMetaData)

Example 18 with UniqueMetaData

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

the class ValueMetadataImpl method getUniqueMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.ValueMetadata#getUniqueMetadata()
     */
public UniqueMetadata getUniqueMetadata() {
    UniqueMetaData internalUnimd = getInternal().getUniqueMetaData();
    if (internalUnimd == null) {
        return null;
    }
    UniqueMetadataImpl unimd = new UniqueMetadataImpl(internalUnimd);
    unimd.parent = this;
    return unimd;
}
Also used : UniqueMetaData(org.datanucleus.metadata.UniqueMetaData)

Example 19 with UniqueMetaData

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

the class ElementMetadataImpl method getUniqueMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.ElementMetadata#getUniqueMetadata()
     */
public UniqueMetadata getUniqueMetadata() {
    UniqueMetaData internalUnimd = getInternal().getUniqueMetaData();
    if (internalUnimd == null) {
        return null;
    }
    UniqueMetadataImpl unimd = new UniqueMetadataImpl(internalUnimd);
    unimd.parent = this;
    return unimd;
}
Also used : UniqueMetaData(org.datanucleus.metadata.UniqueMetaData)

Example 20 with UniqueMetaData

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

the class ElementMetadataImpl method newUniqueMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.ElementMetadata#newUniqueMetadata()
     */
public UniqueMetadata newUniqueMetadata() {
    UniqueMetaData internalUnimd = getInternal().newUniqueMetaData();
    UniqueMetadataImpl unimd = new UniqueMetadataImpl(internalUnimd);
    unimd.parent = this;
    return unimd;
}
Also used : UniqueMetaData(org.datanucleus.metadata.UniqueMetaData)

Aggregations

UniqueMetaData (org.datanucleus.metadata.UniqueMetaData)25 AbstractMemberMetaData (org.datanucleus.metadata.AbstractMemberMetaData)4 ColumnMetaData (org.datanucleus.metadata.ColumnMetaData)4 ForeignKeyMetaData (org.datanucleus.metadata.ForeignKeyMetaData)4 IndexMetaData (org.datanucleus.metadata.IndexMetaData)4 JoinMetaData (org.datanucleus.metadata.JoinMetaData)4 CandidateKey (org.datanucleus.store.rdbms.key.CandidateKey)4 ArrayList (java.util.ArrayList)3 List (java.util.List)3 CacheUniqueKey (org.datanucleus.cache.CacheUniqueKey)3 NucleusUserException (org.datanucleus.exceptions.NucleusUserException)3 AbstractClassMetaData (org.datanucleus.metadata.AbstractClassMetaData)3 DiscriminatorMetaData (org.datanucleus.metadata.DiscriminatorMetaData)3 FetchGroupMetaData (org.datanucleus.metadata.FetchGroupMetaData)3 InvalidMetaDataException (org.datanucleus.metadata.InvalidMetaDataException)3 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