public class JoinConditionConstraint extends java.lang.Object implements Constraint
COMMA, CONSTRAINT, FOREIGNKEY, FOREIGNKEYSTRING, JOINCONDITIONCONSTRAINT, LEFTPARENTH, NOTNULLCONSTRAINT, NOTNULLSTRING, PRIMARYKEY, PRIMARYKEYSTRING, REFERENCESTRING, RIGHTPARENTH, SPACESTRING, UNIQUEKEY, UNIQUEKEYSTRING| Constructor and Description |
|---|
JoinConditionConstraint()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEntityReference()
Method to get referenced entity(parent table)
|
java.lang.String[] |
getKeys()
Method to get keys
|
java.lang.String |
getName()
Method to get constraint name
|
java.lang.String[] |
getReferencedKeys()
Method to get referenced key in parent table
|
int |
getType()
Method to get type
|
java.lang.String |
printString()
Method to print out a part sql command about joincondition.
|
void |
setEntityReference(java.lang.String referencedEntity)
Method to set referenced entity name
|
void |
setKeys(java.lang.String[] constraintKeys)
Method to set keys
|
void |
setName(java.lang.String constraintName)
Method to set constraint name
|
void |
setReferencedKeys(java.lang.String[] keyList)
Method to set up referenced key in parent table(referencedEntity)
|
public JoinConditionConstraint()
public int getType()
getType in interface Constraintpublic java.lang.String getName()
public java.lang.String[] getKeys()
public java.lang.String getEntityReference()
public java.lang.String[] getReferencedKeys()
public void setName(java.lang.String constraintName)
constraintName - Stringpublic void setKeys(java.lang.String[] constraintKeys)
constraintKeys - String[]public void setEntityReference(java.lang.String referencedEntity)
referencedEntity - Stringpublic void setReferencedKeys(java.lang.String[] keyList)
keyList - String[]public java.lang.String printString() throws UnWellFormedConstraintException
printString in interface ConstraintUnWellFormedConstraintException