|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fesenmeyer.dbnormalizer.core.algorithms.NormalizationProposal
public class NormalizationProposal
Class representing a normalization proposal.
AbstractNormalizationAlgorithm.normalize(Table)
Field Summary | |
---|---|
private SortedSet<Table> |
createdTables
The tables to be created due to the normalization proposal. |
private NormalizationFKsProposal |
fksProposal
The foreign keys (FKs) to be created due to the normalization proposal. |
private static DBNormalizerLogger |
logger
The logger for this class. |
private Table |
oldTable
The old table (the table for which the normalization proposal has been generated). |
private String |
sqlScript
The SQL script generated for normalization. |
Constructor Summary | |
---|---|
NormalizationProposal(Table oldTable)
Class Constructor specifying the old table (the table for which the normalization proposal has been generated). |
Method Summary | |
---|---|
void |
addCreatedTable(Table table)
Adds a table to the tables to be created due to the normalization proposal. |
SortedSet<Table> |
getCreatedTables()
Gets the tables to be created due to the normalization proposal. |
NormalizationFKsProposal |
getFksProposal()
Gets the foreign keys (FKs) to be created due to the normalization proposal. |
NormalForm |
getNf()
Gets normal form of the normalization proposal (the lowest normal form of the created tables). |
Table |
getOldTable()
Gets the old table (the table for which the normalization proposal has been generated). |
String |
getSqlScript()
Gets the SQL script generated for normalization. |
void |
setFksProposal(NormalizationFKsProposal fksProposal)
Sets the foreign keys (FKs) to be created due to the normalization proposal. |
void |
setSqlScript(String sqlScript)
Sets the SQL script generated for normalization. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static DBNormalizerLogger logger
private Table oldTable
private SortedSet<Table> createdTables
private NormalizationFKsProposal fksProposal
private String sqlScript
null
,
if the old table does not exist in a DB.
Constructor Detail |
---|
public NormalizationProposal(Table oldTable)
oldTable
- the old tableMethod Detail |
---|
public Table getOldTable()
public void addCreatedTable(Table table)
table
- a tablepublic SortedSet<Table> getCreatedTables()
public NormalizationFKsProposal getFksProposal()
NormalizationFKsProposal
object containing the
FKs to be createdpublic void setFksProposal(NormalizationFKsProposal fksProposal)
fksProposal
- a NormalizationFKsProposal
object containing the
FKs to be createdpublic NormalForm getNf()
null
, if there have not
yet any tables been added to the normalization proposalpublic String getSqlScript()
null
, if the old table does not exist in a DB.public void setSqlScript(String sqlScript)
sqlScript
- the sql scriptNormalizationScriptBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |