/** Create new MappingFieldElementImpl with the corresponding name and * declaring class. * @param name the name of the element * @param declaringClass the class to attach to */ public MappingFieldElementImpl (String name, MappingClassElement declaringClass) { super(name, declaringClass); setFetchGroupInternal(GROUP_DEFAULT); }
/** Create new MappingFieldElementImpl with the corresponding name and * declaring class. * @param name the name of the element * @param declaringClass the class to attach to */ public MappingFieldElementImpl (String name, MappingClassElement declaringClass) { super(name, declaringClass); setFetchGroupInternal(GROUP_DEFAULT); }
/** Set the fetch group of this field element. * @param group - an integer indicating the fetch group, one of: * {@link #GROUP_DEFAULT}, {@link #GROUP_NONE}, or anything less than or * equal to {@link #GROUP_INDEPENDENT} * @exception ModelException if impossible */ public void setFetchGroup (int group) throws ModelException { Integer old = new Integer(getFetchGroup()); Integer newGroup = new Integer(group); try { fireVetoableChange(PROP_FETCH_GROUP, old, newGroup); setFetchGroupInternal(group); firePropertyChange(PROP_FETCH_GROUP, old, newGroup); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Set the fetch group of this field element. * @param group - an integer indicating the fetch group, one of: * {@link #GROUP_DEFAULT}, {@link #GROUP_NONE}, or anything less than or * equal to {@link #GROUP_INDEPENDENT} * @exception ModelException if impossible */ public void setFetchGroup (int group) throws ModelException { Integer old = new Integer(getFetchGroup()); Integer newGroup = new Integer(group); try { fireVetoableChange(PROP_FETCH_GROUP, old, newGroup); setFetchGroupInternal(group); firePropertyChange(PROP_FETCH_GROUP, old, newGroup); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }