Search in sources :

Example 16 with TableDef

use of com.developmentontheedge.be5.metadata.model.TableDef in project be5 by DevelopmentOnTheEdge.

the class ColumnSelector method getTags.

@Override
public String[] getTags() {
    final Entity entity = (Entity) getBean();
    final TableDef tableDefinition = entity.findTableDefinition();
    if (tableDefinition == null)
        return Strings2.EMPTY;
    return tableDefinition.getColumns().names().toArray(String[]::new);
}
Also used : Entity(com.developmentontheedge.be5.metadata.model.Entity) TableDef(com.developmentontheedge.be5.metadata.model.TableDef)

Aggregations

TableDef (com.developmentontheedge.be5.metadata.model.TableDef)9 ColumnDef (com.developmentontheedge.be5.metadata.model.ColumnDef)8 Entity (com.developmentontheedge.be5.metadata.model.Entity)6 IndexColumnDef (com.developmentontheedge.be5.metadata.model.IndexColumnDef)4 Test (org.junit.Test)4 Project (com.developmentontheedge.be5.metadata.model.Project)3 DbmsTypeManager (com.developmentontheedge.be5.metadata.sql.type.DbmsTypeManager)3 ProjectElementException (com.developmentontheedge.be5.metadata.exception.ProjectElementException)2 DdlElement (com.developmentontheedge.be5.metadata.model.DdlElement)2 IndexDef (com.developmentontheedge.be5.metadata.model.IndexDef)2 Module (com.developmentontheedge.be5.metadata.model.Module)2 ViewDef (com.developmentontheedge.be5.metadata.model.ViewDef)2 Rdbms (com.developmentontheedge.be5.metadata.sql.Rdbms)2 FreemarkerSqlException (com.developmentontheedge.be5.metadata.exception.FreemarkerSqlException)1 Query (com.developmentontheedge.be5.metadata.model.Query)1 BeCaseInsensitiveCollection (com.developmentontheedge.be5.metadata.model.base.BeCaseInsensitiveCollection)1 BeModelElement (com.developmentontheedge.be5.metadata.model.base.BeModelElement)1 IndexInfo (com.developmentontheedge.be5.metadata.sql.pojo.IndexInfo)1 SqlColumnInfo (com.developmentontheedge.be5.metadata.sql.pojo.SqlColumnInfo)1 DefaultTypeManager (com.developmentontheedge.be5.metadata.sql.type.DefaultTypeManager)1