Class HSqlDbAgencyInterestsHandler
- java.lang.Object
-
- com.openindex.openestate.tool.agency.addons.contacts.db.DbAgencyInterestsHandlerImpl
-
- com.openindex.openestate.tool.agency.addons.contacts.db.hsql.HSqlDbAgencyInterestsHandler
-
- All Implemented Interfaces:
DbAgencyInterestsHandler
public class HSqlDbAgencyInterestsHandler extends DbAgencyInterestsHandlerImpl
HSqlDbAgencyInterestsHandler.- Author:
- Andreas Rudolph
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROC_REMOVE_INTERESTS
static String
PROC_REMOVE_INTERESTS_OFFERS
static String
PROC_SAVE_INTERESTS
static String
PROC_SAVE_INTERESTS_OFFERS
static String
VIEW_INTERESTS
static String
VIEW_INTERESTS_OFFERS
-
Constructor Summary
Constructors Constructor Description HSqlDbAgencyInterestsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]
getInterestIds(Connection c, DbAgencyInterest.Status status)
long[]
getInterestIdsForContact(Connection c, long[] contactEntryIds)
long[]
getInterestIdsForEstate(Connection c, long[] agencyObjectIds)
DbAgencyInterest[]
getInterests(Connection c, long[] ids)
DbAgencyInterest[]
getInterests(Connection c, DbAgencyInterest.Status status)
DbAgencyInterest[]
getInterestsForContact(Connection c, long[] contactEntryIds)
DbAgencyInterest[]
getInterestsForEstate(Connection c, long[] agencyObjectIds)
void
loadInterestOffers(Connection c, DbAgencyInterest[] interests)
void
removeInterestOffers(Connection c, long interestId, long[] agencyObjectIds)
void
removeInterests(Connection c, long[] ids)
void
saveInterest(Connection c, DbAgencyInterest interest)
void
saveInterestOffers(Connection c, DbAgencyInterestOffer[] offers)
-
Methods inherited from class com.openindex.openestate.tool.agency.addons.contacts.db.DbAgencyInterestsHandlerImpl
buildInterest, buildInterestOffer, getInterest, getInterestIds, getInterestIdsForContact, getInterestIdsForEstate, getInterests, getInterestsForContact, getInterestsForEstate, loadInterestOffers, removeInterest, removeInterestOffer, saveInterestOffer
-
-
-
-
Field Detail
-
VIEW_INTERESTS
public static final String VIEW_INTERESTS
- See Also:
- Constant Field Values
-
VIEW_INTERESTS_OFFERS
public static final String VIEW_INTERESTS_OFFERS
- See Also:
- Constant Field Values
-
PROC_REMOVE_INTERESTS
public static final String PROC_REMOVE_INTERESTS
- See Also:
- Constant Field Values
-
PROC_REMOVE_INTERESTS_OFFERS
public static final String PROC_REMOVE_INTERESTS_OFFERS
- See Also:
- Constant Field Values
-
PROC_SAVE_INTERESTS
public static final String PROC_SAVE_INTERESTS
- See Also:
- Constant Field Values
-
PROC_SAVE_INTERESTS_OFFERS
public static final String PROC_SAVE_INTERESTS_OFFERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInterests
public DbAgencyInterest[] getInterests(Connection c, long[] ids) throws SQLException
- Specified by:
getInterests
in interfaceDbAgencyInterestsHandler
- Specified by:
getInterests
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
getInterests
public DbAgencyInterest[] getInterests(Connection c, DbAgencyInterest.Status status) throws SQLException
- Specified by:
getInterests
in interfaceDbAgencyInterestsHandler
- Specified by:
getInterests
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
getInterestsForContact
public DbAgencyInterest[] getInterestsForContact(Connection c, long[] contactEntryIds) throws SQLException
- Specified by:
getInterestsForContact
in interfaceDbAgencyInterestsHandler
- Specified by:
getInterestsForContact
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
getInterestsForEstate
public DbAgencyInterest[] getInterestsForEstate(Connection c, long[] agencyObjectIds) throws SQLException
- Specified by:
getInterestsForEstate
in interfaceDbAgencyInterestsHandler
- Specified by:
getInterestsForEstate
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
getInterestIds
public long[] getInterestIds(Connection c, DbAgencyInterest.Status status) throws SQLException
- Specified by:
getInterestIds
in interfaceDbAgencyInterestsHandler
- Specified by:
getInterestIds
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
getInterestIdsForContact
public long[] getInterestIdsForContact(Connection c, long[] contactEntryIds) throws SQLException
- Specified by:
getInterestIdsForContact
in interfaceDbAgencyInterestsHandler
- Specified by:
getInterestIdsForContact
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
getInterestIdsForEstate
public long[] getInterestIdsForEstate(Connection c, long[] agencyObjectIds) throws SQLException
- Specified by:
getInterestIdsForEstate
in interfaceDbAgencyInterestsHandler
- Specified by:
getInterestIdsForEstate
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
loadInterestOffers
public void loadInterestOffers(Connection c, DbAgencyInterest[] interests) throws SQLException
- Specified by:
loadInterestOffers
in interfaceDbAgencyInterestsHandler
- Specified by:
loadInterestOffers
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
removeInterests
public void removeInterests(Connection c, long[] ids) throws SQLException
- Specified by:
removeInterests
in interfaceDbAgencyInterestsHandler
- Specified by:
removeInterests
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
removeInterestOffers
public void removeInterestOffers(Connection c, long interestId, long[] agencyObjectIds) throws SQLException
- Specified by:
removeInterestOffers
in interfaceDbAgencyInterestsHandler
- Specified by:
removeInterestOffers
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
saveInterest
public void saveInterest(Connection c, DbAgencyInterest interest) throws SQLException
- Specified by:
saveInterest
in interfaceDbAgencyInterestsHandler
- Specified by:
saveInterest
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
saveInterestOffers
public void saveInterestOffers(Connection c, DbAgencyInterestOffer[] offers) throws SQLException
- Specified by:
saveInterestOffers
in interfaceDbAgencyInterestsHandler
- Specified by:
saveInterestOffers
in classDbAgencyInterestsHandlerImpl
- Throws:
SQLException
-
-