Class TransientFieldHandler
java.lang.Object
org.exolab.castor.mapping.loader.FieldHandlerFriend
org.exolab.castor.mapping.ExtendedFieldHandler
org.exolab.castor.mapping.AbstractFieldHandler
org.exolab.castor.mapping.handlers.TransientFieldHandler
- All Implemented Interfaces:
ConfigurableFieldHandler,FieldHandler
A dummy FieldHandler for "transient" fields. This allows us
to create a FieldDescriptor, but not use a real FieldHandler
- Version:
- $Revision: 6231 $ $Date: 2005-01-17 14:35:07 -0700 (Mon, 17 Jan 2005) $
- Author:
- kvisco
-
Field Summary
Fields inherited from class org.exolab.castor.mapping.AbstractFieldHandler
_properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the field from the object.newInstance(Object target) Creates a new instance of the object described by this field.newInstance(Object target, Object[] args) Creates a new instance of the object described by this field.voidresetValue(Object target) Sets the value of the field to a default value.voidSets the value of the field on the object.Methods inherited from class org.exolab.castor.mapping.AbstractFieldHandler
getFieldDescriptor, hasValue, setConfiguration, setFieldDescriptorMethods inherited from class org.exolab.castor.mapping.ExtendedFieldHandler
checkValidityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exolab.castor.mapping.FieldHandler
checkValidity
-
Constructor Details
-
TransientFieldHandler
public TransientFieldHandler()
-
-
Method Details
-
getValue
Description copied from class:FieldHandlerFriendReturns the value of the field from the object.- Specified by:
getValuein interfaceFieldHandler- Specified by:
getValuein classFieldHandlerFriend- Parameters:
target- The object- Returns:
- The value of the field
- See Also:
-
newInstance
Description copied from class:FieldHandlerFriendCreates a new instance of the object described by this field.- Specified by:
newInstancein interfaceFieldHandler- Specified by:
newInstancein classFieldHandlerFriend- Parameters:
target- The object for which the field is created- Returns:
- A new instance of the field's value
- See Also:
-
newInstance
Description copied from class:ExtendedFieldHandlerCreates a new instance of the object described by this field.- Specified by:
newInstancein classExtendedFieldHandler- Parameters:
target- The object for which the field is createdargs- the set of constructor arguments- Returns:
- A new instance of the field's value
- See Also:
-
setValue
Description copied from class:FieldHandlerFriendSets the value of the field on the object.- Specified by:
setValuein interfaceFieldHandler- Specified by:
setValuein classFieldHandlerFriend- Parameters:
target- The objectvalue- The new value- See Also:
-
resetValue
Description copied from class:FieldHandlerFriendSets the value of the field to a default value.Reference fields are set to null, primitive fields are set to their default value, collection fields are emptied of all elements.
- Specified by:
resetValuein interfaceFieldHandler- Specified by:
resetValuein classFieldHandlerFriend- Parameters:
target- The object- See Also:
-