Examples of WeavedObjectBasicIndirectionPolicy


Examples of oracle.toplink.essentials.internal.indirection.WeavedObjectBasicIndirectionPolicy

       
        // If the global weave for value holders is true, the use the value
        // from usesIndirection. Otherwise, force it to false.
        boolean usesIndirection = (m_project.enableLazyForOneToOne()) ? usesIndirection() : false;
        if (usesIndirection && m_descriptor.usesPropertyAccess()) {
            mapping.setIndirectionPolicy(new WeavedObjectBasicIndirectionPolicy(getSetMethodName()));
        } else {
            mapping.setUsesIndirection(usesIndirection);
        }
       
        // Set the getter and setter methods if access is PROPERTY.
View Full Code Here

Examples of org.eclipse.persistence.internal.indirection.WeavedObjectBasicIndirectionPolicy

        // then disable indirection.
        if (usesIndirection && (!getProject().isWeavingEnabled()) && (!ClassConstants.PersistenceWeavedLazy_Class.isAssignableFrom(getDescriptor().getJavaClass()))) {
            usesIndirection = false;
        }
        if (usesIndirection && usesPropertyAccess(getDescriptor())) {
            mapping.setIndirectionPolicy(new WeavedObjectBasicIndirectionPolicy(getSetMethodName()));
        } else {
            mapping.setUsesIndirection(usesIndirection);
        }
       
        mapping.setIsLazy(isLazy());
View Full Code Here

Examples of org.eclipse.persistence.internal.indirection.WeavedObjectBasicIndirectionPolicy

                          noSuchElementException = null;
                      } catch (NoSuchFieldException ex) {
                        String getMethodName = null;
                          String setMethodName = null;
                          if(mapping.isObjectReferenceMapping() && ((ObjectReferenceMapping)mapping).getIndirectionPolicy().isWeavedObjectBasicIndirectionPolicy()) {
                            WeavedObjectBasicIndirectionPolicy weavedIndirectionPolicy = (WeavedObjectBasicIndirectionPolicy)((ObjectReferenceMapping)mapping).getIndirectionPolicy();
                              if (weavedIndirectionPolicy.hasUsedMethodAccess()) {
                                getMethodName = weavedIndirectionPolicy.getGetMethodName();
                                  setMethodName = weavedIndirectionPolicy.getSetMethodName();
                              }
                          } else {
                            getMethodName = mapping.getGetMethodName();
                              setMethodName = mapping.getSetMethodName();
                          }
View Full Code Here

Examples of org.eclipse.persistence.internal.indirection.WeavedObjectBasicIndirectionPolicy

        // then disable indirection.
        if (usesIndirection && (!getProject().isWeavingEnabled()) && (!ClassConstants.PersistenceWeavedLazy_Class.isAssignableFrom(getDescriptor().getJavaClass()))) {
            usesIndirection = false;
        }
        if (usesIndirection && usesPropertyAccess(getDescriptor())) {
            mapping.setIndirectionPolicy(new WeavedObjectBasicIndirectionPolicy(getSetMethodName()));
        } else {
            mapping.setUsesIndirection(usesIndirection);
        }
       
        mapping.setIsLazy(isLazy());
View Full Code Here

Examples of org.eclipse.persistence.internal.indirection.WeavedObjectBasicIndirectionPolicy

                && (!ClassConstants.PersistenceWeavedLazy_Class.isAssignableFrom(getJavaClass(getDescriptor().getJavaClass())))) {
            usesIndirection = false;
        }
       
        if (usesIndirection && usesPropertyAccess()) {
            mapping.setIndirectionPolicy(new WeavedObjectBasicIndirectionPolicy(getGetMethodName(), getSetMethodName(), true));
        } else if (usesIndirection && usesFieldAccess()) {
            mapping.setIndirectionPolicy(new WeavedObjectBasicIndirectionPolicy(Helper.getWeavedGetMethodName(mapping.getAttributeName()), Helper.getWeavedSetMethodName(mapping.getAttributeName()), false));
        } else {
            mapping.setUsesIndirection(usesIndirection);
        }
       
        mapping.setIsLazy(isLazy());
View Full Code Here

Examples of org.eclipse.persistence.internal.indirection.WeavedObjectBasicIndirectionPolicy

        // then disable indirection.
        if (usesIndirection && (!getProject().isWeavingEnabled()) && (!ClassConstants.PersistenceWeavedLazy_Class.isAssignableFrom(getDescriptor().getJavaClass()))) {
            usesIndirection = false;
        }
        if (usesIndirection && usesPropertyAccess(getDescriptor())) {
            mapping.setIndirectionPolicy(new WeavedObjectBasicIndirectionPolicy(getSetMethodName()));
        } else {
            mapping.setUsesIndirection(usesIndirection);
        }
       
        mapping.setIsLazy(isLazy());
View Full Code Here

Examples of org.eclipse.persistence.internal.indirection.WeavedObjectBasicIndirectionPolicy

                          noSuchElementException = null;
                      } catch (NoSuchFieldException ex) {
                        String getMethodName = null;
                          String setMethodName = null;
                          if(mapping.isObjectReferenceMapping() && ((ObjectReferenceMapping)mapping).getIndirectionPolicy().isWeavedObjectBasicIndirectionPolicy()) {
                            WeavedObjectBasicIndirectionPolicy weavedIndirectionPolicy = (WeavedObjectBasicIndirectionPolicy)((ObjectReferenceMapping)mapping).getIndirectionPolicy();
                              if (weavedIndirectionPolicy.hasUsedMethodAccess()) {
                                getMethodName = weavedIndirectionPolicy.getGetMethodName();
                                  setMethodName = weavedIndirectionPolicy.getSetMethodName();
                              }
                          } else {
                            getMethodName = mapping.getGetMethodName();
                              setMethodName = mapping.getSetMethodName();
                          }
View Full Code Here

Examples of org.eclipse.persistence.internal.indirection.WeavedObjectBasicIndirectionPolicy

        if (getAccessibleObject() != null){
            actualAttributeType = getAccessibleObject().getType();
        }
       
        if (usesIndirection && usesPropertyAccess()) {
            mapping.setIndirectionPolicy(new WeavedObjectBasicIndirectionPolicy(getGetMethodName(), getSetMethodName(), actualAttributeType, true));
        } else if (usesIndirection && usesFieldAccess()) {
            mapping.setIndirectionPolicy(new WeavedObjectBasicIndirectionPolicy(Helper.getWeavedGetMethodName(mapping.getAttributeName()), Helper.getWeavedSetMethodName(mapping.getAttributeName()), actualAttributeType, false));
        } else {
            mapping.setUsesIndirection(usesIndirection);
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.internal.indirection.WeavedObjectBasicIndirectionPolicy

                            noSuchElementException = null;
                        } catch (NoSuchFieldException ex) {
                            String getMethodName = null;
                            String setMethodName = null;
                            if(mapping.isObjectReferenceMapping() && ((ObjectReferenceMapping)mapping).getIndirectionPolicy().isWeavedObjectBasicIndirectionPolicy()) {
                                WeavedObjectBasicIndirectionPolicy weavedIndirectionPolicy = (WeavedObjectBasicIndirectionPolicy)((ObjectReferenceMapping)mapping).getIndirectionPolicy();
                                if(weavedIndirectionPolicy.hasUsedMethodAccess()) {
                                    getMethodName = weavedIndirectionPolicy.getGetMethodName();
                                    setMethodName = weavedIndirectionPolicy.getSetMethodName();
                                }
                            } else {
                                getMethodName = mapping.getGetMethodName();
                                setMethodName = mapping.getSetMethodName();
                            }
View Full Code Here

Examples of org.eclipse.persistence.internal.indirection.WeavedObjectBasicIndirectionPolicy

        if (getAccessibleObject() != null){
            actualAttributeType = getAccessibleObject().getType();
        }
       
        if (usesIndirection && usesPropertyAccess()) {
            mapping.setIndirectionPolicy(new WeavedObjectBasicIndirectionPolicy(getGetMethodName(), getSetMethodName(), actualAttributeType, true));
        } else if (usesIndirection && usesFieldAccess()) {
            mapping.setIndirectionPolicy(new WeavedObjectBasicIndirectionPolicy(Helper.getWeavedGetMethodName(mapping.getAttributeName()), Helper.getWeavedSetMethodName(mapping.getAttributeName()), actualAttributeType, false));
        } else {
            mapping.setUsesIndirection(usesIndirection);
        }
    }
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.