Uses of Class
org.tentackle.model.ModelException
-
Packages that use ModelException Package Description org.tentackle.model Entity model.org.tentackle.model.impl Default model implementation.org.tentackle.model.migrate Database migration support.org.tentackle.model.parse Model parsing. -
-
Uses of ModelException in org.tentackle.model
Methods in org.tentackle.model that throw ModelException Modifier and Type Method Description EntityEntityFactory. createEntity(java.lang.String model, ModelDefaults modelDefaults)Creates an entity from a model source.java.lang.StringCodeFactory. createSqlTable(Entity entity, org.tentackle.sql.Backend backend)Creates the table creation sql code.java.util.Collection<Entity>Model. getAllEntitites()Gets all cached entities.java.lang.StringAttribute. getApplicationType()Gets the application specific type.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.DataTypeAttribute. getEffectiveType()Gets the effective type exposed to the backend.
If this is an application specific type, the inner type will be returned.java.util.Collection<ForeignKey>Model. getForeignKeys()Gets all foreign keys.java.util.List<Entity>Entity. getInheritanceChain(Entity subEntity)Gets the inheritance chain from this entity down to given sub entity.java.lang.StringAttribute. getInnerName()Gets the inner name.
This is either the generic inner type or the wrapped type used by application specific types, for example enums.DataTypeAttribute. getInnerType()Gets the innertype for application specific types.java.lang.StringAttribute. getJavaType()Gets the java type.
Returns the java type with optional generic info.booleanAttribute. isNullable()Returns whether database column is nullable.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.voidModel. loadModel(java.lang.String modelDir, ModelDefaults defaults, EntityAliases aliases)Loads the whole model from the model directory if not yet done.voidEntityAliases. parse(java.lang.String str)Parses the aliases from a string.voidModelDefaults. parse(java.lang.String str)Parses the defaults from a string.voidModel. refreshModel()Refreshes the model.
Checks for changes and reloads if necessary.java.lang.StringEntity. sqlCreateTable(org.tentackle.sql.Backend backend)Creates the table creation sql code.voidAttribute. validate()Validates the attribute.voidCommonOptions. validate()Validates the options.voidIndex. validate()Validates the index.voidRelation. validate()Validates the relation.Constructors in org.tentackle.model that throw ModelException Constructor Description EntityAliases(java.lang.String str)Creates the aliases from a string.ModelDefaults(java.lang.String str)Creates the defaults from a string. -
Uses of ModelException in org.tentackle.model.impl
Methods in org.tentackle.model.impl that return ModelException Modifier and Type Method Description ModelExceptionAttributeImpl. createModelException(java.lang.String message)Creates a model exception.ModelExceptionAttributeOptionsImpl. createModelException(java.lang.String message)ModelExceptionCommonOptionsImpl. createModelException(java.lang.String message)ModelExceptionIndexImpl. createModelException(java.lang.String message)Creates a model exception.ModelExceptionRelationImpl. createModelException(java.lang.String message)Creates a model exception.Methods in org.tentackle.model.impl that throw ModelException Modifier and Type Method Description protected voidModelImpl. addModelEntity(ModelEntity modelEntity)Adds an entity to the model.booleanAttributeOptionsImpl. applyOption(java.lang.String option, java.lang.Boolean ctrl)booleanCommonOptionsImpl. applyOption(java.lang.String option, java.lang.Boolean ctrl)Applies given option string.booleanEntityOptionsImpl. applyOption(java.lang.String option, java.lang.Boolean ctrl)EntityEntityFactoryImpl. createEntity(java.lang.String model, ModelDefaults modelDefaults)protected ModelDirectoryModelImpl. createModelDirectory(java.lang.String modelDir, ModelDefaults defaults, EntityAliases aliases)Creates a model directory object.protected ModelEntityModelImpl. createModelEntity(Entity entity, java.lang.String fileName)Creates a model entity wrapper.protected java.io.ReaderModelImpl. createReader(java.lang.String name)Creates a reader for given name.java.util.Collection<Entity>ModelImpl. getAllEntitites()java.lang.StringAttributeImpl. getApplicationType()Gets the application specific type.EntityModelImpl. getByClassId(int classId)EntityModelImpl. getByEntityName(java.lang.String entityName)EntityModelImpl. getByFileName(java.lang.String fileName)DataTypeAttributeImpl. getEffectiveType()java.util.Collection<ForeignKey>ModelImpl. getForeignKeys()java.util.List<Entity>EntityImpl. getInheritanceChain(Entity childEntity)java.lang.StringAttributeImpl. getInnerName()Returns the inner type.DataTypeAttributeImpl. getInnerType()Gets the innertype for application specific types.java.lang.StringAttributeImpl. getJavaType()Gets the java type.
Returns the java type with optional generic info.booleanAttributeImpl. isNullable()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.voidModelImpl. loadModel(java.lang.String modelDir, ModelDefaults defaults, EntityAliases aliases)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.booleanEntityImpl. parseConfiguration(ConfigurationLine line)Parses a configuration line.protected EntityModelImpl. parseEntity(ModelDefaults defaults, java.lang.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(java.lang.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. setApplicationType(java.lang.String applicationType)Sets the application specific type.
Only allowedDataType.APPLICATION.voidAttributeImpl. setInnerName(java.lang.String innerType)Sets the inner type.java.lang.StringEntityImpl. sqlCreateTable(org.tentackle.sql.Backend backend)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 ModelException Constructor Description ModelDirectoryImpl(java.lang.String modelDir, ModelDefaults defaults, EntityAliases aliases)Creates a model directory object.ModelEntityImpl(Entity entity, java.lang.String fileName)Creates a model entity. -
Uses of ModelException in org.tentackle.model.migrate
Methods in org.tentackle.model.migrate that throw ModelException Modifier and Type Method Description java.lang.StringColumnMigrator. migrate()Migrates the column.java.lang.StringForeignKeyMigrator. migrate()Migrates the foreign key.TableMigrator.ResultTableMigrator. migrate(java.util.Collection<java.util.regex.Pattern> hints, java.util.Collection<ColumnMigration> columnMigrations)Create SQL code to migrate the table. -
Uses of ModelException in org.tentackle.model.parse
Methods in org.tentackle.model.parse that return ModelException Modifier and Type Method Description ModelExceptionLine. createModelException(java.lang.String message)Creates a model exception.ModelExceptionLine. createModelException(java.lang.String message, java.lang.Throwable cause)Creates a model exception.Methods in org.tentackle.model.parse that throw ModelException Modifier and Type Method Description protected voidLine. assertParsed()Asserts that this line is parsed.java.lang.StringRelationLine. getClassName()Gets the classname.java.lang.StringAttributeLine. getColumnName()Gets the column name in database table.java.lang.StringAttributeLine. getComment()Gets the comment.java.lang.StringCommentLine. getComment()Gets the comment.
The leading hash and whitespaces and trailing whitespaces are removed.java.lang.StringAttributeLine. getInnerName()Gets the generic type.java.lang.StringAttributeLine. getJavaName()Gets the Java attribute name.java.lang.StringAttributeLine. getJavaType()Gets the java type.java.lang.StringConfigurationLine. getKey()Gets the key's name.intLine. getLength()Gets the length of the parsed line.java.util.List<Line>Document. getLines()Gets the parsed lines.java.lang.StringOptionLine. getName()Gets the attribute or relation name.java.util.List<java.lang.String>AttributeLine. getOptions()Gets the options.java.util.List<java.lang.String>GlobalOptionLine. getOptions()Gets the option strings.java.util.List<java.lang.String>OptionLine. getOptions()Gets the options.java.util.Map<java.lang.String,java.lang.String>RelationLine. getProperties()Gets the properties.java.lang.IntegerAttributeLine. getScale()Gets the numeric scale.java.lang.IntegerAttributeLine. getSize()Gets the size.java.util.List<java.lang.String>GlobalOptionLine. getSortings()Gets the sorting strings.java.lang.StringLine. getText()Gets the line's text.java.lang.StringConfigurationLine. getValue()Gets the key's value.protected LineDocument. nextLine(Line currentLine)Gets the next line.voidAttributeLine. parse()voidCommentLine. parse()voidConfigurationLine. parse()protected java.util.List<Line>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()
-