implements (RSS)

Design Patterns: Abstract Factory

The abstract factory pattern is that all forms of factory pattern in the most abstract and most of its general nature. Abstract factory pattern can provide an interface to the client, enabling the cli ...

CGlib dynamic agent (to undertake the above JDK dynamic proxy)

1.CGLib dynamic proxy First, import the development kit: cglib.nodep.jar and Junit.jar Implementations with the JDK or less the same for the convenience of everyone reading the full implementation of ...

Prawn with me to write network (2 days)

1, design the user-related entity class Points Rank categories: Knowledge Tip: @ GeneratedValue that is automatically selected from the jpa Identity field generating strategies; @ OneToOne (cascade = ...

JForum source code analysis notes

My development environment: JForum2.1.8 tomcat5.X JDK 1.6X Routines can not be refined in order to start. From the beginning web.xml web.xml includes a filter, a listener, and two servlet, not much co ...

Java programmer interview questions of 30 traps

To find a job interviews, have an interview there are ways to deal with the interview. Following some of the topics from me and my friend's painful interview experience, mention of these issues in ...

Design Patterns: Factory Method

/ ** * Factory method to create models belong to the class-based model is also known as multi-state factory mode. * Factory Method pattern is to define the meaning of an object factory interface to cr ...

bridge bridge mode

Hypothetical demand Are black or white English-speaking whites are Chinese-speaking whites are Chinese-speaking black English-speaking black As a general method of subclass the parent class could be p ...

spring 2.5.6 and hibernate3.2.2 Integration (3)

Recently looked at springside, learn a lot, from the ideological to the coding style, here re-nonsense look, thought this thing quite true, but not only realize unspeakable, a number of things you wan ...

spring 2.5.6 and hibernate3.2.2 integration (1)

Note the use of spring, this example from the Web, I do not know what the original was. . 1. Defining the Interface 2. The first implementation class The second implementation class 3. Configuration f ...

JAVA's role within the class

1, define in a class inside the class we are called inner classes. Second, the role of 1. Inside the implementation class is well hidden, that is encapsulation. General non-internal classes, is not al ...

EJB3 development using JBoss WS for the WebService interface

Recently in the development of EJB project, you need to. Net Section of WebService interface. JBossAS built JBossWS services that can improve the WebService development speed. And if yes EJB, you can ...

Java's the difference between the Override Overload

override is overwritten, corresponding to the inheritance characteristics of OO programming, meaning that in the sub-classes override parent class method; overload is overloaded, corresponding to the ...

A multi-threaded note

A direct successor to thread class, override the RUN method, when the call starts with the start (); package com.Thread; class MyThread extends Thread (/ / inherit Thread class, as the thread implemen ...

Hibernate use WebSphere Distributed Cache (DistributedMap) the realization of

Agreement In this paper, the realization of the environment is hibernate 3.3.1 WebSphere 6.1.0.21 Other versions should be able to have the same or similar path and the realization of the way (specifi ...

Decorator Design Pattern

The reason why this pattern of concern is that the recent interest io the java, so the Internet search data, and all the relevant information referred to the model, one can not understand God, ah, so ...

JBoss EJB 3.0 Chapter EJB pool and cache

JBoss EJB3.0 RC6-PFD http://www.jboss.org/jbossejb3/docs/reference/build/reference/en/html/index.html 1. Session Bean and MDB 1.1 Pooling Stateless bean oil, and an example of MDB pool. Standard equip ...

Hibernate DAO base class design

In small projects, in fact, the most basic operations are additions and deletions to the investigation, if we can do a good job here is basically 60 percent of the problem is resolved. So the question ...

Spring was registered in several ways Bean

Bean was registered in spring of the four methods, especially the third method, to put it simply: A: Method A (multi-in struts framework) BaseDispatchAction succession II: Method II to achieve BeanFac ...

Struts and Hibernate Integration Session and Transaction will be placed in Filter

HibernateSessionFactory modify file (this file is from the Hibernate help complete the move of our own): Add the following: private static final ThreadLocal trthreadLocal = new ThreadLocal ();// Servi ...

The third study spring2.5 Notebook: spring in support of the JDBC

In the DAO class, we have inherited from Spring's DAO, the code is as follows: wrote jdbcDaoSupport import java.util.List; import org.springframework.jdbc.core.support.JdbcDaoSupport; import com.s ...

hibernate support for the Chinese to sort

hibernate support for the Chinese to sort

Spring of database operations using JDBC Template

Spring provides a template class for three options: ■ JdbcTemplate-The most basic of Spring's JDBC templates, this class provides simple access to a database through JDBC and simple indexed-parame ...

Spring paging method in hibernate discussion Callback

Spring and Hibernate integration, the interface is very limited In particular the need for some custom changes to the data operation, Spring provides the update and save far unable to meet the complex ...

Hibernate annotation Detailed

1. CASCADE Cascade significance of property: Only "marked relations between the" cascade only property: OneToOne, OneToMany, ManyToOne, ManyToMany. Cascading refers to the implementation of ...

Prototype model (ProtoType)

Make a simple prototype model of the example: If you borrow in the library of the likes of their very advanced Java programming books, to see some knowledge points at the top think there is a strong s ...

Struts1.3.8 + JPA (Hibernate implementation) + Spring2.5 Integration (VII)

Service Layer Interface: Interface categories:

struts + spring + hibernate summary

struts + spring + hibernate summary 1. Myeclipse in order to load struts, spring, hibernate 2. Add filter Add WEN-INF/web.xml <filter> <filter-name> encodingfilter </ filter-name> &l ...

Org.directwebremoting package of DWR

Org.directwebremoting package structure AjaxFilter.java Two types of interface 1, certification, log, security 2, the delay AjaxFilterChain cooperation in general and org.directwebremoting.filter.Extr ...

DWR + Ext load data

First, at Ext directly using DWR 1, PoJO the Manager category 2, then directly call the DWR to obtain data (dwr.xml reference code behind) 3, where only one thing DWR, through the anonymous function w ...

struts2 + spring + hibernate pagination

Pagination 2EE system showed that modification dao layer, service layer, action layer, pagination two types of documents, code is as follows: dao layer interface: Java code 1. Package com.last999.im.n ...

Hibernate interceptor callback mechanism with the actual

Now I realize a use Interceptor interface implementation functions of audit log data, the so-called audit log data is to record some of the key operations in order to serve as the basis of basic busin ...

java

Five useful filter 1, so that browser does not cache the page filters import javax.servlet .*; import javax.servlet.http.HttpServletResponse; import java.io.IOException; / ** * For the Browser does no ...

What we all namespaces (namespace) deal with mechanisms to deal with the javascript?

Project needs, the requirements of the JS's namespace management, so the Internet looking for relevant information at the relevant forums mootools find a: Now what kind of U.S. approach to the JS ...

DWR filters and exception handling

Just modify dwr.xml: <dwr> <allow> <create javascript="UserService" creator="spring"> <param name="beanName" value="userService"> </ ...

yiwei project management and maintenance of Javascript

Namespace (namespace): A headache for the developers is the question how to prevent function name / class name and other people's conflicts, in an internal project team can be named among the sche ...

Hibernate Inteceptor

The end of the project stage, the client suddenly put forward a very troublesome but normal demand, the system records all changes must be carried out. Formats such as: 2004.1.1 12:30 Ikuya wind order ...

jboss ejb3 Message Driven Bean

Super Medium ejb hate. . . . . . . . . . . . . . . . . . . ================================================ To configure a Message Driven Bean in a different application server parameters are not the ...