public class Unique extends Object implements PropertyConstraint
Constructor and Description |
---|
Unique()
Creates a default unique object that is disabled.
|
Unique(String identifier)
Creates a unique flag with the given identifier.
|
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier()
Returns the unique identifer.
|
boolean |
isEnabled()
Returns whether the unique constraint is enabled, the identifier is not
null.
|
public Unique()
public Unique(String identifier)
identifier
- the unique identifier. Unique constraints with the same
identifier share a unique context. null
means not
unique at all.public boolean isEnabled()
public String getIdentifier()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a