Package org.intermine.metadata
Class PrimaryKey
- java.lang.Object
-
- org.intermine.metadata.PrimaryKey
-
public class PrimaryKey extends java.lang.ObjectClass representing a primary key as a list of field names
-
-
Constructor Summary
Constructors Constructor Description PrimaryKey(java.lang.String name, java.lang.String fields, ClassDescriptor cld)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ClassDescriptorgetClassDescriptor()Return the ClassDescriptor for class this key is defined forjava.util.Set<java.lang.String>getFieldNames()Return the Set of field namesjava.lang.StringgetName()Return the nameinthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
PrimaryKey
public PrimaryKey(java.lang.String name, java.lang.String fields, ClassDescriptor cld)Constructor- Parameters:
name- the name to use for the primary keyfields- a comma-delimited list of field namescld- the ClassDescriptor that this PrimaryKey refers to
-
-
Method Detail
-
getName
public java.lang.String getName()
Return the name- Returns:
- name of this primary key
-
getClassDescriptor
public ClassDescriptor getClassDescriptor()
Return the ClassDescriptor for class this key is defined for- Returns:
- the class descriptor
-
getFieldNames
public java.util.Set<java.lang.String> getFieldNames()
Return the Set of field names- Returns:
- the Set of field names
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-