|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.persist.ProposedEntity
public final class ProposedEntity
Holding structure for information about an entity class instance. This contains amongst others ...
| 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. |
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 |
setProposedEntityClass(Class proposedClass)
Sets the proposed Class instance. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProposedEntity()
public ProposedEntity(ClassMolder actualClassMolder)
public ProposedEntity(ProposedEntity proposedEntity)
proposedEntity - The entity instance to be copied.| Method Detail |
|---|
public void initializeFields(int numberOfFields)
numberOfFields - Number of the field values to be created.public Object[] getFields()
public Object getField(int index)
index - Index of the field to be returned.
public boolean isFieldsSet()
public int getNumberOfFields()
public void setFields(Object[] fields)
fields - The fields to set.
public void setField(Object field,
int index)
field - The field value to set.index - Specifies which field to set.public Object getEntity()
public void setEntity(Object entity)
entity - The object to set.public boolean isExpanded()
true if class is expanded, false otherwise.public void setExpanded(boolean isExpanded)
isExpanded - The isExpanded to set.public Class getProposedEntityClass()
public void setProposedEntityClass(Class proposedClass)
proposedClass - The proposedClass to set.public Class getActualEntityClass()
public void setActualEntityClass(Class actualClass)
actualClass - The actualClass to set.public ClassMolder getActualClassMolder()
public void setActualClassMolder(ClassMolder actualClassMolder)
actualClassMolder - The ClassMolder associated with the actual object.public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||