I. Overview
Android provides a LRUCache class that can be easily used to implement LRU algorithm caching. Java provides LINKEDHASHMAP, you can use this class is very convenient to implement LRU algorithm, Java Lrulinkedhashmap is directly inherited
1, outer-join Keywords (many-to-one)
The Outer-join keyword has 3 values, respectively, True,false,auto, and Auto is the default.
True: Uses an outer join to crawl the associated content, which means that when using load (Orderlineitem.class, "id")
1, outer-join Keywords (many-to-one)
The Outer-join keyword has 3 values, respectively, True,false,auto, and Auto is the default.
True: Uses an outer join to crawl the associated content, which means that when using load (Orderlineitem.class, "id"),
Filter chain definition:
[Html].../Pages/User/create. do * = perms [User: create]...
.../Pages/User/create. do * = perms [User: create]...The meaning of this configuration is: The Request Path such as/pages/User/create. do * requires authentication
Two classes are frequently used in the faces API. One is facescontext and the other is externalcontext. First, we will explain how to use facescontext.
For each JSF request, the facesservlet object obtains a javax. Faces. context.An instance of the
On XT, You can preset an entry template (entrytemplate) to control the security and attributes of uploaded documents in templated mode. Entrytemplate itself can be associated with folder (one folder can be associated with multiple entrytemplates ),
The ant extension task throws the stackoverflowerror exception. When the inherited task performs the extension task, it uses the LOG method in the project instance of the parent class. At the same time, it uses other output stream instances to
Dom4j is a Java xml api, similar to JDOM, used to read and write XML files. It features excellent performance, powerful functionality, and ease of use.
Jar package: dom4j-1.6.1.jar
XML file to be parsed: people. xml
XML Code
First,
/*** Change the map structure to list and change the list to map structure
* An object is an arbitrary object.* @ Author liutianfang* @ Version 2011-8-16 01:16:11 pm*/Public class mapobjectutil {/*** Change the data structure of the object type to
Hashmap sorting
1. sort by key
For map sorting in Java, there is a Sort map, such as treemap. For this map, you can only sort by key first, and then sort by put and remove, performance may be compromised.
In this solution, hashmap is used for
From http://blog.csdn.net/shuangde800
Cognition Combination Mode
In the previous article, we can use an iterator to traverse a set (array, arraylist, vector, hashtable, etc ).
Suppose there is such a collection structure I: There is a menu in the
ArticleDirectory
Create coroutine
Coroutine status
Concept
The concept of coroutine was Melvin at the earliest.Conway proposed in 1963 is the concept of concurrent computing. It refers to two sub-processes that work together to
Visitor Definition
Operations on objects in an object group. This allows you to define new operations on these objects without changing the objects themselves.
In Java, the visitor mode separates elements in the collection structure from the
Backup a useful tool class. typeutilIts typetostring (string scope, object OBJ) method adopts the reflect mechanism of Java to print the content of any object.This is very useful for debugging programs.Usage:If you have an object (such as
Axiom
Axis Object Model (axiom) is an XML object model designed to improve memory usage and performance during XML processing, based on pull parsing.
Pull Parsing is based on Stax (streaming API for XML). Pull Parsing is a recent trend in XML
6.6.4 multi-to-Multi- ing
Students and teachers are many-to-many relationships. One student has multiple teachers and one teacher teaches multiple students. Multiple-to-multiple mappings use the ing of intermediate table connections
Policy. The
Traverse hashmap
Hashmap attmap;
Iterator I = attmap. entryset (). iterator ();
While (I. hasnext ()){Object o = I. Next ();String key = O. tostring ();// You can traverse the key value of the hashmap.
}
Of course, you can also traverse map.
Hibernate provides a powerful query system. You can use Hibernate's HQL query, conditional query, or even native SQL query statements. The powerful query statements configured by Hibernate during HQL query. HQL is consciously designed to be fully
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.