Package io.github.mfvanek.pg.model.table
Class Column
java.lang.Object
io.github.mfvanek.pg.model.table.Column
- All Implemented Interfaces:
ColumnNameAware
,TableNameAware
,Comparable<Column>
A representation of column in database table.
- Since:
- 0.5.0
-
Constructor Details
-
Column
-
-
Method Details
-
getTableName
Gets table name.- Specified by:
getTableName
in interfaceTableNameAware
- Returns:
- table name
-
getColumnName
Gets column name in the table.- Specified by:
getColumnName
in interfaceColumnNameAware
- Returns:
- column name
-
isNotNull
public boolean isNotNull()Shows whether column can or cannot accept null values.- Specified by:
isNotNull
in interfaceColumnNameAware
- Returns:
- true if column cannot accept null values
-
toString
-
equals
-
hashCode
public final int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Column>
-
ofNotNull
-
ofNullable
-