Package com.softslate.commerce.daos.core
Interface DAOInterface
- All Known Subinterfaces:
AdministratorDAO
,AdministratorGatewayDAO
,AttributeDAO
,AttributeGatewayDAO
,BasicTaxRateDAO
,BasicTaxRateGatewayDAO
,CategoryDAO
,CategoryGatewayDAO
,CategorySettingDAO
,CountryDAO
,CountryGatewayDAO
,CustomerAddressDAO
,CustomerAddressGatewayDAO
,CustomerDAO
,CustomerGatewayDAO
,CustomerWishListDAO
,CustomerWishListGatewayDAO
,DiscountDAO
,DiscountGatewayDAO
,DiscountRangeDAO
,DiscountRangeGatewayDAO
,EmailDAO
,EmailGatewayDAO
,EmailOptOutDAO
,EmailOptOutGatewayDAO
,ManufacturerDAO
,ManufacturerGatewayDAO
,OptionDAO
,OptionGatewayDAO
,OrderDAO
,OrderDeliveryDAO
,OrderDeliveryGatewayDAO
,OrderDiscountDAO
,OrderDiscountGatewayDAO
,OrderGatewayDAO
,OrderItemAttributeDAO
,OrderItemAttributeGatewayDAO
,OrderItemDAO
,OrderItemGatewayDAO
,OrderSettingDAO
,OrderShippingRuleDAO
,OrderShippingRuleGatewayDAO
,PaymentDAO
,PaymentGatewayDAO
,ProductDAO
,ProductGatewayDAO
,ProductReviewDAO
,ProductReviewGatewayDAO
,ProductSettingDAO
,ProductSettingGatewayDAO
,RequestLogDAO
,RequestLogGatewayDAO
,RoleDAO
,RoleGatewayDAO
,SettingsDAO
,ShippingMethodDAO
,ShippingMethodGatewayDAO
,ShippingRateDAO
,ShippingRateGatewayDAO
,ShippingRuleDAO
,ShippingRuleGatewayDAO
,ShippingRuleRangeDAO
,ShippingRuleRangeGatewayDAO
,SKUDAO
,SKUGatewayDAO
,StateDAO
,StateGatewayDAO
,TemplateDAO
,TemplateGatewayDAO
- All Known Implementing Classes:
AdministratorDAOHibernate
,AdministratorGatewayDAOHibernate
,AttributeDAOHibernate
,AttributeGatewayDAOHibernate
,BaseAdminGatewayDAOHibernate
,BaseDAO
,BasicTaxRateDAOHibernate
,BasicTaxRateGatewayDAOHibernate
,CategoryDAOHibernate
,CategoryGatewayDAOHibernate
,CategorySettingDAOHibernate
,CountryDAOHibernate
,CountryGatewayDAOHibernate
,CustomerAddressDAOHibernate
,CustomerAddressGatewayDAOHibernate
,CustomerDAOHibernate
,CustomerGatewayDAOHibernate
,CustomerWishListDAOHibernate
,CustomerWishListGatewayDAOHibernate
,DiscountDAOHibernate
,DiscountGatewayDAOHibernate
,DiscountRangeDAOHibernate
,DiscountRangeGatewayDAOHibernate
,EmailDAOHibernate
,EmailGatewayDAOHibernate
,EmailOptOutDAOHibernate
,EmailOptOutGatewayDAOHibernate
,InstallerDAOBasic
,LiquibaseDAOImpl
,ManufacturerDAOHibernate
,ManufacturerGatewayDAOHibernate
,OptionDAOHibernate
,OptionGatewayDAOHibernate
,OrderDAOHibernate
,OrderDeliveryDAOHibernate
,OrderDeliveryGatewayDAOHibernate
,OrderDiscountDAOHibernate
,OrderDiscountGatewayDAOHibernate
,OrderGatewayDAOHibernate
,OrderItemAttributeDAOHibernate
,OrderItemAttributeGatewayDAOHibernate
,OrderItemDAOHibernate
,OrderItemGatewayDAOHibernate
,OrderSettingDAOHibernate
,OrderShippingRuleDAOHibernate
,OrderShippingRuleGatewayDAOHibernate
,PaymentDAOHibernate
,PaymentGatewayDAOHibernate
,ProductDAOHibernate
,ProductGatewayDAOHibernate
,ProductReviewDAOHibernate
,ProductReviewGatewayDAOHibernate
,ProductSettingDAOHibernate
,ProductSettingGatewayDAOHibernate
,RequestLogDAOHibernate
,RequestLogGatewayDAOHibernate
,RoleDAOHibernate
,RoleGatewayDAOHibernate
,SettingsDAOHibernate
,ShippingMethodDAOHibernate
,ShippingMethodGatewayDAOHibernate
,ShippingRateDAOHibernate
,ShippingRateGatewayDAOHibernate
,ShippingRuleDAOHibernate
,ShippingRuleGatewayDAOHibernate
,ShippingRuleRangeDAOHibernate
,ShippingRuleRangeGatewayDAOHibernate
,SKUDAOHibernate
,SKUGatewayDAOHibernate
,StateDAOHibernate
,StateGatewayDAOHibernate
,TemplateDAOHibernate
,TemplateGatewayDAOHibernate
,UpgradesDAOBasic
public interface DAOInterface
A parent interface for all of the other interfaces in the data access layer.
The methods provided allow implementations to communicate with other elements
of the application. In particular, retrieve settings (using
getSettings()
), retrieve database connections (using
getConnection()
), retrieve SQL statements (using
getSqlMap()
), and create other data access objects (using
getDaoFactory()
).
- Author:
- David Tobey
-
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteObject
(Object object, boolean commit) formatDateTime
(Date dateTime) Retrieves this factory's component settings.Retrieves this factory's application settings.Retrieves aConnection
to the application'sDataSource
.Retrieves the application'sDAOFactory
.Retrieves a utility object that provides useful methods for daos.Retrieves the application'sDataSource
.com.google.inject.Injector
Retrieves theInjector
previously set.Retrieves theSettings
previously set for this data access object.Retrieves aMap
of the SQL statements used by the application.void
initialize
(Map transferMap) Initializes this data access object by copying incoming parameters into its properties.insertObject
(Object object, boolean commit) loadAll()
loadAll
(org.hibernate.Filter filter) loadObject
(Object object) parseDateTime
(String dateTime) void
setAppComponents
(Properties appComponents) void
setAppSettings
(Properties appSettings) void
setConnection
(Connection connection) void
setDaoFactory
(DAOFactory daoFactory) void
setDAOUtils
(DAOUtils daoUtils) void
setDataSource
(DataSource dataSource) void
setInjector
(com.google.inject.Injector injector) Sets this object'sInjector
that can be used to create other objects and inject them with dependencies.void
setSettings
(Settings settings) void
updateObject
(Object object, boolean commit)
-
Method Details
-
initialize
Initializes this data access object by copying incoming parameters into its properties. This method is used byDAOFactory
after object creation to copy the application'sDAOFactory
andSettings
into the new object. ThesqlMap
anddataSource
properties are also copied from theDAOFactory
.- Parameters:
transferMap
- AMap
containing objects such as the application'sDAOFactory
andSettings
.- Throws:
Exception
-
getSettings
Settings getSettings()Retrieves theSettings
previously set for this data access object.- Returns:
- A
Settings
object that represents various settings for the system.
-
setSettings
-
getAppComponents
Properties getAppComponents()Retrieves this factory's component settings. The component settings identify which Java class implement the various Interfaces used by the system. -
setAppComponents
-
getAppSettings
Properties getAppSettings()Retrieves this factory's application settings. The current application settings for the system. This factory will pass the application settings to every DAO it creates. The application settings are settings for information unique to a given installation, such as the location of files on the server, as opposed to theSettingsBean
, which stores settings drawn from the database. -
setAppSettings
-
getConnection
Connection getConnection()Retrieves aConnection
to the application'sDataSource
.- Returns:
- A
Connection
to the application'sDataSource
.
-
setConnection
-
getDataSource
DataSource getDataSource()Retrieves the application'sDataSource
.- Returns:
- The application's
DataSource
.
-
setDataSource
-
getDaoFactory
DAOFactory getDaoFactory()Retrieves the application'sDAOFactory
.- Returns:
- The application's
DAOFactory
.
-
setDaoFactory
-
getSqlMap
Map getSqlMap()Retrieves aMap
of the SQL statements used by the application.- Returns:
- A
Map
of the SQL statements used by the application.
-
setSqlMap
-
getInjector
com.google.inject.Injector getInjector()Retrieves theInjector
previously set.- Returns:
- A
Injector
object that can be used to create other objects and inject them with dependencies.
-
setInjector
void setInjector(com.google.inject.Injector injector) Sets this object'sInjector
that can be used to create other objects and inject them with dependencies.- Parameters:
injector
- The currentInjector
for the system, which can be used to create other objects and inject them with dependencies.
-
getDAOUtils
DAOUtils getDAOUtils()Retrieves a utility object that provides useful methods for daos.- Returns:
- An implementation of DAOUtils.
-
setDAOUtils
-
loadObject
- Throws:
Exception
-
updateObject
- Throws:
Exception
-
deleteObject
- Throws:
Exception
-
insertObject
- Throws:
Exception
-
loadAll
- Throws:
Exception
-
loadAll
- Throws:
Exception
-
formatDateTime
-
parseDateTime
- Throws:
Exception
-