Package com.jsql.model.bean.database
Class AbstractElementDatabase
java.lang.Object
com.jsql.model.bean.database.AbstractElementDatabase
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
Modifier and TypeFieldDescriptionprotected String
Label of the current element.static final AbstractElementDatabase
Used by non-progressing threads like File, metadata and shells. -
Constructor Summary
-
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. -
MOCK
Used by non-progressing threads like File, metadata and shells. Required for suspendable concurrent map tracking.
-
-
Constructor Details
-
AbstractElementDatabase
public AbstractElementDatabase()
-
-
Method Details
-
getParent
Traverse upward, and return the parent.- Returns:
-
getChildCount
public abstract int getChildCount()Return the number of elements contained by current element :
- for database: number of tables,
- for table: number of rows. -
getLabelCount
Return a readable label displayed by the view.- Returns:
-
toString
Return the label of current element. -
setElementValue
-