public class Unique extends Object implements Serializable
| Constructor and Description |
|---|
Unique(Entity entity,
List<String> fieldNames,
boolean subclass,
String description)
Constructor, which sets the associated entity and the list of fields as
the unique.
|
Unique(Entity entity,
String fieldName,
boolean subclass,
String description)
Constructor, which sets the associated entity and a single field as the
unique.
|
Unique(Unique u)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDescription() |
Entity |
getEntity()
Returns the associated entity.
|
Vector<Field> |
getFields()
Returns a list of all the fields that make up this unique.
|
int |
hashCode() |
boolean |
isSubclass() |
void |
setDescription(String description) |
void |
setEntity(Entity entity) |
void |
setSubclass(boolean subclass) |
String |
toString() |
public Unique(Entity entity, String fieldName, boolean subclass, String description)
entity - The entity this unique is associated with.field - The field that makes up this unique.public Unique(Unique u)
public Vector<Field> getFields() throws MolgenisModelException
MolgenisModelExceptionpublic Entity getEntity()
public boolean isSubclass()
public void setSubclass(boolean subclass)
public void setDescription(String description)
public String getDescription()
public void setEntity(Entity entity)
Copyright © 2015. All Rights Reserved.