You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by da...@apache.org on 2014/05/07 21:42:22 UTC
svn commit: r1593126 -
/db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/ForeignKeyConstraintDescriptor.java
Author: dag
Date: Wed May 7 19:42:21 2014
New Revision: 1593126
URL: http://svn.apache.org/r1593126
Log:
Fix typos and add some Javadoc and @Override tags
Modified:
db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/ForeignKeyConstraintDescriptor.java
Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/ForeignKeyConstraintDescriptor.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/ForeignKeyConstraintDescriptor.java?rev=1593126&r1=1593125&r2=1593126&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/ForeignKeyConstraintDescriptor.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/sql/dictionary/ForeignKeyConstraintDescriptor.java Wed May 7 19:42:21 2014
@@ -23,8 +23,8 @@ package org.apache.derby.iapi.sql.dictio
import org.apache.derby.catalog.UUID;
import org.apache.derby.iapi.error.StandardException;
-import org.apache.derby.shared.common.sanity.SanityManager;
import org.apache.derby.iapi.sql.StatementType;
+import org.apache.derby.shared.common.sanity.SanityManager;
/**
* A foreign key.
@@ -41,7 +41,7 @@ public class ForeignKeyConstraintDescrip
throws StandardException;
<li>public boolean isSelfReferencingFK()
throws StandardException;
- <ol>
+ </ol>
*/
// Implementation
@@ -63,6 +63,8 @@ public class ForeignKeyConstraintDescrip
* @param schemaDesc The SchemaDescriptor for the constraint
* @param referencedConstraintDescriptor is referenced constraint descriptor
* @param enforced is the constraint enforced?
+ * @param raDeleteRule The {@code ON DELETE} action rule
+ * @param raUpdateRule The {@code ON UPDATE} action rule
*/
protected ForeignKeyConstraintDescriptor(
DataDictionary dataDictionary,
@@ -103,6 +105,8 @@ public class ForeignKeyConstraintDescrip
* @param schemaDesc The SchemaDescriptor for the constraint
* @param referencedConstraintId is referenced constraint id
* @param enforced {@code true} if this constraint is enforced
+ * @param raDeleteRule The {@code ON DELETE} action rule
+ * @param raUpdateRule The {@code ON UPDATE} action rule
*/
ForeignKeyConstraintDescriptor(
DataDictionary dataDictionary,
@@ -131,7 +135,7 @@ public class ForeignKeyConstraintDescrip
/**
* Get the constraint that this FK references. Will
- * return either a primary key or a unique key constriant.
+ * return either a primary key or a unique key constraint.
*
* @return the constraint
*
@@ -216,6 +220,7 @@ public class ForeignKeyConstraintDescrip
* @return An identifier telling what type of descriptor it is
* (UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK).
*/
+ @Override
public int getConstraintType()
{
return DataDictionary.FOREIGNKEY_CONSTRAINT;
@@ -231,6 +236,7 @@ public class ForeignKeyConstraintDescrip
*
* @return true/false
*/
+ @Override
public boolean needsToFire(int stmtType, int[] modifiedCols)
{
/*