Uses of Class
org.tentackle.model.ModelException
Packages that use ModelException
Package
Description
Entity model.
Default model implementation.
Database migration support.
Model parsing.
-
Uses of ModelException in org.tentackle.model
Methods in org.tentackle.model that throw ModelExceptionModifier and TypeMethodDescriptionEntityFactory.createEntity(Document document, ModelDefaults modelDefaults) Creates an entity from a model source.CodeFactory.createMethodArgument(Attribute attribute, String value) Creates the source code for a method argument.CodeFactory.createSqlTable(Entity entity, Backend backend) Creates the table creation sql code.Entity.getAllAttributes()Gets all attributes including inherited and from sub entities.Entity.getAllComponents()Gets all direct and indirect components of this entity.Model.getAllEntities()Gets all cached entities.Entity.getAllRelations()Gets all relations including the inherited and the ones from the sub entities.Attribute.getApplicationTypeName()Gets the name of the application specific type, if a Convertible type.Entity.getAttributesIncludingInherited()Gets the attributes including the inherited ones.Model.getByClassId(int classId) Gets the entity by its class id.Model.getByEntityName(String entityName) Gets the entity by its name.Model.getByTableName(String tableName) Gets the entity by its table name.Gets the entity by the model file path.Attribute.getColumnName(Backend backend, int columnIndex) Gets the database column name.
For datatype with only one column, this is usually the same as the model's column name.Entity.getComponentsIncludingInherited()Gets the direct and inherited components of this entity.DataType<?>Attribute.getEffectiveDataType()Gets the effective type exposed to the backend.
If this is an application specific type, the inner type will be returned.Entity.getEmbeddedAttributes()Gets the attributes of embedded entities.Entity.getEmbeddedRelations(Entity embeddingEntity) Gets the relations of all embedded entities.
Due to the restriction of embedded entities, these relations are all non-composite object relations.Model.getEntityInfo(Entity entity) Gets the model information for the given entity.EntityInfo.getFile()Gets the model file.Model.getForeignKeys()Gets all foreign keys.Entity.getInheritanceChain(Entity subEntity) Gets the inheritance chain from this entity down to given sub entity.Entity.getInheritedAttributes()Gets the inherited attributes.Entity.getInheritedRelations()Gets the inherited relations.DataType<?>Attribute.getInnerDataType()Gets the inner datatype exposed to the backend if Convertible.Attribute.getInnerTypeName()Gets the inner type name.
This is either the generic inner type or the wrapped type of Convertible types.Attribute.getJavaType()Gets the java type.
Returns the java type with optional generic info.Entity.getMappedAttributes()Gets the attributes mapped by the persistence layer for this entity.Entity.getRelationsIncludingInherited()Gets all including inherited relations.Entity.getTableAttributes()Gets the attributes of the table mapped by this entity.Entity.getTableRelations()Gets the relations of the table mapped by this entity.
Will also contain the relations from embedded entities.Entity.getUniqueDomainKey()Gets the attributes describing the unique domain key.ModelDirectory.getURLs()Gets the model file URLs.booleanAttribute.isNullable()Returns whether database column is nullable.Model.loadFromDirectory(String modelDir, boolean updateRelations) Loads the whole model from the model directory if not yet done.Model.loadFromJar(File file, boolean updateRelations) Loads the model from a jar file.
Reads the model files listed inMETA-INF/MODEL-INDEX.LIST.Model.loadFromResources(boolean updateRelations) Loads from resources.
Locates allMETA-INF/MODEL-INDEX.LISTresources and loads the model files.Model.loadFromURL(URL url, boolean updateRelations) Loads an entity from a given URL.
Entities are cached, so they are loaded and parsed only once.voidParses the aliases from a string.voidParses the defaults from a string.voidModel.refreshModel()Refreshes the model.
Checks for changes and reloads if necessary.Entity.sqlCreateTable(Backend backend) Creates the table creation sql code.Attribute.toMethodArgument(String value) Converts a given value string to a valid java method argument.
Adds a downcast, if necessary.voidModel.updateRelations()Updates the relations if not yet done during load.voidAttribute.validate()Validates the attribute.voidCommonOptions.validate()Validates the options.voidValidates the model.voidIndex.validate()Validates the index.voidRelation.validate()Validates the relation.Constructors in org.tentackle.model with parameters of type ModelExceptionModifierConstructorDescriptionModelError(ModelException modelException) Creates a model error from a model exception.Constructors in org.tentackle.model that throw ModelExceptionModifierConstructorDescriptionEntityAliases(String str) Creates the aliases from a string.ModelDefaults(String str) Creates the defaults from a string. -
Uses of ModelException in org.tentackle.model.impl
Methods in org.tentackle.model.impl that return ModelExceptionModifier and TypeMethodDescriptionAttributeImpl.createModelException(String message) Creates a model exception.AttributeOptionsImpl.createModelException(String message) CommonOptionsImpl.createModelException(String message) IndexImpl.createModelException(String message) Creates a model exception.RelationImpl.createModelException(String message) Creates a model exception.RelationImpl.createModelException(String message, Throwable cause) Creates a model exception.Methods in org.tentackle.model.impl that throw ModelExceptionModifier and TypeMethodDescriptionprotected voidModelImpl.addEntityInfo(EntityInfo entityInfo) Adds an entity to the model.booleanAttributeOptionsImpl.applyOption(String option, Boolean ctrl) booleanCommonOptionsImpl.applyOption(String option, Boolean ctrl) Applies given option string.booleanEntityOptionsImpl.applyOption(String option, Boolean ctrl) EntityFactoryImpl.createEntity(Document document, ModelDefaults modelDefaults) protected EntityInfoModelImpl.createEntityInfo(ModelDefaults defaults, URL url) Creates a model entity wrapper.protected ModelDirectoryModelImpl.createModelDirectory(String modelDir) Creates a model directory object.protected ReaderModelImpl.createReader(URL url) Creates a reader for given name.EntityImpl.getAllAttributes()EntityImpl.getAllComponents()ModelImpl.getAllEntities()EntityImpl.getAllRelations()AttributeImpl.getApplicationTypeName()EntityImpl.getAttributesIncludingInherited()ModelImpl.getByClassId(int classId) ModelImpl.getByEntityName(String entityName) ModelImpl.getByTableName(String tableName) AttributeImpl.getColumnName(Backend backend, int columnIndex) EntityImpl.getComponentsIncludingInherited()DataType<?>AttributeImpl.getEffectiveDataType()EntityImpl.getEmbeddedAttributes()EntityImpl.getEmbeddedRelations(Entity embeddingEntity) ModelImpl.getEntityInfo(Entity entity) EntityInfoImpl.getFile()ModelImpl.getForeignKeys()EntityImpl.getInheritanceChain(Entity childEntity) EntityImpl.getInheritedAttributes()EntityImpl.getInheritedRelations()DataType<?>AttributeImpl.getInnerDataType()AttributeImpl.getInnerTypeName()AttributeImpl.getJavaType()EntityImpl.getMappedAttributes()EntityImpl.getRelationsIncludingInherited()EntityImpl.getTableAttributes()EntityImpl.getTableRelations()EntityImpl.getUniqueDomainKey()protected voidEntityImpl.getUniqueDomainKeyImpl(List<Attribute> uniqueDomainKeys, Entity entity) Adds the unique domain keys recursively for given entity to the list.ModelDirectoryImpl.getURLs()booleanAttributeImpl.isNullable()ModelImpl.loadFromDirectory(String modelDir, boolean updateRelations) ModelImpl.loadFromJar(File file, boolean updateRelations) ModelImpl.loadFromResources(boolean updateRelations) ModelImpl.loadFromURL(URL url, boolean updateRelations) voidAttributeImpl.parse(Entity entity, AttributeLine line) Parses an attribute line.voidParses a configuration line.voidRelationImpl.parse(Entity entity, RelationLine line) Parses a relation line.booleanEntityImpl.parseConfiguration(ConfigurationLine line) Parses a configuration line.protected voidEntityFactoryImpl.processAttribute(EntityImpl entity, AttributeLine line) Processes an attribute line.protected voidEntityFactoryImpl.processAttributeOption(EntityImpl entity, OptionLine line) Processes an attribute option line.protected voidEntityFactoryImpl.processConfiguration(EntityImpl entity, ConfigurationLine line) Processes a configuration line.protected voidEntityFactoryImpl.processGlobalOptions(EntityImpl entity, GlobalOptionLine line) Processes a global option line.booleanCommonOptionsImpl.processOption(String option) Processes an option string.
If the option string starts with ! or -, the option is considered to be turned off.protected voidEntityFactoryImpl.processRelation(EntityImpl entity, RelationLine line) Processes a relation line.protected voidEntityFactoryImpl.processRelationOption(EntityImpl entity, OptionLine line) Processes a relation option line.voidModelImpl.refreshModel()voidAttributeImpl.setInnerTypeName(String innerTypeName) Sets the inner type name.EntityImpl.sqlCreateTable(Backend backend) AttributeImpl.toMethodArgument(String value) protected voidModelImpl.updateCompositePath(List<Relation> compositePath, Entity entity) Updates the composite path.voidModelImpl.updateRelations()protected voidModelImpl.updateRelations(EntityInfo loadedEntityInfo) Updates all relations.voidAttributeImpl.validate()voidCommonOptionsImpl.validate()voidEntityImpl.validate()Validates the entity without relation dependent settings.voidIndexImpl.validate()voidRelationImpl.validate()voidEntityImpl.validateRelated()Validates the relation dependent settings.
AssumesModelImpl.updateRelations()applied successfully.Constructors in org.tentackle.model.impl that throw ModelExceptionModifierConstructorDescriptionEntityInfoImpl(Entity entity, URL url, String modelSource, ModelDefaults defaults) Creates a model entity.ModelDirectoryImpl(String modelDir, ModelDefaults defaults, EntityAliases aliases) Creates a model directory object. -
Uses of ModelException in org.tentackle.model.migrate
Methods in org.tentackle.model.migrate that throw ModelExceptionModifier and TypeMethodDescriptionColumnMigrator.migrate()Migrates the column.ForeignKeyMigrator.migrate()Migrates the foreign key.TableMigrator.migrate(Collection<Pattern> hints, Collection<ColumnMigration> columnMigrations, Map<String, String> renameColumns) Create SQL code to migrate the table.voidCustomMigrationValidator.validate(TableMigrator migrator, TableMigrator.Result result) Validates a migration. -
Uses of ModelException in org.tentackle.model.parse
Methods in org.tentackle.model.parse that return ModelExceptionModifier and TypeMethodDescriptionLine.createModelException(String message) Creates a model exception.Line.createModelException(String message, Throwable cause) Creates a model exception.Methods in org.tentackle.model.parse that throw ModelExceptionModifier and TypeMethodDescriptionprotected voidLine.assertParsed()Asserts that this line is parsed.RelationLine.getClassName()Gets the classname.AttributeLine.getColumnName()Gets the column name in database table.AttributeLine.getComment()Gets the comment.CommentLine.getComment()Gets the comment.
The leading hash and whitespaces and trailing whitespaces are removed.AttributeLine.getInnerType()Gets the inner type name.AttributeLine.getJavaName()Gets the Java attribute name.AttributeLine.getJavaType()Gets the java type name.ConfigurationLine.getKey()Gets the key's name.intLine.getLength()Gets the length of the parsed line.Document.getLines()Gets the parsed lines.OptionLine.getName()Gets the attribute or relation name.AttributeLine.getOptions()Gets the options.GlobalOptionLine.getOptions()Gets the option strings.OptionLine.getOptions()Gets the options.RelationLine.getProperties()Gets the properties.AttributeLine.getScale()Gets the numeric scale.AttributeLine.getSize()Gets the size.GlobalOptionLine.getSortings()Gets the sorting strings.GlobalOptionLine.getStereotypes()Gets the stereotypes.Line.getText()Gets the line's text.ConfigurationLine.getValue()Gets the key's value.protected LineGets the next line.voidAttributeLine.parse()voidCommentLine.parse()voidConfigurationLine.parse()Document.parse()Parses the document and returns a list of lines.voidGlobalOptionLine.parse()abstract voidLine.parse()Parses a line.voidMultiLine.parse()voidOptionLine.parse()voidRelationLine.parse()voidSingleLine.parse()Constructors in org.tentackle.model.parse that throw ModelException