|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.metadata.EntityMetadataBuilder
public class EntityMetadataBuilder
A builder that creates EntityMetadata instances.
| Method Summary | |
|---|---|
void |
addEmbeddedProperty(String ownerPropertyName,
String propertyName,
PropertyType propertyType)
Adds an embedded property to this entity metadata instance. |
void |
addProperty(String name,
PropertyType type)
Adds a property to this entity metadata instance. |
EntityMetadata |
build()
Builds and returns a new EntityMetadata instance applying all property metadata that was added to this builder. |
Bean |
getBean()
Returns the bean representing the persistent entity. |
void |
setIdProperty(String name,
PropertyType type)
Set the id property for this entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Bean getBean()
public void setIdProperty(String name,
PropertyType type)
name - the name of the propertytype - the property type
public void addProperty(String name,
PropertyType type)
name - the name of the propertytype - the property type
public void addEmbeddedProperty(String ownerPropertyName,
String propertyName,
PropertyType propertyType)
ownerPropertyName - the name of the embedded propertypropertyName - the name of the property of the embedded typepropertyType - the property typepublic EntityMetadata build()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||