Search in sources :

Example 11 with FieldMetaData

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

the class UniqueMetadataImpl method newFieldMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.UniqueMetadata#newFieldMetadata(java.lang.String)
     */
public FieldMetadata newFieldMetadata(String name) {
    FieldMetaData internalFmd = new FieldMetaData(getInternal(), name);
    FieldMetadataImpl fmd = new FieldMetadataImpl(internalFmd);
    fmd.parent = this;
    return fmd;
}
Also used : FieldMetaData(org.datanucleus.metadata.FieldMetaData)

Example 12 with FieldMetaData

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

the class UniqueMetadataImpl method getMembers.

/* (non-Javadoc)
     * @see javax.jdo.metadata.UniqueMetadata#getMembers()
     */
public MemberMetadata[] getMembers() {
    String[] internalMemberNames = getInternal().getMemberNames();
    if (internalMemberNames == null) {
        return null;
    }
    MemberMetadataImpl[] mmds = new MemberMetadataImpl[internalMemberNames.length];
    for (int i = 0; i < mmds.length; i++) {
        FieldMetaData fmd = new FieldMetaData(getInternal(), internalMemberNames[i]);
        mmds[i] = new FieldMetadataImpl(fmd);
        mmds[i].parent = this;
    }
    return mmds;
}
Also used : FieldMetaData(org.datanucleus.metadata.FieldMetaData)

Example 13 with FieldMetaData

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

the class ForeignKeyMetadataImpl method getMembers.

/* (non-Javadoc)
     * @see javax.jdo.metadata.ForeignKeyMetadata#getMembers()
     */
public MemberMetadata[] getMembers() {
    String[] internalMemberNames = getInternal().getMemberNames();
    if (internalMemberNames == null) {
        return null;
    }
    MemberMetadataImpl[] mmds = new MemberMetadataImpl[internalMemberNames.length];
    for (int i = 0; i < mmds.length; i++) {
        FieldMetaData fmd = new FieldMetaData(getInternal(), internalMemberNames[i]);
        mmds[i] = new FieldMetadataImpl(fmd);
        mmds[i].parent = this;
    }
    return mmds;
}
Also used : FieldMetaData(org.datanucleus.metadata.FieldMetaData)

Example 14 with FieldMetaData

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

the class ClassMetadataImpl method newFieldMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.ClassMetadata#newFieldMetadata(java.lang.String)
     */
public FieldMetadata newFieldMetadata(String name) {
    FieldMetaData internalFmd = getInternal().newFieldMetadata(name);
    FieldMetadataImpl fmd = new FieldMetadataImpl(internalFmd);
    fmd.parent = this;
    return fmd;
}
Also used : FieldMetaData(org.datanucleus.metadata.FieldMetaData)

Example 15 with FieldMetaData

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

the class EmbeddedMetadataImpl method newFieldMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.EmbeddedMetadata#newFieldMetadata(java.lang.String)
     */
public FieldMetadata newFieldMetadata(String name) {
    FieldMetaData internalFmd = getInternal().newFieldMetaData(name);
    FieldMetadataImpl fmd = new FieldMetadataImpl(internalFmd);
    fmd.parent = this;
    return fmd;
}
Also used : FieldMetaData(org.datanucleus.metadata.FieldMetaData)

Aggregations

FieldMetaData (org.datanucleus.metadata.FieldMetaData)19 AbstractMemberMetaData (org.datanucleus.metadata.AbstractMemberMetaData)8 PropertyMetaData (org.datanucleus.metadata.PropertyMetaData)5 AbstractClassMetaData (org.datanucleus.metadata.AbstractClassMetaData)4 AttributeConverter (javax.jdo.AttributeConverter)3 PersistenceNucleusContext (org.datanucleus.PersistenceNucleusContext)3 JDOTypeConverter (org.datanucleus.api.jdo.JDOTypeConverter)3 ArrayMetaData (org.datanucleus.metadata.ArrayMetaData)3 CollectionMetaData (org.datanucleus.metadata.CollectionMetaData)3 ColumnMetaData (org.datanucleus.metadata.ColumnMetaData)3 FieldPersistenceModifier (org.datanucleus.metadata.FieldPersistenceModifier)3 MapMetaData (org.datanucleus.metadata.MapMetaData)3 Method (java.lang.reflect.Method)2 Column (javax.jdo.annotations.Column)2 ClassLoaderResolver (org.datanucleus.ClassLoaderResolver)2 NucleusException (org.datanucleus.exceptions.NucleusException)2 ContainerMetaData (org.datanucleus.metadata.ContainerMetaData)2 DiscriminatorMetaData (org.datanucleus.metadata.DiscriminatorMetaData)2 ElementMetaData (org.datanucleus.metadata.ElementMetaData)2 EmbeddedMetaData (org.datanucleus.metadata.EmbeddedMetaData)2