Package com.im.commons.db.ddl
Class DBForeignKeyInfo
- java.lang.Object
-
- com.im.commons.db.ddl.DBForeignKeyInfo
-
- All Implemented Interfaces:
AbstractInfo
,java.io.Serializable
public class DBForeignKeyInfo extends java.lang.Object implements AbstractInfo, java.io.Serializable
Database info class for a foreign key definition.- Author:
- Tim Dudgeon
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DBForeignKeyInfo()
Creates a new instance of DBForeignKeyInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToModel(java.lang.String parentID, DBItemsCache dbItemsCache)
boolean
equals(java.lang.Object obj)
java.lang.String
getDeleteAction()
java.lang.String[]
getFkColumnNames()
java.lang.String[]
getFKColumnNames()
java.lang.String
getFkName()
java.lang.String
getFKName()
java.lang.String
getFkSchemaName()
java.lang.String
getFkTableName()
Getter for property fkTableName.java.lang.String[]
getPkColumnNames()
java.lang.String[]
getPKColumnNames()
java.lang.String
getPkName()
java.lang.String
getPKName()
java.lang.String
getPkSchemaName()
java.lang.String
getPkTableName()
Getter for property pkTableName.java.lang.String
getUpdateAction()
int
hashCode()
void
removeFromModel(java.lang.String parentID, DBItemsCache cache)
void
setDeleteAction(java.lang.String deleteAction)
void
setFkColumnNames(java.lang.String[] fkColumnNames)
void
setFKColumnNames(java.lang.String[] names)
void
setFkName(java.lang.String fkName)
void
setFKName(java.lang.String name)
void
setFkSchemaName(java.lang.String fkSchemaName)
void
setFkTableName(java.lang.String fkTableName)
Setter for property fkTableName.void
setPkColumnNames(java.lang.String[] pkColumnNames)
void
setPKColumnNames(java.lang.String[] names)
void
setPkName(java.lang.String pkName)
void
setPKName(java.lang.String name)
void
setPkSchemaName(java.lang.String pkSchemaName)
void
setPkTableName(java.lang.String pkTableName)
Setter for property pkTableName.void
setUpdateAction(java.lang.String updateAction)
-
-
-
Method Detail
-
setPkSchemaName
public void setPkSchemaName(java.lang.String pkSchemaName)
-
getPkSchemaName
public java.lang.String getPkSchemaName()
-
setFkSchemaName
public void setFkSchemaName(java.lang.String fkSchemaName)
-
getFkSchemaName
public java.lang.String getFkSchemaName()
-
getPkTableName
public java.lang.String getPkTableName()
Getter for property pkTableName.- Returns:
- Value of property pkTableName.
-
setPkTableName
public void setPkTableName(java.lang.String pkTableName)
Setter for property pkTableName.- Parameters:
pkTableName
- New value of property pkTableName.
-
getFkTableName
public java.lang.String getFkTableName()
Getter for property fkTableName.- Returns:
- Value of property fkTableName.
-
setFkTableName
public void setFkTableName(java.lang.String fkTableName)
Setter for property fkTableName.- Parameters:
fkTableName
- New value of property fkTableName.
-
getFKColumnNames
public java.lang.String[] getFKColumnNames()
-
setFKColumnNames
public void setFKColumnNames(java.lang.String[] names)
-
getPKColumnNames
public java.lang.String[] getPKColumnNames()
-
setPKColumnNames
public void setPKColumnNames(java.lang.String[] names)
-
getPKName
public java.lang.String getPKName()
-
setPKName
public void setPKName(java.lang.String name)
-
getFKName
public java.lang.String getFKName()
-
setFKName
public void setFKName(java.lang.String name)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getPkName
public java.lang.String getPkName()
-
setPkName
public void setPkName(java.lang.String pkName)
-
getFkName
public java.lang.String getFkName()
-
setFkName
public void setFkName(java.lang.String fkName)
-
getFkColumnNames
public java.lang.String[] getFkColumnNames()
-
setFkColumnNames
public void setFkColumnNames(java.lang.String[] fkColumnNames)
-
getPkColumnNames
public java.lang.String[] getPkColumnNames()
-
setPkColumnNames
public void setPkColumnNames(java.lang.String[] pkColumnNames)
-
getUpdateAction
public java.lang.String getUpdateAction()
-
setUpdateAction
public void setUpdateAction(java.lang.String updateAction)
-
getDeleteAction
public java.lang.String getDeleteAction()
-
setDeleteAction
public void setDeleteAction(java.lang.String deleteAction)
-
addToModel
public void addToModel(java.lang.String parentID, DBItemsCache dbItemsCache)
- Specified by:
addToModel
in interfaceAbstractInfo
-
removeFromModel
public void removeFromModel(java.lang.String parentID, DBItemsCache cache)
- Specified by:
removeFromModel
in interfaceAbstractInfo
-
-