com.liferay.portal.service.persistence
Class BasePersistence

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by com.liferay.portal.service.persistence.BasePersistence
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
AccountPersistenceImpl, AddressPersistenceImpl, AnnouncementsDeliveryPersistenceImpl, AnnouncementsEntryPersistenceImpl, AnnouncementsFlagPersistenceImpl, BlogsEntryPersistenceImpl, BlogsStatsUserPersistenceImpl, BookmarksEntryPersistenceImpl, BookmarksFolderPersistenceImpl, CalEventPersistenceImpl, ClassNamePersistenceImpl, CompanyPersistenceImpl, ContactPersistenceImpl, CounterPersistence, CountryPersistenceImpl, CyrusUserPersistence, CyrusVirtualPersistence, DLFileEntryPersistenceImpl, DLFileRankPersistenceImpl, DLFileShortcutPersistenceImpl, DLFileVersionPersistenceImpl, DLFolderPersistenceImpl, EmailAddressPersistenceImpl, ExpandoColumnPersistenceImpl, ExpandoRowPersistenceImpl, ExpandoTablePersistenceImpl, ExpandoValuePersistenceImpl, GroupPersistenceImpl, IGFolderPersistenceImpl, IGImagePersistenceImpl, ImagePersistenceImpl, JournalArticleImagePersistenceImpl, JournalArticlePersistenceImpl, JournalArticleResourcePersistenceImpl, JournalContentSearchPersistenceImpl, JournalFeedPersistenceImpl, JournalStructurePersistenceImpl, JournalTemplatePersistenceImpl, LayoutPersistenceImpl, LayoutSetPersistenceImpl, ListTypePersistenceImpl, MBBanPersistenceImpl, MBCategoryPersistenceImpl, MBDiscussionPersistenceImpl, MBMessageFlagPersistenceImpl, MBMessagePersistenceImpl, MBStatsUserPersistenceImpl, MBThreadPersistenceImpl, MembershipRequestPersistenceImpl, OrganizationPersistenceImpl, OrgGroupPermissionPersistenceImpl, OrgGroupRolePersistenceImpl, OrgLaborPersistenceImpl, PasswordPolicyPersistenceImpl, PasswordPolicyRelPersistenceImpl, PasswordTrackerPersistenceImpl, PermissionPersistenceImpl, PhonePersistenceImpl, PluginSettingPersistenceImpl, PollsChoicePersistenceImpl, PollsQuestionPersistenceImpl, PollsVotePersistenceImpl, PortletItemPersistenceImpl, PortletPersistenceImpl, PortletPreferencesPersistenceImpl, RatingsEntryPersistenceImpl, RatingsStatsPersistenceImpl, RegionPersistenceImpl, ReleasePersistenceImpl, ResourceCodePersistenceImpl, ResourcePersistenceImpl, RolePersistenceImpl, SCFrameworkVersionPersistenceImpl, SCLicensePersistenceImpl, SCProductEntryPersistenceImpl, SCProductScreenshotPersistenceImpl, SCProductVersionPersistenceImpl, ServiceComponentPersistenceImpl, ShoppingCartPersistenceImpl, ShoppingCategoryPersistenceImpl, ShoppingCouponPersistenceImpl, ShoppingItemFieldPersistenceImpl, ShoppingItemPersistenceImpl, ShoppingItemPricePersistenceImpl, ShoppingOrderItemPersistenceImpl, ShoppingOrderPersistenceImpl, SocialActivityPersistenceImpl, SocialRelationPersistenceImpl, SubscriptionPersistenceImpl, TagsAssetPersistenceImpl, TagsEntryPersistenceImpl, TagsPropertyPersistenceImpl, TagsSourcePersistenceImpl, TasksProposalPersistenceImpl, TasksReviewPersistenceImpl, UserGroupPersistenceImpl, UserGroupRolePersistenceImpl, UserIdMapperPersistenceImpl, UserPersistenceImpl, UserTrackerPathPersistenceImpl, UserTrackerPersistenceImpl, WebDAVPropsPersistenceImpl, WebsitePersistenceImpl, WikiNodePersistenceImpl, WikiPagePersistenceImpl, WikiPageResourcePersistenceImpl

public class BasePersistence
extends org.springframework.jdbc.core.support.JdbcDaoSupport

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
BasePersistence()
           
 
Method Summary
 void closeSession(org.hibernate.Session session)
           
protected  org.hibernate.dialect.Dialect getDialect()
           
 org.hibernate.SessionFactory getSessionFactory()
           
protected  org.hibernate.Session openSession()
           
protected  org.hibernate.Session openSession(org.hibernate.SessionFactory sessionFactory)
           
 void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
           
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, initTemplateConfig, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasePersistence

public BasePersistence()
Method Detail

getSessionFactory

public org.hibernate.SessionFactory getSessionFactory()

setSessionFactory

public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)

getDialect

protected org.hibernate.dialect.Dialect getDialect()

closeSession

public void closeSession(org.hibernate.Session session)

openSession

protected org.hibernate.Session openSession()
                                     throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

openSession

protected org.hibernate.Session openSession(org.hibernate.SessionFactory sessionFactory)
                                     throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException