org.castor.persist

Class ProposedEntity


public final class ProposedEntity
extends java.lang.Object

Holding structure for information about an entity class instance. This contains amongst others ...
Version:
$Revision: 5951 $ $Date$
Author:
Werner Guttmann
Since:
0.9.9

Constructor Summary

ProposedEntity()
Creates an default instance.
ProposedEntity(ProposedEntity proposedEntity)
Creates an instance of this class based upon the values passed in.
ProposedEntity(ClassMolder actualClassMolder)

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.
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()

Constructor Details

ProposedEntity

public ProposedEntity()
Creates an default instance.

ProposedEntity

public ProposedEntity(ProposedEntity proposedEntity)
Creates an instance of this class based upon the values passed in.
Parameters:
proposedEntity - The entity instance to be copied.

ProposedEntity

public ProposedEntity(ClassMolder actualClassMolder)

Method Details

getActualClassMolder

public ClassMolder getActualClassMolder()
Returns the ClassMolder associated with the actual object.
Returns:
The actual ClassMolder.

getActualEntityClass

public Class getActualEntityClass()
Returns the actual Class instance.
Returns:
The actualClass.

getEntity

public Object getEntity()
Returns the object.
Returns:
The object.

getField

public Object getField(int index)
Returns the specified field value of the object in question.
Parameters:
index - Index of the field to be returned.
Returns:
Returns the specified field value.

getFields

public Object[] getFields()
Returns the fields of the object in question.
Returns:
Returns the fields.

getNumberOfFields

public int getNumberOfFields()
Indicates the number of field values set for this entity.
Returns:
Number of field values set.

getProposedEntityClass

public Class getProposedEntityClass()
Returns the proposed Class instance.
Returns:
The proposedClass.

initializeFields

public void initializeFields(int numberOfFields)
Initialize field values to the specified number.
Parameters:
numberOfFields - Number of the field values to be created.

isExpanded

public boolean isExpanded()
True if the proposed class has been expanded.
Returns:
true if class is expanded, false otherwise.

isFieldsSet

public boolean isFieldsSet()
Indicates whether the fields are set, i.e. not null.
Returns:
True if fields are set, i.e. not null(.

isObjectLockObjectToBeIgnored

public boolean isObjectLockObjectToBeIgnored()

setActualClassMolder

public void setActualClassMolder(ClassMolder actualClassMolder)
Sets the ClassMolder associated with the actual object.
Parameters:
actualClassMolder - The ClassMolder associated with the actual object.

setActualEntityClass

public void setActualEntityClass(Class actualClass)
Sets the actual Class instance.
Parameters:
actualClass - The actualClass to set.

setEntity

public void setEntity(Object entity)
Sets the object.
Parameters:
entity - The object to set.

setExpanded

public void setExpanded(boolean isExpanded)
Set to true if the proposed class has been expanded.
Parameters:
isExpanded - The isExpanded to set.

setField

public void setField(Object field,
                     int index)
Sets the specified field of the object in question.
Parameters:
field - The field value to set.
index - Specifies which field to set.

setFields

public void setFields(Object[] fields)
Sets the fields of the object in question.
Parameters:
fields - The fields to set.

setObjectLockObjectToBeIgnored

public void setObjectLockObjectToBeIgnored(boolean lockObjectToBeIgnored)

setProposedEntityClass

public void setProposedEntityClass(Class proposedClass)
Sets the proposed Class instance.
Parameters:
proposedClass - The proposedClass to set.

toString

public String toString()
See Also:
java.lang.Object.toString()

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com