Class ColumnContainer
- java.lang.Object
-
- org.fugerit.java.core.db.metadata.ColumnContainer
-
- Direct Known Subclasses:
IndexModel
,TableModel
public class ColumnContainer extends Object
Wrapper for a collection of ColumnModel.
Note : column name are considered without cases as for standard SQL.
- Author:
- Fugerit
-
-
Constructor Summary
Constructors Constructor Description ColumnContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(ColumnModel columnModel)
Add a column to the containerColumnModel
getColumn(String columnName)
Get a column from the container (by name)List<ColumnModel>
getColumnList()
Returns the column listMap<String,ColumnModel>
getColumnMap()
Returns the column map
-
-
-
Method Detail
-
getColumnList
public List<ColumnModel> getColumnList()
Returns the column list- Returns:
- the column list
-
getColumnMap
public Map<String,ColumnModel> getColumnMap()
Returns the column map- Returns:
- the column map
-
addColumn
public void addColumn(ColumnModel columnModel)
Add a column to the container- Parameters:
columnModel
- the column model to add
-
getColumn
public ColumnModel getColumn(String columnName)
Get a column from the container (by name)- Parameters:
columnName
- the column name- Returns:
- the column model or null
-
-