org.eclipse.persistence.internal.helper.Helper.getWeavedValueHolderSetMethodName()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中org.eclipse.persistence.internal.helper.Helper.getWeavedValueHolderSetMethodName()方法的一些代码示例,展示了Helper.getWeavedValueHolderSetMethodName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.getWeavedValueHolderSetMethodName()方法的具体详情如下:
包路径:org.eclipse.persistence.internal.helper.Helper
类名称:Helper
方法名:getWeavedValueHolderSetMethodName

Helper.getWeavedValueHolderSetMethodName介绍

[英]Return the set method name weaved for a value-holder attribute.
[中]返回为值持有者属性编织的集合方法名称。

代码示例

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

  1. /**
  2. * Return the set method name weaved for a value-holder attribute.
  3. */
  4. public static String getWeavedValueHolderSetMethodName(String attributeName) {
  5. return Helper.getWeavedValueHolderSetMethodName(attributeName);
  6. }

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  1. /**
  2. * INTERNAL:
  3. * Initialize the state of mapping.
  4. */
  5. public void preInitialize(AbstractSession session) throws DescriptorException {
  6. super.preInitialize(session);
  7. // If weaving was used the mapping must be configured to use the weaved get/set methods.
  8. if ((this.indirectionPolicy instanceof BasicIndirectionPolicy) && ClassConstants.PersistenceWeavedLazy_Class.isAssignableFrom(getDescriptor().getJavaClass())) {
  9. Class attributeType = getAttributeAccessor().getAttributeClass();
  10. // Check that not already weaved or coded.
  11. if (!(ClassConstants.ValueHolderInterface_Class.isAssignableFrom(attributeType))) {
  12. boolean usesMethodAccess = getAttributeAccessor().isMethodAttributeAccessor();
  13. String originalSetMethod = null;
  14. if (usesMethodAccess) {
  15. originalSetMethod = getSetMethodName();
  16. }
  17. setGetMethodName(Helper.getWeavedValueHolderGetMethodName(getAttributeName()));
  18. setSetMethodName(Helper.getWeavedValueHolderSetMethodName(getAttributeName()));
  19. if (usesMethodAccess) {
  20. useWeavedIndirection(originalSetMethod);
  21. }
  22. // Must re-initialize the attribute accessor.
  23. super.preInitialize(session);
  24. }
  25. }
  26. }

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

  1. setSetMethodName(Helper.getWeavedValueHolderSetMethodName(getAttributeName()));

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

  1. setSetMethodName(Helper.getWeavedValueHolderSetMethodName(getAttributeName()));

相关文章

Helper类方法