Package org.apache.derby.iapi.services.property

Examples of org.apache.derby.iapi.services.property.PropertySetCallback


     throws StandardException
  {
    Serializable mappedValue = null;
     if (notifyOnSet != null) {
      for (int i = 0; i < notifyOnSet.size() && mappedValue == null; i++) {
        PropertySetCallback psc = (PropertySetCallback) notifyOnSet.elementAt(i);
        mappedValue = psc.map(key, value, set);
      }
    }

    if (mappedValue == null)
      return value;
View Full Code Here


                    SQLState.RAWSTORE_CANNOT_CHANGE_LOGDEVICE);
        }

     if (notifyOnSet != null) {
      for (int i = 0; i < notifyOnSet.size(); i++) {
        PropertySetCallback psc = (PropertySetCallback) notifyOnSet.elementAt(i);
        psc.validate(key, value, set);
      }
    }
  }
View Full Code Here

    Serializable mappedValue = null;
     if (notifyOnSet != null) {
      synchronized (this) {

        for (int i = 0; i < notifyOnSet.size() ; i++) {
          PropertySetCallback psc = (PropertySetCallback) notifyOnSet.get(i);
          if (!psc.validate(key, value, d))
            continue;

          if (mappedValue == null)
             mappedValue = psc.map(key, value, d);

          // if this property should not be used then
          // don't call apply. This depends on where
          // the old value comes from
          // SET_IN_JVM - property will not be used
          // SET_IN_DATABASE - propery will be used
          // SET_IN_APPLICATION - will become SET_IN_DATABASE
          // NOT_SET - will become SET_IN_DATABASE

          if (!dbOnlyProperty && key.startsWith("derby.")) {
            if (PropertyUtil.whereSet(key, d) == PropertyUtil.SET_IN_JVM)
              continue;
          }

          Serviceable s;
          if ((s = psc.apply(key,value,d)) != null)
            ((TransactionManager) tc).addPostCommitWork(s);
        }
      }
    }
    return mappedValue;
View Full Code Here

     throws StandardException
  {
    Serializable mappedValue = null;
     if (notifyOnSet != null) {
      for (int i = 0; i < notifyOnSet.size() && mappedValue == null; i++) {
        PropertySetCallback psc = (PropertySetCallback) notifyOnSet.get(i);
        mappedValue = psc.map(key, value, set);
      }
    }

    if (mappedValue == null)
      return value;
View Full Code Here

                    SQLState.RAWSTORE_CANNOT_CHANGE_LOGDEVICE);
        }

     if (notifyOnSet != null) {
      for (int i = 0; i < notifyOnSet.size(); i++) {
        PropertySetCallback psc = (PropertySetCallback) notifyOnSet.get(i);
        psc.validate(key, value, set);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.services.property.PropertySetCallback

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.