1. works with Transactions
http://www.mysqlperformanceblog.com/2008/01/29/how-mysql-query-cache-works-with-transactions/ 写道
The result set can be retrieved from query cache (for statements both inside and outside of transactions) until there is a statement inside transactions which modifie ...
the difference between prototype property
and [[prototype]] which
constructs
the chain of prorotype
each object has a inner property called '[[prototype]]
', whose value is null or point to some object. This property is visible only for JS engine.(in firefox, this property can visited ...
2008-05-23
some thoughts of composite & visitor pattern
关键字: composite command visitor java pattern
At first, let's look the typical class structure diagram of composite pattern:
Composite pattern
is very suitable for Tree structure. The picture showed above defines a Interface Node and two sub concrete tree types : Leaf and Branch. Branch may contains sub branch and ...
- 17:03
- 浏览 (43)
- 评论 (0)
- 分类: design pattern
These contents are refered from a pdf file named 'best practices for web form design
'.
information
Layout
top aligned : for reduced completion times & familiar data input.
right aligned : when vertical screen space is a constraint.
left aligned : for unfamiliar, or advanced ...
- 16:29
- 浏览 (35)
- 评论 (0)
- 分类: web design
At first, lst's understand some technologies used in mysql transaction model:
1. Next-Key Locking
http://dev.mysql.com/doc/refman/5.0/en/innodb-next-key-locking.html 写道
InnoDB performs the row-level locking in such a way that when it searches or scans an index of a table, it sets shared or ex ...
Three jsp directives
1. the page
directive
first, refere the explaination of it in jsp specificiation:
the page directive defines a number of page dependent properties and communicates these to the JSP container.
this directive is so common that always can be see in the top o ...
- 20:13
- 浏览 (79)
- 评论 (0)
- 分类: java se&ee
in many j2ee applications, especially which developed by light-weight framework,such as struts, we can easily see the url pattern as follows :
写道
http://localhost:8080/app/module/action.do?id=x&
In contrast, the url pattern used by ruby on rails applications are totally different: ...
- 21:12
- 浏览 (55)
- 评论 (0)
- 分类: java se&ee
问题描述如下:
引用两个实体 Parent(P) 和 Child(C)之间是1:N的关系,现要求符合指定条件的P及所包 含的C
采用hibernate中的Criteria来实现此功能的代码如下:
Criteria criteria = this.getCriteria(Parent.class);
//连接关联子对象child,且指定了连接方式为左外连接
criteria.createAlias("children", "c", CriteriaSpecification.LEFT_JOIN));
//下面三行代码是用于获取总的记录数
criteria.setProjection ...
- 13:28
- 浏览 (213)
- 评论 (0)
- 分类: hibernate & spring
什么是序列化
java中的序列化(serialization)机制能够将一个实例对象的状态信息写入到一个字节流中,使其可以通过socket进行传输、或者持久化存储到数据库或文件系统中;然后在需要的时候,可以根据字节流中的信息来重构一个相同的对象。序列化机制在java中有着广泛的应用,EJB、RMI等技术都是以此为基础的。
正确使用序列化机制
一般而言,要使得一个类可以序列化,只需简单实现java.io.Serializable接口即可。该接口是一个标记式接口,它本身不包含任何内容,实现了该接口则表示这个类准备支持序列化的功能。如下例定义了类Person,并声明其可以序列化。
publi ...
- 21:48
- 浏览 (625)
- 评论 (0)
- 分类: java se&ee
Oracle 中有两种主要的索引机制:B-树索引(B-tree indexes) 和 位图索引(bitmap indexes),其它的一些索引,如位图连接索引(bitmap join index)、基于函数的索引(function-based indexes)、反转键索引(reverse key indexes)等,都是基于这两种索引的变体。本文主要介绍这两种主要的索引机制。
一 基础知识
1. 数据块(data bolck)
数据块是Oracle中管理数据文件中存储空间的单位,是数据库使用的I/O的最小单位。Oracle中所有的逻辑数据库结构,如表 ...
- 浏览: 2552 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
最新评论
-
对java中equals和hashCode ...
谢谢博主的详细解释. 不过有一个问题: 引用在Object类equals函数 ...
-- by rmn190 -
对java中equals和hashCode ...
明白了,谢谢
-- by NicholasBugs






评论排行榜