Class ContactInfo
- java.lang.Object
-
- info.ejava.examples.ejb.interceptor.bo.ContactInfo
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PhoneInfo
,PostalInfo
@Entity public abstract class ContactInfo extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull(groups=PrePersistCheck.class) Contact
contact
private int
id
private @NotNull(groups={PostNormalizedCheck.class,PrePersistCheck.class}) ContactRole
role
-
Constructor Summary
Constructors Modifier Constructor Description protected
ContactInfo()
ContactInfo(int id, Contact contact)
ContactInfo(Contact contact)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Contact
getContact()
abstract ContactType
getContactType()
int
getId()
ContactRole
getRole()
void
setContact(Contact contact)
void
setRole(ContactRole role)
-
-
-
Field Detail
-
id
private int id
-
contact
@NotNull(groups=PrePersistCheck.class) private @NotNull(groups=PrePersistCheck.class) Contact contact
-
role
@NotNull(groups={PostNormalizedCheck.class,PrePersistCheck.class}) private @NotNull(groups={PostNormalizedCheck.class,PrePersistCheck.class}) ContactRole role
-
-
Method Detail
-
getContactType
public abstract ContactType getContactType()
-
getId
public int getId()
-
getContact
public Contact getContact()
-
setContact
public void setContact(Contact contact)
-
getRole
public ContactRole getRole()
-
setRole
public void setRole(ContactRole role)
-
-