Package com.jsql.model.bean.database
Class Column
java.lang.Object
com.jsql.model.bean.database.AbstractElementDatabase
com.jsql.model.bean.database.Column
Define a Column, e.g. is sent to the view by the model after injection.
Allow to traverse upward to its corresponding table
-
Field Summary
Fields inherited from class com.jsql.model.bean.database.AbstractElementDatabase
elementValue, MOCK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Default 0, a column doesn't contain anything.A readable label for column is its own label.Return the parent table.Methods inherited from class com.jsql.model.bean.database.AbstractElementDatabase
setElementValue, toString
-
Constructor Details
-
Column
Define the column label and parent table.- Parameters:
newColumnName
-newTableName
-
-
-
Method Details
-
getParent
Return the parent table.- Specified by:
getParent
in classAbstractElementDatabase
- Returns:
- Parent for column
-
getChildCount
public int getChildCount()Default 0, a column doesn't contain anything.- Specified by:
getChildCount
in classAbstractElementDatabase
- Returns:
- No child for column
-
getLabelCount
A readable label for column is its own label.- Specified by:
getLabelCount
in classAbstractElementDatabase
- Returns:
- column text
-