Class ForeignKey
java.lang.Object
com.invirgance.convirgance.olap.sql.ForeignKey
Captures the connection between a source table and a target table.
- Author:
- jbanes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this ForeignKey to another first by reference, then by instance fields.Returns the String representing the keyReturns the target table associated with the foreignKeyint
hashCode()
Returns the hashCode for the ForeignKey object based on all of its instance fields.void
Sets the provided source table to the key.void
setSourceKey
(String sourceKey) Sets the provided String as the key for this ForeignKey object.void
Sets the provided target table to be associated with this foreignKey.
-
Constructor Details
-
ForeignKey
public ForeignKey()
-
-
Method Details
-
setSource
Sets the provided source table to the key.- Parameters:
source
- the source Table.
-
getSourceKey
Returns the String representing the key- Returns:
- the key String
-
setSourceKey
Sets the provided String as the key for this ForeignKey object.- Parameters:
sourceKey
- the String for the key.
-
getTarget
Returns the target table associated with the foreignKey- Returns:
- the target Table.
-
setTarget
Sets the provided target table to be associated with this foreignKey.- Parameters:
target
- the target table associated with the foreign key.
-
equals
Compares this ForeignKey to another first by reference, then by instance fields. -
hashCode
public int hashCode()Returns the hashCode for the ForeignKey object based on all of its instance fields.
-