Examples of attributesUsedForLocking()


Examples of com.webobjects.eoaccess.EOEntity.attributesUsedForLocking()

     * @param attr the attribute to add or remove
     * @param isUsedForLocking true adds the attribute, false removes it
     */
    public static void setIsAttributeUsedForLocking(EOAttribute attr, boolean isUsedForLocking) {
      EOEntity entity = attr.entity();
      NSArray<EOAttribute> atts = entity.attributesUsedForLocking();
      if(isUsedForLocking && !atts.contains(attr)) {
        atts = atts.arrayByAddingObject(attr);
        entity.setAttributesUsedForLocking(atts);
      } else if(!isUsedForLocking && atts.contains(attr)) {
        atts = ERXArrayUtilities.arrayMinusObject(atts, attr);
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.