Uses of Interface
org.tentackle.model.Entity
-
Packages that use Entity Package Description org.tentackle.model Entity model.org.tentackle.model.impl Default model implementation.org.tentackle.model.migrate Database migration support.org.tentackle.model.print Model pretty printing. -
-
Uses of Entity in org.tentackle.model
Methods in org.tentackle.model that return Entity Modifier and Type Method Description EntityEntityFactory. createEntity(java.lang.String model, ModelDefaults modelDefaults)Creates an entity from a model source.EntityEntityFactory. createEntity(SourceInfo sourceInfo)Creates an empty entity.EntityModel. getByClassId(int classId)Gets the entity by its id.EntityModel. getByEntityName(java.lang.String entityName)Gets the entity by its name.EntityModel. getByFileName(java.lang.String fileName)Gets the entity by the mapfile name.EntityAttribute. getEntity()Gets the entity this attribute belongs to.EntityEntityOptions. getEntity()Gets the entity this option-set belongs to.EntityIndex. getEntity()Gets the entity this index belongs to.EntityRelation. getEntity()Gets the entity this relation belongs to.EntityRelation. getForeignEntity()Gets the related entity.EntityForeignKey. getReferencedEntity()Gets the referenced entity.EntityForeignKey. getReferencedTableProvidingEntity()Gets the entity that provides the table for the referenced entity.EntityForeignKey. getReferencingEntity()Gets the referencing entity.EntityForeignKey. getReferencingTableProvidingEntity()Gets the entity that provides the table for the referencing entity.EntityEntity. getRootEntity()Returns the single root entity if there is exactly one and it is not abstract.EntityEntity. getSuperEntity()Gets the super class entity if inherited.EntityEntity. getTableProvidingEntity()Gets the entity that provides the database table.EntityEntity. getTopSuperEntity()Gets the top most entity of the inheritance tree.
Returns this entity if there is no inheritance.EntityModel. loadByFileName(java.lang.String fileName, ModelDefaults defaults, EntityAliases aliases)Loads an entity for a given mapfile name.
Entities are cached so they are loaded and parsed only once.Methods in org.tentackle.model that return types with arguments of type Entity Modifier and Type Method Description java.util.Set<Entity>Entity. getAllComponents()Gets all direct and indirect components of this entity.java.util.Collection<Entity>Model. getAllEntitites()Gets all cached entities.java.util.List<Entity>Entity. getAllSubEntities()Gets all sub entities.java.util.Set<Entity>Entity. getAssociatedEntities()Gets a set of all entities that are associated to this entity.
The kind of association can be a relation, a foreign relation or some hierarchy dependency or a combination of.java.util.Set<Entity>Entity. getComponents()Gets the direct components of this entity.java.util.Set<Entity>Entity. getComponentsIncludingInherited()Gets the direct and inherited components of this entity.java.util.List<Entity>Entity. getInheritanceChain(Entity subEntity)Gets the inheritance chain from this entity down to given sub entity.java.util.List<Entity>Entity. getLeafEntities()Gets the list of non-abstract leaf sub entities.
If this entity is already non-abstract the list consists of this entity.java.util.Set<Entity>Entity. getRootEntities()Returns the root entities.
Returns all roots, even abstract ones.java.util.List<Entity>Entity. getSubEntities()Gets the direct sub entities.java.util.List<Entity>Entity. getSuperEntities()Gets all super entities.Methods in org.tentackle.model with parameters of type Entity Modifier and Type Method Description AttributeEntityFactory. createAttribute(Entity entity, SourceInfo sourceInfo, boolean implicit)Creates an attribute.java.lang.StringIndex. createDatabaseIndexName(Entity entity)Creates the database index name for given entity.EntityOptionsEntityFactory. createEntityOptions(Entity entity, SourceInfo sourceInfo)Creates entity options.IndexEntityFactory. createIndex(Entity entity, SourceInfo sourceInfo)Creates an index.RelationEntityFactory. createRelation(Entity entity, SourceInfo sourceInfo)Creates a relation.java.lang.StringCodeFactory. createSqlIndex(org.tentackle.sql.Backend backend, Entity entity, Index index)Creates the SQL code to create an index.java.lang.StringCodeFactory. createSqlTable(Entity entity, org.tentackle.sql.Backend backend)Creates the table creation sql code.java.util.List<Entity>Entity. getInheritanceChain(Entity subEntity)Gets the inheritance chain from this entity down to given sub entity.java.util.List<Relation>Entity. getRelations(Entity entity, boolean all)Gets all relations for a given entity type.java.lang.StringIndex. sqlCreateIndex(org.tentackle.sql.Backend backend, Entity entity)Creates the index creation sql code. -
Uses of Entity in org.tentackle.model.impl
Classes in org.tentackle.model.impl that implement Entity Modifier and Type Class Description classEntityImplThe entity model implementation.Methods in org.tentackle.model.impl that return Entity Modifier and Type Method Description EntityEntityFactoryImpl. createEntity(java.lang.String model, ModelDefaults modelDefaults)EntityModelImpl. getByClassId(int classId)EntityModelImpl. getByEntityName(java.lang.String entityName)EntityModelImpl. getByFileName(java.lang.String fileName)EntityAttributeImpl. getEntity()EntityEntityOptionsImpl. getEntity()EntityIndexImpl. getEntity()EntityModelEntity. getEntity()Gets the entity.EntityModelEntityImpl. getEntity()Gets the entity.EntityRelationImpl. getEntity()EntityRelationImpl. getForeignEntity()EntityForeignKeyImpl. getReferencedEntity()EntityForeignKeyImpl. getReferencedTableProvidingEntity()EntityForeignKeyImpl. getReferencingEntity()EntityForeignKeyImpl. getReferencingTableProvidingEntity()EntityEntityImpl. getRootEntity()EntityEntityImpl. getSuperEntity()EntityEntityImpl. getTableProvidingEntity()EntityEntityImpl. getTopSuperEntity()EntityModelImpl. loadByFileName(java.lang.String fileName, ModelDefaults defaults, EntityAliases aliases)protected EntityModelImpl. loadByFileName(java.lang.String fileName, ModelDefaults defaults, EntityAliases aliases, boolean updateRelations)Loads an entity for a given mapfile name.
Entities are cached so they are loaded and parsed only once.protected EntityModelImpl. parseEntity(ModelDefaults defaults, java.lang.String fileName)Parses the given file and returns the created entity.Methods in org.tentackle.model.impl that return types with arguments of type Entity Modifier and Type Method Description java.util.Set<Entity>EntityImpl. getAllComponents()java.util.Collection<Entity>ModelImpl. getAllEntitites()java.util.List<Entity>EntityImpl. getAllSubEntities()java.util.Set<Entity>EntityImpl. getAssociatedEntities()java.util.Set<Entity>EntityImpl. getComponents()java.util.Set<Entity>EntityImpl. getComponentsIncludingInherited()java.util.List<Entity>EntityImpl. getInheritanceChain(Entity childEntity)java.util.List<Entity>EntityImpl. getLeafEntities()java.util.Set<Entity>EntityImpl. getRootEntities()java.util.List<Entity>EntityImpl. getSubEntities()java.util.List<Entity>EntityImpl. getSuperEntities()Methods in org.tentackle.model.impl with parameters of type Entity Modifier and Type Method Description protected java.util.List<Attribute>EntityImpl. appendIdSerial(Entity entity, java.util.List<Attribute> attributes)Appends id and serial from another entity.protected voidEntityImpl. collectAssociatedEntities(java.util.Set<Entity> associates, Entity entity, java.util.Set<Entity> processedEntities)Recursively collects the associated entities for a given entity.protected voidEntityImpl. collectLeafEntities(java.util.List<Entity> leafs, Entity entity)Recursivly collects the leaf childs.protected voidEntityImpl. collectSubEntities(java.util.List<Entity> subEntities, Entity entity)Recursivly collects all sub entities.AttributeImplEntityFactoryImpl. createAttribute(Entity entity, SourceInfo sourceInfo, boolean implicit)java.lang.StringIndexImpl. createDatabaseIndexName(Entity entity)EntityOptionsImplEntityFactoryImpl. createEntityOptions(Entity entity, SourceInfo sourceInfo)IndexImplEntityFactoryImpl. createIndex(Entity entity, SourceInfo sourceInfo)protected ModelEntityModelImpl. createModelEntity(Entity entity, java.lang.String fileName)Creates a model entity wrapper.RelationImplEntityFactoryImpl. createRelation(Entity entity, SourceInfo sourceInfo)java.util.List<Entity>EntityImpl. getInheritanceChain(Entity childEntity)java.util.List<Relation>EntityImpl. getRelations(Entity entity, boolean all)protected voidEntityImpl. getUniqueDomainKeyImpl(java.util.List<Attribute> uniqueDomainKeys, Entity entity)Adds the unique domain keys recursively for given entity to the list.voidAttributeImpl. parse(Entity entity, AttributeLine line)Parses an attribute line.voidIndexImpl. parse(Entity entity)Parses a configuration line.voidRelationImpl. parse(Entity entity, RelationLine line)Parses a relation line.voidRelationImpl. setForeignEntity(Entity foreignEntity)voidEntityImpl. setSuperEntity(Entity superEntity)Sets the super entity.java.lang.StringIndexImpl. sqlCreateIndex(org.tentackle.sql.Backend backend, Entity entity)protected voidModelImpl. updateCompositePath(java.util.List<Relation> compositePath, Entity entity)Updates the composite path.protected voidModelImpl. validateComponents(Entity entity, Integrity integrity, java.util.Set<ModelError> errors)Verifies that the integrity is the same within a given composite hierarchy.protected voidModelImpl. validateInheritanceHierarchy(Entity entity, InheritanceType inheritanceType, TrackType trackType, Integrity integrity, java.util.Set<ModelError> errors)Verifies that the inheritance, integrity and track type is the same within a given interitance hierarchy.
Notice that concrete classes (the leafs of the hierarchy) must have InheritanceType.NONE defined!Method parameters in org.tentackle.model.impl with type arguments of type Entity Modifier and Type Method Description protected voidEntityImpl. collectAssociatedEntities(java.util.Set<Entity> associates, Entity entity, java.util.Set<Entity> processedEntities)Recursively collects the associated entities for a given entity.protected voidEntityImpl. collectLeafEntities(java.util.List<Entity> leafs, Entity entity)Recursivly collects the leaf childs.protected voidEntityImpl. collectSubEntities(java.util.List<Entity> subEntities, Entity entity)Recursivly collects all sub entities.Constructors in org.tentackle.model.impl with parameters of type Entity Constructor Description AttributeImpl(EntityFactoryImpl factory, Entity entity, SourceInfo sourceInfo, boolean implicit)Creates an attribute.EntityOptionsImpl(EntityFactory factory, Entity entity, SourceInfo sourceInfo)Creates entity options.ForeignKeyImpl(Entity referencingEntity, Attribute referencingAttribute, Entity referencedEntity, Attribute referencedAttribute, boolean composite)Creates a foreign key.IndexImpl(EntityFactoryImpl factory, Entity entity, SourceInfo sourceInfo)Creates an index.ModelEntityImpl(Entity entity, java.lang.String fileName)Creates a model entity.RelationImpl(Entity entity, SourceInfo sourceInfo)Creates a relation. -
Uses of Entity in org.tentackle.model.migrate
Methods in org.tentackle.model.migrate that return Entity Modifier and Type Method Description EntityTableMigrator. getEntity()Gets the model's entity.Constructors in org.tentackle.model.migrate with parameters of type Entity Constructor Description ColumnMigrator(Entity entity, Attribute attribute, org.tentackle.sql.Backend backend, java.util.Collection<org.tentackle.sql.metadata.ColumnMetaData> columns)Creates a column migrator.ColumnMigrator(Entity entity, Attribute attribute, org.tentackle.sql.Backend backend, org.tentackle.sql.metadata.ColumnMetaData... columns)Creates a column migrator.IndexMigrator(Entity entity, Index index, org.tentackle.sql.Backend backend, org.tentackle.sql.metadata.IndexMetaData indexMetaData)Creates a migrator.TableMigrator(Entity entity, java.util.Collection<ForeignKey> foreignKeys, org.tentackle.sql.Backend backend, org.tentackle.sql.metadata.TableMetaData table)Creates a table migrator. -
Uses of Entity in org.tentackle.model.print
Constructors in org.tentackle.model.print with parameters of type Entity Constructor Description AttributeSectionPrinter(Entity entity, PrintConfiguration configuration)Creates a section printer.EntityPrinter(Entity entity, PrintConfiguration configuration)Creates an entity printer.GlobalOptionsPrinter(Entity entity, PrintConfiguration configuration)Creates the printer.
-