public class WorksConstraint extends BaseConstraint
| Modifier and Type | Class and Description |
|---|---|
static class |
WorksConstraint.NameConstraint
Constraint to check that the naming of constraints doesn't mess up the
pattern matching.(that constraint $___Constraint$NameConstraint isn't a
problem)
|
| Constructor and Description |
|---|
WorksConstraint() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(Put p)
Check a
Put to ensure it is valid for the table. |
public void check(Put p)
ConstraintPut to ensure it is valid for the table. If the Put
is valid, then just return from the method. Otherwise, throw an
Exception specifying what happened. This Exception is
propagated back to the client so you can see what caused the Put to
fail.p - Put to check