Package com.jsql.model.bean.database
Class AbstractElementDatabase
java.lang.Object
com.jsql.model.bean.database.AbstractElementDatabase
- Direct Known Subclasses:
Column
,Database
,MockElement
,Table
Class used by the model to properly define components of the database.
When the model ends a process of injection, it builds the corresponding database elements
and provides them to the view.
You can traverse elements from columns, to its corresponding table, to its corresponding database,
inverse isn't required (database>table>column is not used)
Concern only databases, tables and columns, values are raw data directly processed by the view
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
Return the number of elements contained by current element :
- for database: number of tables,
- for table: number of rows.abstract String
Return a readable label displayed by the view.abstract AbstractElementDatabase
Traverse upward, and return the parent.void
setElementValue
(String elementValue) toString()
Return the label of current element.
-
Field Details
-
elementValue
Label of the current element.
-
-
Constructor Details
-
AbstractElementDatabase
public AbstractElementDatabase()
-
-
Method Details
-
getParent
Traverse upward, and return the parent. -
getChildCount
public abstract int getChildCount()Return the number of elements contained by current element :
- for database: number of tables,
- for table: number of rows. -
getLabelWithCount
Return a readable label displayed by the view. -
toString
Return the label of current element. -
setElementValue
-