Package be.gaudry.dao.edu
Class DAOFactory
java.lang.Object
be.gaudry.dao.edu.DAOFactory
- All Implemented Interfaces:
IEduDAO
,INotifier
,PropertyChangeListener
,EventListener
- Direct Known Subclasses:
DAOAdminFactory
,DerbyFactory
- Since:
- 1.0 Oct 13, 2008
- Author:
- Steph GAUDRY
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDAOString(String languageKey)
Uses Localized properties to get some strings.static IEduDAO
getLocaleString(String languageKey)
Uses Localized properties to get some strings.void
static void
registerMessageListener(Consumer<ProgressResult> listener)
Adds a listener that is interested in whether a new progress message is availablestatic void
removeMessageListener(Consumer<ProgressResult> listener)
Removes a listener that was interested in whether a new progress message is availablevoid
reportProgress(int infoPg)
void
reportProgress(int infoPg, Object[] result)
void
reportProgress(int infoPg, String infoStr)
void
reportProgress(String infoStr)
protected void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface be.gaudry.dao.edu.IEduDAO
getIConfigDao, getICourseDao, getInfos, getIPersonDao, getIPlanningDao, getISchoolDao
-
Field Details
-
instance
-
daoLanguageRB
- Since:
- 1.0.1-SNAPSHOT (Feb 19, 2009)
-
-
Constructor Details
-
DAOFactory
protected DAOFactory()
-
-
Method Details
-
getInstance
-
registerMessageListener
Adds a listener that is interested in whether a new progress message is available- Parameters:
listener
-- See Also:
removeMessageListener(Consumer)
-
removeMessageListener
Removes a listener that was interested in whether a new progress message is available- Parameters:
listener
-
-
reportProgress
- Specified by:
reportProgress
in interfaceINotifier
- Parameters:
infoStr
- Informations to display
-
reportProgress
- Specified by:
reportProgress
in interfaceINotifier
- Parameters:
infoPg
- PROGRESS_INFO for negative values, or progress percentageinfoStr
- Some additional informations
-
reportProgress
- Specified by:
reportProgress
in interfaceINotifier
- Parameters:
infoPg
- PROGRESS_INFO for negative values, or progress percentageresult
- Values to report
-
reportProgress
public void reportProgress(int infoPg)- Specified by:
reportProgress
in interfaceINotifier
- Parameters:
infoPg
- PROGRESS_INFO for negative values, or progress percentage
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
setLanguage
protected void setLanguage()- Since:
- 1.0.1-SNAPSHOT (Feb 19, 2009)
-
getDAOString
Uses Localized properties to get some strings.- Parameters:
languageKey
- key to access to the localized string- Returns:
- localized string or empty string if an error occurs (never returns null)
- Since:
- 1.0.1-SNAPSHOT (Feb 19, 2009)
-
getLocaleString
Description copied from interface:IEduDAO
Uses Localized properties to get some strings.- Specified by:
getLocaleString
in interfaceIEduDAO
- Parameters:
languageKey
- key to access to the localized string- Returns:
- localized string or empty string if an error occurs (never returns null)
-