|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.ed.AbstractDataObject
edu.vt.middleware.ed.AbstractMutableDataObject
edu.vt.middleware.ed.PersonName
public class PersonName
Contains attributes that identify a person's name.
| Field Summary | |
|---|---|
private Boolean |
active
whether this name is active |
private static String |
ALUMNI_NAME_SOURCE
source for alumni names |
static String |
FIND_BY_FIRST_NAME
constant for named query |
static String |
FIND_BY_FIRST_NAME_AND_LAST_NAME
constant for named query |
static String |
FIND_BY_LAST_NAME
constant for named query |
static String |
FIND_BY_PERSON_UID
constant for named query |
private String |
firstName
first name |
private String |
lastName
last name |
private Boolean |
legal
whether this is the person's legal name |
private String |
middleName
middle name |
private Person |
person
person associated with name |
private Boolean |
preferred
whether this is the person's preferred name |
private String |
prefix
name prefix |
private static long |
serialVersionUID
serial version UID |
private String |
source
source of this name |
private String |
suffix
name suffix |
| Fields inherited from class edu.vt.middleware.ed.AbstractMutableDataObject |
|---|
modificationDate, modifiedBy |
| Fields inherited from class edu.vt.middleware.ed.AbstractDataObject |
|---|
createdBy, creationDate, uid |
| Constructor Summary | |
|---|---|
PersonName()
|
|
| Method Summary | |
|---|---|
void |
copyValues(PersonName dataObject)
Copies the non-relationship values from the supplied object into this object. |
String |
getFirstName()
This returns the first name. |
String |
getLastName()
This returns the last name. |
PersonNameType |
getManagedElementKey()
This returns the key for this managed element. |
String |
getMiddleName()
This returns the middle name. |
Person |
getPerson()
This returns the person associated with this name. |
PersonNameType |
getPersonNameType()
This returns the person name type. |
String |
getPrefix()
This returns the name prefix. |
protected String |
getSource()
This returns the name source. |
String |
getSuffix()
This returns the name suffix. |
Long |
getUid()
This returns the uid. |
protected Boolean |
isActive()
This returns whether this name is active. |
boolean |
isCongruent(PersonName other)
Determines whether the given object is congruent/equivalent to this object via equals comparison on properties. |
Boolean |
isLegal()
This returns whether this is the person's legal name. |
protected Boolean |
isPreferred()
This returns whether this is the person's preferred name. |
protected void |
setActive(Boolean b)
This sets whether this name is active. |
void |
setFirstName(String s)
This sets the first name. |
void |
setLastName(String s)
This sets the last name. |
void |
setLegal(Boolean b)
This sets whether this is the person's legal name. |
void |
setMiddleName(String s)
This sets the middle name. |
void |
setPerson(Person p)
This sets the person associated with this name. |
void |
setPersonNameType(PersonNameType type)
This sets the person name type. |
protected void |
setPreferred(Boolean b)
This sets whether this is the person's preferred name. |
void |
setPrefix(String s)
This sets the name prefix. |
protected void |
setSource(String s)
This sets the name source. |
void |
setSuffix(String s)
This sets the name suffix. |
String |
toString()
This returns a string representation of this name. |
static Set<String> |
toStrings(Set<PersonName> names)
Converts a set of PersonNames to a set of name strings. |
| Methods inherited from class edu.vt.middleware.ed.AbstractMutableDataObject |
|---|
getModificationDate, getModifiedBy, setModificationDate, setModifiedBy |
| Methods inherited from class edu.vt.middleware.ed.AbstractDataObject |
|---|
compareTo, getCreatedBy, getCreationDate, setCreatedBy, setCreationDate, setUid, validateProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.vt.middleware.ed.DataObject |
|---|
getCreatedBy, getCreationDate, setCreatedBy, setCreationDate, setUid |
| Field Detail |
|---|
public static final String FIND_BY_PERSON_UID
public static final String FIND_BY_FIRST_NAME
public static final String FIND_BY_LAST_NAME
public static final String FIND_BY_FIRST_NAME_AND_LAST_NAME
private static final String ALUMNI_NAME_SOURCE
private static final long serialVersionUID
private String prefix
private String firstName
private String middleName
private String lastName
private String suffix
private Boolean preferred
private Boolean active
private Boolean legal
private String source
private Person person
| Constructor Detail |
|---|
public PersonName()
| Method Detail |
|---|
public Long getUid()
getUid in interface DataObjectgetUid in class AbstractDataObjectLong - uidpublic PersonNameType getPersonNameType()
PersonNameTypepublic void setPersonNameType(PersonNameType type)
type - PersonNameTypepublic String getPrefix()
Stringpublic void setPrefix(String s)
s - Stringpublic String getFirstName()
Stringpublic void setFirstName(String s)
s - Stringpublic String getMiddleName()
Stringpublic void setMiddleName(String s)
s - Stringpublic String getLastName()
Stringpublic void setLastName(String s)
s - Stringpublic String getSuffix()
Stringpublic void setSuffix(String s)
s - Stringprotected Boolean isPreferred()
Booleanprotected void setPreferred(Boolean b)
b - Booleanprotected Boolean isActive()
Booleanprotected void setActive(Boolean b)
b - Booleanpublic Boolean isLegal()
Booleanpublic void setLegal(Boolean b)
b - Booleanprotected String getSource()
Stringprotected void setSource(String s)
s - Stringpublic Person getPerson()
Person with this namepublic void setPerson(Person p)
p - Person with this namepublic void copyValues(PersonName dataObject)
copyValues in interface CarbonCopy<PersonName>dataObject - Source to copy from.public boolean isCongruent(PersonName other)
isCongruent in interface Congruence<PersonName>other - The object to compare to this instance.
public String toString()
toString in class AbstractDataObjectStringpublic static Set<String> toStrings(Set<PersonName> names)
names - Set
Setpublic PersonNameType getManagedElementKey()
getManagedElementKey in interface ManagedSetElement<PersonNameType>K - key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||