/** * PUBLIC: * Sets the name of the attribute in the mapping. */ @Override public void setAttributeName(String attributeName) { getAttributeAccessor().setAttributeName(attributeName); // Clear the mapping attribute name until a getAttributeName() call copies the accessor attributeName this.attributeName = null; }
/** * PUBLIC: * This method is invoked reflectively on the reference object to return the value of the * attribute in the object. This method returns the name of the getMethodName or null if not using method access. */ public String getGetMethodName() { if (!getAttributeAccessor().isMethodAttributeAccessor()) { return null; } return ((MethodAttributeAccessor)getAttributeAccessor()).getGetMethodName(); }
/** * PUBLIC: * Sets the name of the attribute in the mapping. */ @Override public void setAttributeName(String attributeName) { getAttributeAccessor().setAttributeName(attributeName); // Clear the mapping attribute name until a getAttributeName() call copies the accessor attributeName this.attributeName = null; }
/** * PUBLIC: * Return if method access is used. */ public boolean isUsingMethodAccess() { return getAttributeAccessor().isMethodAttributeAccessor(); }
/** * PUBLIC: * This method is invoked reflectively on the reference object to return the value of the * attribute in the object. This method returns the name of the getMethodName or null if not using method access. */ public String getGetMethodName() { if (!getAttributeAccessor().isMethodAttributeAccessor()) { return null; } return ((MethodAttributeAccessor)getAttributeAccessor()).getGetMethodName(); }
/** * PUBLIC: * Return the name of the attribute set in the mapping. */ public String getAttributeName() { // The attribute name on the attributeAccessor will always override any attribute already set // Use the attributeAccessor attribute over the current attribute name if (attributeName == null) { attributeName = getAttributeAccessor().getAttributeName(); } return attributeName; }
/** * PUBLIC: * This method is invoked reflectively on the reference object to set the value of the * attribute in the object. This method returns the name of the setMethodName or null if not using method access. */ public String getSetMethodName() { if (!getAttributeAccessor().isMethodAttributeAccessor()) { return null; } return ((MethodAttributeAccessor)getAttributeAccessor()).getSetMethodName(); }
/** * PUBLIC: * Sets the name of the attribute in the mapping. */ public void setAttributeName(String attributeName) { getAttributeAccessor().setAttributeName(attributeName); // Clear the mapping attribute name until a getAttributeName() call copies the accessor attributeName this.attributeName = null; }
public boolean isSet(DatabaseMapping mapping) { ValuesAccessor accessor = (ValuesAccessor) mapping.getAttributeAccessor(); return accessor.isSet(this); } public boolean isSet(String propertyName) {
/** * PUBLIC: * This method is invoked reflectively on the reference object to return the value of the * attribute in the object. This method returns the name of the getMethodName or null if not using method access. */ public String getGetMethodName() { if (!getAttributeAccessor().isMethodAttributeAccessor()) { return null; } return ((MethodAttributeAccessor)getAttributeAccessor()).getGetMethodName(); }
/** * PUBLIC: * This method is invoked reflectively on the reference object to set the value of the * attribute in the object. This method returns the name of the setMethodName or null if not using method access. */ public String getSetMethodName() { if (!getAttributeAccessor().isMethodAttributeAccessor()) { return null; } return ((MethodAttributeAccessor)getAttributeAccessor()).getSetMethodName(); }
/** * PUBLIC: * Return if method access is used. */ public boolean isUsingMethodAccess() { return getAttributeAccessor().isMethodAttributeAccessor(); }
/** * PUBLIC: * This method is invoked reflectively on the reference object to set the value of the * attribute in the object. This method returns the name of the setMethodName or null if not using method access. */ public String getSetMethodName() { if (!getAttributeAccessor().isMethodAttributeAccessor()) { return null; } return ((MethodAttributeAccessor)getAttributeAccessor()).getSetMethodName(); }
/** * PUBLIC: * Return if method access is used. */ public boolean isUsingMethodAccess() { return getAttributeAccessor().isMethodAttributeAccessor(); }
/** * PUBLIC: * Return the name of the attribute set in the mapping. */ @Override public String getAttributeName() { // The attribute name on the attributeAccessor will always override any attribute already set // Use the attributeAccessor attribute over the current attribute name if (attributeName == null) { attributeName = getAttributeAccessor().getAttributeName(); } return attributeName; }
/** * INTERNAL: * Once descriptors are serialized to the remote session. All its mappings and reference descriptors are traversed. Usually * mappings are initilaized and serialized reference descriptors are replaced with local descriptors if they already exist on the * remote session. */ public void remoteInitialization(DistributedSession session) { // Remote mappings is initilaized here again because while serializing only the uninitialized data is passed // as the initialized data is not serializable. if (!isRemotelyInitialized()) { getAttributeAccessor().initializeAttributes(getDescriptor().getJavaClass()); remotelyInitialized(); } }
/** * INTERNAL: * Once descriptors are serialized to the remote session. All its mappings and reference descriptors are traversed. Usually * mappings are initilaized and serialized reference descriptors are replaced with local descriptors if they already exist on the * remote session. */ public void remoteInitialization(DistributedSession session) { // Remote mappings is initilaized here again because while serializing only the uninitialized data is passed // as the initialized data is not serializable. if (!isRemotelyInitialized()) { getAttributeAccessor().initializeAttributes(getDescriptor().getJavaClass()); remotelyInitialized(); } }
/** * INTERNAL: * Allow for initialization of properties and validation. */ public void preInitialize(AbstractSession session) throws DescriptorException { try { getAttributeAccessor().initializeAttributes(getDescriptor().getJavaClass()); } catch (DescriptorException exception) { exception.setMapping(this); session.getIntegrityChecker().handleError(exception); } }
/** * INTERNAL: * Allow for initialization of properties and validation. */ public void preInitialize(AbstractSession session) throws DescriptorException { try { getAttributeAccessor().initializeAttributes(getDescriptor().getJavaClass()); } catch (DescriptorException exception) { exception.setMapping(this); session.getIntegrityChecker().handleError(exception); } }
/** * INTERNAL: * Allow for initialization of properties and validation. */ public void preInitialize(AbstractSession session) throws DescriptorException { try { getAttributeAccessor().initializeAttributes(getDescriptor().getJavaClass()); } catch (DescriptorException exception) { exception.setMapping(this); session.getIntegrityChecker().handleError(exception); } }