Class PersistenceTableRelationModel
java.lang.Object
org.eclipse.dirigible.database.persistence.model.PersistenceTableRelationModel
public class PersistenceTableRelationModel extends Object
The relation element of the persistence model transport object.
-
Constructor Summary
Constructors Constructor Description PersistenceTableRelationModel()PersistenceTableRelationModel(String fromTableName, String toTableName, String fkColumnName, String pkColumnName, String fkName, String pkName) -
Method Summary
Modifier and Type Method Description StringgetFkColumnName()Gets the name of the foreign key column.StringgetFkName()Gets the name of the foreign key.StringgetFromTableName()Gets the name of the table with the foreign key.StringgetPkColumnName()Gets the name of the primary key column.StringgetPkName()Gets the name of the primary key.StringgetToTableName()Gets the name of the table with the primary key.voidsetFkColumnName(String fkColumnName)Sets the name of the foreign key column.voidsetFkName(String fkName)Sets the name of the foreign key.voidsetFromTableName(String fromTableName)Sets the name of the table with the foreign key.voidsetPkColumnName(String pkColumnName)Sets the name of the primary key column.voidsetPkName(String pkName)Sets the name of the primary key.voidsetToTableName(String toTableName)Sets the name of the table with the primary key.
-
Constructor Details
-
PersistenceTableRelationModel
public PersistenceTableRelationModel() -
PersistenceTableRelationModel
-
-
Method Details
-
getFromTableName
Gets the name of the table with the foreign key.the new columns
-
setFromTableName
Sets the name of the table with the foreign key.- Parameters:
fromTableName-
-
getToTableName
Gets the name of the table with the primary key. -
setToTableName
Sets the name of the table with the primary key.- Parameters:
toTableName-
-
getFkColumnName
Gets the name of the foreign key column. -
setFkColumnName
Sets the name of the foreign key column.- Parameters:
fkColumnName-
-
getPkColumnName
Gets the name of the primary key column. -
setPkColumnName
Sets the name of the primary key column.- Parameters:
pkColumnName-
-
getFkName
Gets the name of the foreign key. -
setFkName
Sets the name of the foreign key.- Parameters:
fkName-
-
getPkName
Gets the name of the primary key. -
setPkName
Sets the name of the primary key.- Parameters:
pkName-
-