Package com.jsql.model.bean.database
Class Database
java.lang.Object
com.jsql.model.bean.database.AbstractElementDatabase
com.jsql.model.bean.database.Database
Define a Database, e.g. is sent to the view by the model after injection.
-
Field Summary
Fields inherited from class com.jsql.model.bean.database.AbstractElementDatabase
elementValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Return the number of elements contained by current element :
- for database: number of tables,
- for table: number of rows.A readable label for the database, with number of tables, displayed by the view, e.g. my_database (7 tables).Traverse upward, and return the parent.Methods inherited from class com.jsql.model.bean.database.AbstractElementDatabase
setElementValue, toString
-
Constructor Details
-
Database
Define the database label and number of tables.
-
-
Method Details
-
getParent
Description copied from class:AbstractElementDatabase
Traverse upward, and return the parent.- Specified by:
getParent
in classAbstractElementDatabase
-
getChildCount
public int getChildCount()Description copied from class:AbstractElementDatabase
Return the number of elements contained by current element :
- for database: number of tables,
- for table: number of rows.- Specified by:
getChildCount
in classAbstractElementDatabase
-
getLabelWithCount
A readable label for the database, with number of tables, displayed by the view, e.g. my_database (7 tables).- Specified by:
getLabelWithCount
in classAbstractElementDatabase
-