Package org.openbravo.base.model
Class UniqueConstraint
- java.lang.Object
-
- org.openbravo.base.model.UniqueConstraint
-
public class UniqueConstraint extends Object
A UniqueConstraint defines for an entity a set of properties, which combined are unique for that entity.- Author:
- mtaal
-
-
Constructor Summary
Constructors Constructor Description UniqueConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addPropertyForColumn(String columnName)
Entity
getEntity()
String
getName()
List<Property>
getProperties()
boolean
isInvalid()
void
setEntity(Entity entity)
void
setInvalid(boolean invalid)
void
setName(String name)
-
-
-
Method Detail
-
addPropertyForColumn
protected void addPropertyForColumn(String columnName)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getEntity
public Entity getEntity()
-
setEntity
public void setEntity(Entity entity)
-
isInvalid
public boolean isInvalid()
-
setInvalid
public void setInvalid(boolean invalid)
-
-