Search in sources :

Example 71 with ColumnMetaData

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

the class TypeMetadataImpl method getColumns.

/* (non-Javadoc)
     * @see javax.jdo.metadata.ComponentMetadata#getColumns()
     */
public ColumnMetadata[] getColumns() {
    List internalColmds = getInternal().getUnmappedColumns();
    if (internalColmds == null) {
        return null;
    }
    ColumnMetadataImpl[] colmds = new ColumnMetadataImpl[internalColmds.size()];
    for (int i = 0; i < colmds.length; i++) {
        colmds[i] = new ColumnMetadataImpl((ColumnMetaData) internalColmds.get(i));
        colmds[i].parent = this;
    }
    return colmds;
}
Also used : List(java.util.List) ColumnMetaData(org.datanucleus.metadata.ColumnMetaData)

Example 72 with ColumnMetaData

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

the class TypeMetadataImpl method newColumnMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.ComponentMetadata#newColumnMetadata()
     */
public ColumnMetadata newColumnMetadata() {
    ColumnMetaData internalColmd = getInternal().newUnmappedColumnMetaData();
    ColumnMetadataImpl colmd = new ColumnMetadataImpl(internalColmd);
    colmd.parent = this;
    return colmd;
}
Also used : ColumnMetaData(org.datanucleus.metadata.ColumnMetaData)

Example 73 with ColumnMetaData

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

the class ValueMetadataImpl method newColumnMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.KeyMetadata#newColumnMetadata()
     */
public ColumnMetadata newColumnMetadata() {
    ColumnMetaData internalColmd = getInternal().newColumnMetaData();
    ColumnMetadataImpl colmd = new ColumnMetadataImpl(internalColmd);
    colmd.parent = this;
    return colmd;
}
Also used : ColumnMetaData(org.datanucleus.metadata.ColumnMetaData)

Example 74 with ColumnMetaData

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

the class ElementMetadataImpl method newColumnMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.ElementMetadata#newColumnMetadata()
     */
public ColumnMetadata newColumnMetadata() {
    ColumnMetaData internalColmd = getInternal().newColumnMetaData();
    ColumnMetadataImpl colmd = new ColumnMetadataImpl(internalColmd);
    colmd.parent = this;
    return colmd;
}
Also used : ColumnMetaData(org.datanucleus.metadata.ColumnMetaData)

Example 75 with ColumnMetaData

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

the class ForeignKeyMetadataImpl method newColumnMetadata.

/* (non-Javadoc)
     * @see javax.jdo.metadata.ForeignKeyMetadata#newColumnMetadata()
     */
public ColumnMetadata newColumnMetadata() {
    ColumnMetaData internalColmd = getInternal().newColumnMetaData();
    ColumnMetadataImpl colmd = new ColumnMetadataImpl(internalColmd);
    colmd.parent = this;
    return colmd;
}
Also used : ColumnMetaData(org.datanucleus.metadata.ColumnMetaData)

Aggregations

ColumnMetaData (org.datanucleus.metadata.ColumnMetaData)85 AbstractMemberMetaData (org.datanucleus.metadata.AbstractMemberMetaData)28 NucleusUserException (org.datanucleus.exceptions.NucleusUserException)16 ClassMetaData (org.datanucleus.metadata.ClassMetaData)14 AbstractClassMetaData (org.datanucleus.metadata.AbstractClassMetaData)13 ElementMetaData (org.datanucleus.metadata.ElementMetaData)13 DatastoreIdentifier (org.datanucleus.store.rdbms.identifier.DatastoreIdentifier)11 ClassLoaderResolver (org.datanucleus.ClassLoaderResolver)10 JoinMetaData (org.datanucleus.metadata.JoinMetaData)9 MetaDataManager (org.datanucleus.metadata.MetaDataManager)9 MappingManager (org.datanucleus.store.rdbms.mapping.MappingManager)8 Column (org.datanucleus.store.rdbms.table.Column)8 NucleusContext (org.datanucleus.NucleusContext)7 PersistenceNucleusContextImpl (org.datanucleus.PersistenceNucleusContextImpl)7 JPAMetaDataManager (org.datanucleus.api.jpa.metadata.JPAMetaDataManager)7 PrimaryKeyMetaData (org.datanucleus.metadata.PrimaryKeyMetaData)7 IdentifierFactory (org.datanucleus.store.rdbms.identifier.IdentifierFactory)7 JavaTypeMapping (org.datanucleus.store.rdbms.mapping.java.JavaTypeMapping)7 DiscriminatorMetaData (org.datanucleus.metadata.DiscriminatorMetaData)6 PersistenceUnitMetaData (org.datanucleus.metadata.PersistenceUnitMetaData)6