Source Taste: Hibernate/JPA: AbstractEntityManagerImpl
来源:互联网 发布:淘宝售前客服用语大全 编辑:程序博客网 时间:2024/06/08 14:59
PART 1: static clause(static block)
static {entityManagerSpecificProperties.add( AvailableSettings.LOCK_SCOPE );entityManagerSpecificProperties.add( AvailableSettings.LOCK_TIMEOUT );entityManagerSpecificProperties.add( AvailableSettings.FLUSH_MODE );entityManagerSpecificProperties.add( AvailableSettings.SHARED_CACHE_RETRIEVE_MODE );entityManagerSpecificProperties.add( AvailableSettings.SHARED_CACHE_STORE_MODE );entityManagerSpecificProperties.add( QueryHints.SPEC_HINT_TIMEOUT );}Quoted from <Thinking in Java>: This code, like other static initializations, is executed only once: the first time you make an object of that class or the first time you access a static member of that class(even if you never make an object of that class).
PART 2: A Bunch of 'private static class' in class AbstractEntityManagerImpl
NOTE: In java, static class is for inner class ONLY!
- Source Taste: Hibernate/JPA: AbstractEntityManagerImpl
- Source Taste: Hibernate/JPA: StatefulPersistenceContext
- Source Taste: Hibernate/JPA: PersistenceContextType & PersistenceUnitTransactionType
- Source Taste: Hibernate/JPA: AbstractSessionImpl & SessionImpl
- Source Taste: JPA: InheritanceType
- org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java
- Source Taste: Spring DefaultListableBeanFactory
- Source Taste: Java ThreadLocal
- Source Taste: Activiti: StartProcessInstanceClickListener
- Source Taste: Struts 2 ActionContext
- Source Taste: Struts 2: ValueStack
- Source Taste: Struts 2:ModelDrivenInterceptor
- Source Taste:Command Pattern in Activiti
- Source Taste: Spring Data: Redis: JdkSerializationRedisSerializer
- Hibernate+JPA
- Hibernate+JPA
- Hibernate JPA
- hibernate jpa
- eclipse juno jee 不能新建JSP、没有JSP编辑器
- 倾情奉献ios5.0编译ffmpeg,真机ok!
- java 随机 获取 汉字
- Linux的completions同步机制
- Jquery EasyUI学习(一)之dialog对话框的学习
- Source Taste: Hibernate/JPA: AbstractEntityManagerImpl
- sql池代码搜集
- jQuery核心库引用google的地址外部JS文件
- 关于android收不到开机广播
- JSTL标签_详解
- hibernate事务
- Apache软件基金会项目介绍
- 重新解压打包android 根文件系统 ramdisk.img
- The Phantom of the Opera-3、Christine Daae