@Embeddable public class PrimaryType extends Object implements Comparable<PrimaryType>, Serializable
Modifier and Type | Field and Description |
---|---|
static PrimaryType |
NOT_ELIGIBLE |
static PrimaryType |
PRIMARY |
static PrimaryType |
SECONDARY |
Modifier | Constructor and Description |
---|---|
protected |
PrimaryType() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PrimaryType collType) |
boolean |
equals(Object o) |
static PrimaryType |
get(char code) |
static PrimaryType |
get(String code) |
static List<PrimaryType> |
getAllTypes() |
char |
getCharCode() |
String |
getCode() |
int |
hashCode()
Hibernate objects should not have any specific hashCode() implementation
since it should always give the same object for the same row anyways.
|
boolean |
isGreaterThan(PrimaryType collType) |
boolean |
isLessThan(PrimaryType collType) |
PrimaryType |
max(PrimaryType collType) |
PrimaryType |
min(PrimaryType collType) |
void |
setCharCode(char collType) |
String |
toString() |
public static final PrimaryType PRIMARY
public static final PrimaryType SECONDARY
public static final PrimaryType NOT_ELIGIBLE
public String getCode()
public char getCharCode()
public void setCharCode(char collType)
public int hashCode()
public int compareTo(PrimaryType collType)
compareTo
in interface Comparable<PrimaryType>
public boolean isLessThan(PrimaryType collType)
public boolean isGreaterThan(PrimaryType collType)
public PrimaryType max(PrimaryType collType)
public PrimaryType min(PrimaryType collType)
public static PrimaryType get(char code)
public static PrimaryType get(String code)
public static List<PrimaryType> getAllTypes()
Copyright © 2016. All rights reserved.