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