public abstract class DAOFactory extends Object
Constructor and Description |
---|
DAOFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
closeDAO(AbstractDAO<?> dao)
Close the DAO
|
abstract BusinessDAO |
getBusinessDAO(boolean isCacheable)
Return a BusinessDAO
|
static DocumentBuilderFactory |
getDocumentBuilderFactory()
OWASP security
|
abstract HostDAO |
getHostDAO(boolean isCacheable)
Return a HostDAO
|
static DAOFactory |
getInstance() |
abstract LimitDAO |
getLimitDAO(boolean isCacheable)
Return a LimitDAO
|
abstract String |
getLimitRequest(String request,
int limit,
int offset) |
int |
getMaxConnections() |
abstract MultipleMonitorDAO |
getMultipleMonitorDAO(boolean isCacheable)
Return a MultipleMonitorDAO
|
abstract RuleDAO |
getRuleDAO(boolean isCacheable)
Return a RuleDAO
|
abstract TransferDAO |
getTransferDAO()
Return a TransferDAO
|
static void |
initialize() |
static void |
initialize(ConnectionFactory factory) |
static void |
setInstanceTestOnly(DAOFactory daoFactory)
Test only
|
public static void initialize()
public static void initialize(ConnectionFactory factory)
public static DAOFactory getInstance()
public static void setInstanceTestOnly(DAOFactory daoFactory)
daoFactory
- public static DocumentBuilderFactory getDocumentBuilderFactory()
DocumentBuilderFactory
readypublic static void closeDAO(AbstractDAO<?> dao)
dao
- public int getMaxConnections()
public abstract BusinessDAO getBusinessDAO(boolean isCacheable) throws DAOConnectionException
isCacheable
- DAOConnectionException
- if cannot create the DAOpublic abstract HostDAO getHostDAO(boolean isCacheable) throws DAOConnectionException
isCacheable
- DAOConnectionException
- if cannot create the DAOpublic abstract LimitDAO getLimitDAO(boolean isCacheable) throws DAOConnectionException
isCacheable
- DAOConnectionException
- if cannot create the DAOpublic abstract MultipleMonitorDAO getMultipleMonitorDAO(boolean isCacheable) throws DAOConnectionException
isCacheable
- DAOConnectionException
- if cannot create the DAOpublic abstract RuleDAO getRuleDAO(boolean isCacheable) throws DAOConnectionException
isCacheable
- DAOConnectionException
- if cannot create the DAOpublic abstract TransferDAO getTransferDAO() throws DAOConnectionException
DAOConnectionException
- if cannot create the DAOCopyright © 2009–2022 Waarp. All rights reserved.