Package com.sun.data.provider

Examples of com.sun.data.provider.FieldKey


  boolean readOnly = true;
  if (fieldKey instanceof IndexFieldKey) {
      readOnly = _children.get(((IndexFieldKey) fieldKey).getIndex()).
    isReadOnly(fieldKey);
  } else {
      FieldKey fk = null;
      for (ObjectFieldKeySupport support : _children) {
    fk = support.getFieldKey(fieldKey.getFieldId());
    if (fk != null) {
        // Only call support for the one that claims it has a FieldKey!
        readOnly = support.isReadOnly(fieldKey);
View Full Code Here


    public void setValue(FieldKey fieldKey, Object base, Object value) throws DataProviderException {
  if (fieldKey instanceof IndexFieldKey) {
      _children.get(((IndexFieldKey) fieldKey).getIndex()).
    setValue(fieldKey, base, value);
  } else {
      FieldKey fk = null;
      for (ObjectFieldKeySupport support : _children) {
    fk = support.getFieldKey(fieldKey.getFieldId());
    if (fk != null) {
        // Only call support for the one that claims it has a FieldKey!
        support.setValue(fieldKey, base, value);
View Full Code Here

     *      <code>null</code>.</p>
     *
     *  @param  fieldId  Canonical identifier of the required field.
     */
    public FieldKey getFieldKey(String fieldId) throws DataProviderException {
  FieldKey key = super.getFieldKey(fieldId);
  if ((key == null) && (_inst != null)) {
      if (_inst.get(fieldId) != null) {
    key = new FieldKey(fieldId);
      }
  }
  return key;
    }
View Full Code Here

    /**
     *  <p> Return an array of all supported <code>FieldKey</code>s.</p>
     */
    public FieldKey[] getFieldKeys() throws DataProviderException {
  FieldKey keys[] = super.getFieldKeys();
  if (_inst != null) {
      FieldKey tmp[] = new FieldKey[keys.length + _inst.size()];
      int cnt = 0;
      // Add all other keys
      for (FieldKey key : keys) {
    tmp[cnt++] = key;
      }

      // Add all Map keys
      for (Object key : _inst.keySet()) {
    tmp[cnt++] = new FieldKey(key.toString());
      }
      keys = tmp;
  }
  return keys;
    }
View Full Code Here

TOP

Related Classes of com.sun.data.provider.FieldKey

Copyright © 2018 www.massapicom. 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.