本文整理了Java中org.eclipse.persistence.internal.helper.Helper.getWeavedSetMethodName()
方法的一些代码示例,展示了Helper.getWeavedSetMethodName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.getWeavedSetMethodName()
方法的具体详情如下:
包路径:org.eclipse.persistence.internal.helper.Helper
类名称:Helper
方法名:getWeavedSetMethodName
[英]Return the set method name weaved for setting attribute value. This method is always weaved in field access case. In property access case the method weaved only if attribute name is the same as property name: for instance, the method weaved for "manager" attribute that uses "getManager" / "setManager" access methods, but not for "m_address" attribute that uses "getAddress" / "setAddress" access methods.
[中]返回为设置属性值而编织的集合方法名称。这种方法通常是在现场访问的情况下编织的。在属性访问情况下,仅当属性名称与属性名称相同时才编织方法:例如,为使用“getManager”/“setManager”访问方法的“manager”属性编织的方法,而不是为使用“getAddress”/“setAddress”访问方法的“m_address”属性编织的方法。
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
* Process the indirection (aka fetch type)
*/
protected void processIndirection(ForeignReferenceMapping mapping) {
boolean usesIndirection = usesIndirection();
// Lazy is not disabled until descriptor initialization (OneToOneMapping preInitialize),
// as it cannot be known if weaving occurred until then.
String actualAttributeType = getAttributeType();
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);
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
useWeavedIndirection(getGetMethodName(), getSetMethodName(), true);
} else if(getAttributeAccessor().isInstanceVariableAttributeAccessor()) {
useWeavedIndirection(Helper.getWeavedGetMethodName(getAttributeName()), Helper.getWeavedSetMethodName(getAttributeName()), false);
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
useWeavedIndirection(getGetMethodName(), getSetMethodName(), true);
} else if(getAttributeAccessor().isInstanceVariableAttributeAccessor()) {
useWeavedIndirection(Helper.getWeavedGetMethodName(getAttributeName()), Helper.getWeavedSetMethodName(getAttributeName()), false);
内容来源于网络,如有侵权,请联系作者删除!