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