public interface EntityFactory
| Modifier and Type | Method and Description |
|---|---|
Attribute |
createAttribute(Entity entity,
SourceInfo sourceInfo,
boolean implicit)
Creates an attribute.
|
AttributeOptions |
createAttributeOptions(Attribute attribute,
SourceInfo sourceInfo)
Creates attribute options.
|
Entity |
createEntity(SourceInfo sourceInfo)
Creates an empty entity.
|
Entity |
createEntity(String model,
ModelDefaults modelDefaults)
Creates an entity from a model source.
|
EntityOptions |
createEntityOptions(Entity entity,
SourceInfo sourceInfo)
Creates entity options.
|
Index |
createIndex(Entity entity,
SourceInfo sourceInfo)
Creates an index.
|
IndexAttribute |
createIndexAttribute(Index index)
Creates an index attribute.
|
Relation |
createRelation(Entity entity,
SourceInfo sourceInfo)
Creates a relation.
|
Collection<Backend> |
getBackends()
Gets the backends to validate the model against.
|
void |
setBackends(Collection<Backend> backends)
Sets the backends to validate the model against.
|
void setBackends(Collection<Backend> backends)
backends - the backends, null to disable checkCollection<Backend> getBackends()
Entity createEntity(SourceInfo sourceInfo)
sourceInfo - source information, null if noneEntity createEntity(String model, ModelDefaults modelDefaults) throws ModelException
model - the model sourcemodelDefaults - the model defaults, null if noneModelException - if parsing the model failedAttribute createAttribute(Entity entity, SourceInfo sourceInfo, boolean implicit)
entity - the entity this attribute belongs tosourceInfo - source information, null if noneimplicit - true if implicit attributeAttributeOptions createAttributeOptions(Attribute attribute, SourceInfo sourceInfo)
attribute - the attributesourceInfo - source information, null if noneEntityOptions createEntityOptions(Entity entity, SourceInfo sourceInfo)
entity - the entitysourceInfo - source information, null if noneIndex createIndex(Entity entity, SourceInfo sourceInfo)
entity - the entity this index belongs tosourceInfo - source information, null if noneIndexAttribute createIndexAttribute(Index index)
index - the indexRelation createRelation(Entity entity, SourceInfo sourceInfo)
entity - the entity this relation belongs tosourceInfo - source information, null if noneTentackle - a domain driven enterprise framework