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(String model, 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.Model.getAllEntitites()Gets all cached entities.Attribute.getApplicationTypeName()Gets the name of the application specific type, if a Convertible type.Model.getByClassId(int classId) Gets the entity by its class id.Model.getByEntityName(String entityName) Gets the entity by its name.Model.getByFilePath(String filePath) Gets the entity by the mapfile path.Model.getByTableName(String tableName) Gets the entity by its table name.Attribute.getColumnName(int columnIndex) Gets the database column name.
For datatype with only one column, this is usually the same as the model's column name.DataType<?>Attribute.getEffectiveDataType()Gets the effective type exposed to the backend.
If this is an application specific type, the inner type will be returned.Model.getForeignKeys()Gets all foreign keys.Entity.getInheritanceChain(Entity subEntity) Gets the inheritance chain from this entity down to given sub entity.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.booleanAttribute.isNullable()Returns whether database column is nullable.Model.loadByFilePath(String filePath, ModelDefaults defaults, EntityAliases aliases) Loads an entity for a given mapfile name.
Entities are cached so they are loaded and parsed only once.voidModel.loadModel(String modelDir, ModelDefaults defaults, EntityAliases aliases) Loads the whole model from the model directory if not yet done.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) Conberts a given value string to a valid java method argument.
Adds downcasts, if necessary.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 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.addModelEntity(ModelEntity modelEntity) 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(String model, ModelDefaults modelDefaults) protected ModelDirectoryModelImpl.createModelDirectory(String modelDir, ModelDefaults defaults, EntityAliases aliases) Creates a model directory object.protected ModelEntityModelImpl.createModelEntity(Entity entity, String fileName) Creates a model entity wrapper.protected ReaderModelImpl.createReader(String name) Creates a reader for given name.ModelImpl.getAllEntitites()AttributeImpl.getApplicationTypeName()ModelImpl.getByClassId(int classId) ModelImpl.getByEntityName(String entityName) ModelImpl.getByFilePath(String filePath) ModelImpl.getByTableName(String tableName) AttributeImpl.getColumnName(int columnIndex) DataType<?>AttributeImpl.getEffectiveDataType()ModelImpl.getForeignKeys()EntityImpl.getInheritanceChain(Entity childEntity) DataType<?>AttributeImpl.getInnerDataType()AttributeImpl.getInnerTypeName()AttributeImpl.getJavaType()booleanAttributeImpl.isNullable()ModelImpl.loadByFilePath(String filePath, ModelDefaults defaults, EntityAliases aliases) protected EntityModelImpl.loadByFilePath(String filePath, ModelDefaults defaults, EntityAliases aliases, boolean updateRelations) Loads an entity for a given mapfile path.
Entities are cached so they are loaded and parsed only once.voidModelImpl.loadModel(String modelDir, ModelDefaults defaults, EntityAliases aliases) 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 EntityModelImpl.parseEntity(ModelDefaults defaults, String fileName) Parses the given file and returns the created entity.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.updateRelations(ModelDefaults defaults, EntityAliases aliases) Updates the inheritance links and relations of all entities in the model.protected voidModelImpl.updateRelations(ModelDefaults defaults, EntityAliases aliases, ModelEntity loadedModelEntity) 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(org.tentackle.model.ModelDefaults, org.tentackle.model.EntityAliases)applied successfully.Constructors in org.tentackle.model.impl that throw ModelExceptionModifierConstructorDescriptionModelDirectoryImpl(String modelDir, ModelDefaults defaults, EntityAliases aliases) Creates a model directory object.ModelEntityImpl(Entity entity, String filePath) Creates a model entity. -
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. -
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()