Package ru.curs.celesta.dbutils.meta
Class DbPkInfo
java.lang.Object
ru.curs.celesta.dbutils.meta.DbPkInfo
Information on primary key taken from the database.
- Since:
- 2017-05-10
- Author:
- ioann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumnName(String columnName) Adds a column to the primary key.Returns columns of the primary key.getName()Returns primary key name.booleanisEmpty()Whether primary key contains any columns.booleanvoidSets primary key name.
-
Constructor Details
-
DbPkInfo
-
-
Method Details
-
addColumnName
Adds a column to the primary key.- Parameters:
columnName- column name
-
setName
Sets primary key name.- Parameters:
name- primary key name
-
getName
Returns primary key name.- Returns:
-
getColumnNames
Returns columns of the primary key.- Returns:
-
isEmpty
public boolean isEmpty()Whether primary key contains any columns.- Returns:
-
reflects
-