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) Contactcontactprivate intidprivate @NotNull(groups={PostNormalizedCheck.class,PrePersistCheck.class}) ContactRolerole
-
Constructor Summary
Constructors Modifier Constructor Description protectedContactInfo()ContactInfo(int id, Contact contact)ContactInfo(Contact contact)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ContactgetContact()abstract ContactTypegetContactType()intgetId()ContactRolegetRole()voidsetContact(Contact contact)voidsetRole(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)
-
-