org.castor.persist
public final class ProposedEntity extends Object
Since: 0.9.9
Version: $Revision: 5951 $ $Date$
Constructor Summary | |
---|---|
ProposedEntity()
Creates an default instance. | |
ProposedEntity(ClassMolder actualClassMolder) | |
ProposedEntity(ProposedEntity proposedEntity)
Creates an instance of this class based upon the values passed in.
|
Method Summary | |
---|---|
ClassMolder | getActualClassMolder()
Returns the ClassMolder associated with the actual object.
|
Class | getActualEntityClass()
Returns the actual Class instance.
|
Object | getEntity()
Returns the object.
|
Object | getField(int index)
Returns the specified field value of the object in question. |
Object[] | getFields()
Returns the fields of the object in question.
|
int | getNumberOfFields()
Indicates the number of field values set for this entity. |
Class | getProposedEntityClass()
Returns the proposed Class instance.
|
void | initializeFields(int numberOfFields)
Initialize field values to the specified number.
|
boolean | isExpanded()
True if the proposed class has been expanded.
|
boolean | isFieldsSet()
Indicates whether the fields are set, i.e. not null. |
boolean | isObjectLockObjectToBeIgnored() |
void | setActualClassMolder(ClassMolder actualClassMolder)
Sets the ClassMolder associated with the actual object.
|
void | setActualEntityClass(Class actualClass)
Sets the actual Class instance.
|
void | setEntity(Object entity)
Sets the object.
|
void | setExpanded(boolean isExpanded)
Set to true if the proposed class has been expanded.
|
void | setField(Object field, int index)
Sets the specified field of the object in question.
|
void | setFields(Object[] fields)
Sets the fields of the object in question.
|
void | setObjectLockObjectToBeIgnored(boolean lockObjectToBeIgnored) |
void | setProposedEntityClass(Class proposedClass)
Sets the proposed Class instance.
|
String | toString() |
Parameters: proposedEntity The entity instance to be copied.
Returns: The actual ClassMolder.
Returns: The actualClass.
Returns: The object.
Parameters: index Index of the field to be returned.
Returns: Returns the specified field value.
Returns: Returns the fields.
Returns: Number of field values set.
Returns: The proposedClass.
Parameters: numberOfFields Number of the field values to be created.
Returns: true
if class is expanded, false
otherwise.
Returns: True if fields are set, i.e. not null(.
Parameters: actualClassMolder The ClassMolder associated with the actual object.
Parameters: actualClass The actualClass to set.
Parameters: entity The object to set.
Parameters: isExpanded The isExpanded to set.
Parameters: field The field value to set. index Specifies which field to set.
Parameters: fields The fields to set.
Parameters: proposedClass The proposedClass to set.
See Also: java.lang.Object#toString()