/** 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); } }
fireVetoableChange(PROP_COLUMNS, null, null);
fireVetoableChange(PROP_COLUMNS, null, null);
/** Set whether this field element is a version field or not. * @param flag - if <code>true</code>, the field element is marked * as a version field; otherwise, it is not * @exception ModelException if impossible */ public void setVersion (boolean flag) throws ModelException { Boolean old = JavaTypeHelper.valueOf(isVersion()); Boolean newFlag = JavaTypeHelper.valueOf(flag); try { fireVetoableChange(PROP_VERSION_FIELD, old, newFlag); _isVersion = flag; firePropertyChange(PROP_VERSION_FIELD, old, newFlag); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Set whether this field element is a version field or not. * @param flag - if <code>true</code>, the field element is marked * as a version field; otherwise, it is not * @exception ModelException if impossible */ public void setVersion (boolean flag) throws ModelException { Boolean old = JavaTypeHelper.valueOf(isVersion()); Boolean newFlag = JavaTypeHelper.valueOf(flag); try { fireVetoableChange(PROP_VERSION_FIELD, old, newFlag); _isVersion = flag; firePropertyChange(PROP_VERSION_FIELD, old, newFlag); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Set whether this field element is read only or not. * @param flag - if <code>true</code>, the field element is marked as * read only; otherwise, it is not * @exception ModelException if impossible */ public void setReadOnly (boolean flag) throws ModelException { Boolean old = JavaTypeHelper.valueOf(isReadOnly()); Boolean newFlag = JavaTypeHelper.valueOf(flag); try { fireVetoableChange(PROP_READ_ONLY, old, newFlag); setProperty(flag, READ_ONLY); firePropertyChange(PROP_READ_ONLY, old, newFlag); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Set whether this field element is in a concurrency check or not. * @param flag - if <code>true</code>, the field element is marked as * being in a concurrency check; otherwise, it is not * @exception ModelException if impossible */ public void setInConcurrencyCheck (boolean flag) throws ModelException { Boolean old = JavaTypeHelper.valueOf(isInConcurrencyCheck()); Boolean newFlag = JavaTypeHelper.valueOf(flag); try { fireVetoableChange(PROP_IN_CONCURRENCY_CHECK, old, newFlag); setProperty(flag, IN_CONCURRENCY_CHECK); firePropertyChange(PROP_IN_CONCURRENCY_CHECK, old, newFlag); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Set whether this field element is read only or not. * @param flag - if <code>true</code>, the field element is marked as * read only; otherwise, it is not * @exception ModelException if impossible */ public void setReadOnly (boolean flag) throws ModelException { Boolean old = JavaTypeHelper.valueOf(isReadOnly()); Boolean newFlag = JavaTypeHelper.valueOf(flag); try { fireVetoableChange(PROP_READ_ONLY, old, newFlag); setProperty(flag, READ_ONLY); firePropertyChange(PROP_READ_ONLY, old, newFlag); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
/** Set whether this field element is in a concurrency check or not. * @param flag - if <code>true</code>, the field element is marked as * being in a concurrency check; otherwise, it is not * @exception ModelException if impossible */ public void setInConcurrencyCheck (boolean flag) throws ModelException { Boolean old = JavaTypeHelper.valueOf(isInConcurrencyCheck()); Boolean newFlag = JavaTypeHelper.valueOf(flag); try { fireVetoableChange(PROP_IN_CONCURRENCY_CHECK, old, newFlag); setProperty(flag, IN_CONCURRENCY_CHECK); firePropertyChange(PROP_IN_CONCURRENCY_CHECK, old, newFlag); } catch (PropertyVetoException e) { throw new ModelVetoException(e); } }
fireVetoableChange(PROP_COLUMNS, null, null); columns.add(columnName); firePropertyChange(PROP_COLUMNS, null, null);
fireVetoableChange(PROP_COLUMNS, null, null); columns.add(columnName); firePropertyChange(PROP_COLUMNS, null, null);