/** * PUBLIC: * The inheritance policy is used to define how a descriptor takes part in inheritance. * All inheritance properties for both child and parent classes is configured in inheritance policy. * Caution must be used in using this method as it lazy initializes an inheritance policy. * Calling this on a descriptor that does not use inheritance will cause problems, #hasInheritance() must always first be called. */ @Override public InheritancePolicy getInheritancePolicy() { if (inheritancePolicy == null) { // Lazy initialize to conserve space in non-inherited classes. setInheritancePolicy(new org.eclipse.persistence.descriptors.InheritancePolicy(this)); } return inheritancePolicy; }
/** * PUBLIC: * The inheritance policy is used to define how a descriptor takes part in inheritance. * All inheritance properties for both child and parent classes is configured in inheritance policy. * Caution must be used in using this method as it lazy initializes an inheritance policy. * Calling this on a descriptor that does not use inheritance will cause problems, #hasInheritance() must always first be called. */ public InheritancePolicy getInheritancePolicy() { if (inheritancePolicy == null) { // Lazy initialize to conserve space in non-inherited classes. setInheritancePolicy(new org.eclipse.persistence.descriptors.InheritancePolicy(this)); } return inheritancePolicy; }
/** * PUBLIC: * The inheritance policy is used to define how a descriptor takes part in inheritance. * All inheritance properties for both child and parent classes is configured in inheritance policy. * Caution must be used in using this method as it lazy initializes an inheritance policy. * Calling this on a descriptor that does not use inheritance will cause problems, #hasInheritance() must always first be called. */ @Override public InheritancePolicy getInheritancePolicy() { if (inheritancePolicy == null) { // Lazy initialize to conserve space in non-inherited classes. setInheritancePolicy(new org.eclipse.persistence.descriptors.InheritancePolicy(this)); } return inheritancePolicy; }
/** * INTERNAL: * Recursive method. */ protected void setInheritancePolicy(MetadataDescriptor descriptor) { if (m_strategy == null && ! descriptor.isInheritanceSubclass()) { // TODO: Log a defaulting message } descriptor.getClassDescriptor().setInheritancePolicy(new InheritancePolicy(descriptor.getClassDescriptor())); }
/** * PUBLIC: * The inheritance policy is used to define how a descriptor takes part in inheritance. * All inheritance properties for both child and parent classes is configured in inheritance policy. * Caution must be used in using this method as it lazy initializes an inheritance policy. * Calling this on a descriptor that does not use inheritance will cause problems, #hasInheritance() must always first be called. */ public InheritancePolicy getInheritancePolicy() { if (inheritancePolicy == null) { if(getDataFormat() == EISDescriptor.XML) { // Lazy initialize to conserve space in non-inherited classes. setInheritancePolicy(new org.eclipse.persistence.internal.oxm.QNameInheritancePolicy(this)); } else { setInheritancePolicy(new InheritancePolicy(this)); } } return inheritancePolicy; }
/** * PUBLIC: * The inheritance policy is used to define how a descriptor takes part in inheritance. * All inheritance properties for both child and parent classes is configured in inheritance policy. * Caution must be used in using this method as it lazy initializes an inheritance policy. * Calling this on a descriptor that does not use inheritance will cause problems, #hasInheritance() must always first be called. */ @Override public InheritancePolicy getInheritancePolicy() { if (inheritancePolicy == null) { if(isXMLFormat()) { // Lazy initialize to conserve space in non-inherited classes. setInheritancePolicy(new org.eclipse.persistence.internal.oxm.QNameInheritancePolicy(this)); } else { setInheritancePolicy(new InheritancePolicy(this)); } } return inheritancePolicy; }
/** * PUBLIC: * The inheritance policy is used to define how a descriptor takes part in inheritance. * All inheritance properties for both child and parent classes is configured in inheritance policy. * Caution must be used in using this method as it lazy initializes an inheritance policy. * Calling this on a descriptor that does not use inheritance will cause problems, #hasInheritance() must always first be called. */ @Override public InheritancePolicy getInheritancePolicy() { if (inheritancePolicy == null) { if(isXMLFormat()) { // Lazy initialize to conserve space in non-inherited classes. setInheritancePolicy(new org.eclipse.persistence.internal.oxm.QNameInheritancePolicy(this)); } else { setInheritancePolicy(new InheritancePolicy(this)); } } return inheritancePolicy; }