本文整理了Java中org.eclipse.persistence.internal.helper.Helper.getWeavedValueHolderGetMethodName()
方法的一些代码示例,展示了Helper.getWeavedValueHolderGetMethodName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Helper.getWeavedValueHolderGetMethodName()
方法的具体详情如下:
包路径:org.eclipse.persistence.internal.helper.Helper
类名称:Helper
方法名:getWeavedValueHolderGetMethodName
[英]Return the get method name weaved for a value-holder attribute.
[中]返回为值持有者属性编织的get方法名称。
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* Return the get method name weaved for a value-holder attribute.
*/
public static String getWeavedValueHolderGetMethodName(String attributeName) {
return Helper.getWeavedValueHolderGetMethodName(attributeName);
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* INTERNAL:
* Initialize the state of mapping.
*/
public void preInitialize(AbstractSession session) throws DescriptorException {
super.preInitialize(session);
// If weaving was used the mapping must be configured to use the weaved get/set methods.
if ((this.indirectionPolicy instanceof BasicIndirectionPolicy) && ClassConstants.PersistenceWeavedLazy_Class.isAssignableFrom(getDescriptor().getJavaClass())) {
Class attributeType = getAttributeAccessor().getAttributeClass();
// Check that not already weaved or coded.
if (!(ClassConstants.ValueHolderInterface_Class.isAssignableFrom(attributeType))) {
boolean usesMethodAccess = getAttributeAccessor().isMethodAttributeAccessor();
String originalSetMethod = null;
if (usesMethodAccess) {
originalSetMethod = getSetMethodName();
}
setGetMethodName(Helper.getWeavedValueHolderGetMethodName(getAttributeName()));
setSetMethodName(Helper.getWeavedValueHolderSetMethodName(getAttributeName()));
if (usesMethodAccess) {
useWeavedIndirection(originalSetMethod);
}
// Must re-initialize the attribute accessor.
super.preInitialize(session);
}
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
setGetMethodName(Helper.getWeavedValueHolderGetMethodName(getAttributeName()));
setSetMethodName(Helper.getWeavedValueHolderSetMethodName(getAttributeName()));
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
setGetMethodName(Helper.getWeavedValueHolderGetMethodName(getAttributeName()));
setSetMethodName(Helper.getWeavedValueHolderSetMethodName(getAttributeName()));
内容来源于网络,如有侵权,请联系作者删除!