Package io.github.mfvanek.pg.model.table
Class Table
java.lang.Object
io.github.mfvanek.pg.model.table.Table
- All Implemented Interfaces:
DbObject,TableNameAware,TableSizeAware,Comparable<Table>
A base representation of database table.
-
Method Details
-
getName
Gets database object name. -
getTableName
Gets table name.- Specified by:
getTableNamein interfaceTableNameAware- Returns:
- table name
-
getTableSizeInBytes
public long getTableSizeInBytes()Gets table size in bytes.- Specified by:
getTableSizeInBytesin interfaceTableSizeAware- Returns:
- table size in bytes
-
toString
-
equals
-
hashCode
public final int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Table>
-
of
Constructs aTableobject.- Parameters:
tableName- table name; should be non-blank.tableSizeInBytes- table size in bytes; should be positive or zero.- Returns:
Table
-