|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.metadata.Constraint
public abstract class Constraint
Abstract base class for a constraint definition.
| Field Summary | |
|---|---|
static int |
MEMBER_NAME
The name for the class member that holds this constraint. |
| Constructor Summary | |
|---|---|
Constraint(java.lang.String schemaName,
boolean implicit)
Creates a new constraint. |
|
| Method Summary | |
|---|---|
abstract void |
check(Record obj)
Checks whether the constraint is fulfilled for the given object. |
java.lang.String |
getSchemaName()
Returns the constraint name within the database schema. |
boolean |
isImplicit()
Returns whether this constraint has been created implicit. |
abstract java.lang.String |
name(ClassDecl cd,
int variant)
Returns different names depending on variant for the code
generator. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MEMBER_NAME
| Constructor Detail |
|---|
public Constraint(java.lang.String schemaName,
boolean implicit)
schemaName - The constraint name within the database schema.implicit - Whether this constraint has been created implicit.| Method Detail |
|---|
public final java.lang.String getSchemaName()
public final boolean isImplicit()
public abstract void check(Record obj)
throws PObjConstraintException
object.
PObjConstraintException - when the constraint isn't fulfilled.
public abstract java.lang.String name(ClassDecl cd,
int variant)
variant for the code
generator.
java.lang.IllegalArgumentException - if variant is unknown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||