Examples of JDOField


Examples of org.apache.jdo.model.jdo.JDOField

    public JDOField[] getDeclaredManagedFields() {
        // Get the list of declared fields, skip the non managed fields
        // and store the remaining fields into a list
        List fieldList = new ArrayList();
        for (Iterator i = declaredFields.values().iterator(); i.hasNext();) {
            JDOField field = (JDOField)i.next();
            if (field.isManaged())
                fieldList.add(field);
        }
           
        // Sort all declared fields. JDOFieldImpl implements Comparable.
        // It uses the field name for comparison.
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOField

    public JDOField[] getPersistentFields() {
        JDOField[] fields = getManagedFields();
        JDOField[] tmp = new JDOField[fields.length];
        int length = 0;
        for (int i = 0; i < fields.length; i++) {
            JDOField field = fields[i];
            if (field.isPersistent()) {
                tmp[length++] = field;
            }
        }
        // now fill he returned array
        // the array should have the correct length
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOField

    public JDOField[] getPrimaryKeyFields() {
        JDOField[] fields = getManagedFields();
        JDOField[] tmp = new JDOField[fields.length];
        int length = 0;
        for (int i = 0; i < fields.length; i++) {
            JDOField field = fields[i];
            if (fields[i].isPrimaryKey()) {
                tmp[length++] = field;
            }
        }
        // now fill the returned array
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOField

    public JDOField[] getPersistentRelationshipFields() {
        JDOField[] fields = getPersistentFields();
        JDOField[] tmp = new JDOField[fields.length];
        int length = 0;
        for (int i = 0; i < fields.length; i++) {
            JDOField field = fields[i];
            if (field.isPersistent() && field.isRelationship()) {
                tmp[length++] = field;
            }
        }
        // now fill the returned array,
        // the arrays should have the correct length
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOField

    public JDOField[] getDefaultFetchGroupFields() {
        JDOField[] fields = getManagedFields();
        JDOField[] tmp = new JDOField[fields.length];
        int length = 0;
        for (int i = 0; i < fields.length; i++) {
            JDOField field = fields[i];
            if (field.isDefaultFetchGroup()) {
                tmp[length++] = field;
            }
        }
        // now fill defaultFetchGroupFields
        // the arrays should have the correct length
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOField

    public int[] getPersistentFieldNumbers() {
        JDOField[] fields = getManagedFields();
        int[] tmp = new int[fields.length];
        int length = 0;
        for (int i = 0; i < fields.length; i++) {
            JDOField field = fields[i];
            if (field.isPersistent()) {
                tmp[length++] = i;
            }
        }
        // now fill the returned array, it should have the correct length
        int[] fieldNumbers = new int[length];
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOField

    public int[] getPrimaryKeyFieldNumbers() {
        JDOField[] fields = getManagedFields();
        int[] tmp = new int[fields.length];
        int length = 0;
        for (int i = 0; i < fields.length; i++) {
            JDOField field = fields[i];
            if (field.isPrimaryKey()) {
                tmp[length++] = i;
            }
        }
        // now fill the returned array, it should have the correct length
        int[] fieldNumbers = new int[length];
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOField

    public int[] getPersistentNonPrimaryKeyFieldNumbers() {
        JDOField[] fields = getManagedFields();
        int[] tmp = new int[fields.length];
        int length = 0;
        for (int i = 0; i < fields.length; i++) {
            JDOField field = fields[i];
            if (field.isPersistent() && !field.isPrimaryKey()) {
                tmp[length++] = i;
            }
        }
        // now fill the returned array, it should have the correct length
        int[] fieldNumbers = new int[length];
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOField

    public int[] getPersistentRelationshipFieldNumbers() {
        JDOField[] fields = getManagedFields();
        int[] tmp = new int[fields.length];
        int length = 0;
        for (int i = 0; i < fields.length; i++) {
            JDOField field = fields[i];
            if (field.isPersistent() && field.isRelationship()) {
                tmp[length++] = i;
            }
        }
        // now fill the returned array, it should have the correct length
        int[] fieldNumbers = new int[length];
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOField

    public int[] getPersistentSerializableFieldNumbers() {
        JDOField[] fields = getManagedFields();
        int[] tmp = new int[fields.length];
        int length = 0;
        for (int i = 0; i < fields.length; i++) {
            JDOField field = fields[i];
            if (field.isPersistent() && field.isSerializable()) {
                tmp[length++] = i;
            }
        }
        // now fill the returned array it should have the correct length
        int[] fieldNumbers = new int[length];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.