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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations