|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.registry.common.CommonRegistryFinder
edu.vt.middleware.registry.manage.address.RegistryFinder
public final class RegistryFinder
RegistryFinder provides methods for doing registry searches
with entity beans.
| Field Summary | |
|---|---|
private static Log |
LOG
Log for this class |
| Constructor Summary | |
|---|---|
RegistryFinder(EntityManager em)
This creates a RegistryFinder with the supplied Entity Manager. |
|
| Method Summary | |
|---|---|
boolean |
addressExists(Long addrSeqno)
This returns whether the address with the supplied sequence number exists. |
boolean |
addressExists(Long uid,
AddressType addressType)
This returns whether an address with the supplied type exists for the supplied uid. |
boolean |
countryExists(Country country)
This returns whether the supplied country exists. |
boolean |
exactAddressExists(Address addr)
This returns whether the exact address exists for the supplied seqno. |
boolean |
exactPhoneNumberExists(PhoneNumber pn)
This returns whether the exact phone number exists for the supplied seqno. |
Address |
getAddress(Long addrSeqno)
This returns the Address for the corresponding address sequence number. |
Long |
getAddressUid(Long addrSeqno)
This returns the UID for a person with the corresponding address sequence number. |
Long |
getAddressUidByPersonUidAndType(Long uid,
AddressType addrType)
This returns the address sequence number for the supplied person uid and address type. |
PhoneNumber |
getPhoneNumber(Long phoneSeqno)
This returns the PhoneNumber for the corresponding phone sequence number. |
Long |
getPhoneUid(Long phoneSeqno)
This returns the UID for a person with the corresponding phone sequence number. |
Long |
getPhoneUidByPersonUidAndType(Long uid,
PhoneNumberType phoneType)
This returns the phone sequence number for the supplied person uid and phone type. |
boolean |
phoneNumberExists(Long phoneSeqno)
This returns whether the phone number with the supplied sequence number exists. |
boolean |
phoneNumberExists(Long uid,
Long addrSeqno,
PhoneNumberType phoneType)
This returns whether a phone number with the supplied type exists for the supplied uid. |
boolean |
stateProvExists(StateProv stateprov)
This returns whether the supplied stateprov exists. |
| Methods inherited from class edu.vt.middleware.registry.common.CommonRegistryFinder |
|---|
emailAccountExists, entitlementExists, flushAndRefresh, getAccountState, getDataTypes, getEntitlementData, getEntityManager, getGroup, getGroup, getPerson, getPerson, getPersonUid, getService, getService, getTicket, getTicket, getUserid, groupExists, guestIdExists, personExists, serviceExists, ticketExists |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Log LOG
| Constructor Detail |
|---|
public RegistryFinder(EntityManager em)
em - EntityManager| Method Detail |
|---|
public boolean addressExists(Long addrSeqno)
addrSeqno - Long
boolean
public boolean addressExists(Long uid,
AddressType addressType)
uid - LongaddressType - AddressType
booleanpublic boolean phoneNumberExists(Long phoneSeqno)
phoneSeqno - Long
boolean
public boolean phoneNumberExists(Long uid,
Long addrSeqno,
PhoneNumberType phoneType)
uid - LongaddrSeqno - LongphoneType - PhoneNumberType
booleanpublic boolean exactPhoneNumberExists(PhoneNumber pn)
pn - PhoneNumber
booleanpublic boolean exactAddressExists(Address addr)
addr - Address
booleanpublic Long getAddressUid(Long addrSeqno)
addrSeqno - Long
Longpublic Long getPhoneUid(Long phoneSeqno)
phoneSeqno - Long
Longpublic boolean stateProvExists(StateProv stateprov)
stateprov - StateProv
booleanpublic boolean countryExists(Country country)
country - Country
boolean
public Long getAddressUidByPersonUidAndType(Long uid,
AddressType addrType)
uid - Long the person's uidaddrType - AddressType
Long
public Long getPhoneUidByPersonUidAndType(Long uid,
PhoneNumberType phoneType)
uid - Long the person's uidphoneType - PhoneType
Long
public Address getAddress(Long addrSeqno)
throws NoResultFoundException
addrSeqno - Long
Long
NoResultFoundException - if Address cannot be found
public PhoneNumber getPhoneNumber(Long phoneSeqno)
throws NoResultFoundException
phoneSeqno - Long
Long
NoResultFoundException - if PhoneNumber cannot be found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||