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>
@Immutable
public final class Table
extends Object
implements DbObject, TableSizeAware, Comparable<Table>
A base representation of database table.
-
Method Details
-
getName
Retrieves database object name. -
getObjectType
Retrieves database object type.- Specified by:
getObjectTypein interfaceDbObject- Returns:
- database object type
-
getTableName
Retrieves table name.- Specified by:
getTableNamein interfaceTableNameAware- Returns:
- table name
-
getTableSizeInBytes
public long getTableSizeInBytes()Retrieves table size in bytes.- Specified by:
getTableSizeInBytesin interfaceTableSizeAware- Returns:
- table size in bytes
-
toString
-
equals
-
hashCode
public 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
-