12.18 java中的view,ibatis dao
Java内部类当初的设计目的应该是实现多重继承,后来发现内部类还带来了其他好处,如可以使用内部类包装一些函数,实现函数级别的权限控制等。
Java中,LIst.subList()等方法产生的是一个view,即不是传值,而仅是引用。似乎在java中除了primitive类,其他类都需new才能产生新对象。
iBatis DAO框架图
相关文档:
import java.util.Random;
/**
* 排序测试类
*
* 排序算法的分类如下:
* 1.插入排序(直接插入排序、折半插入排序、希尔排序);
* 2.交换排序(冒泡泡排序、快速排序);
* 3.选择排序(直接选择排序、堆排序);
* 4.归并排序;
* 5.基数排序。
&nbs ......
package com.xxx.yyy;
public class kkkEncode
{
public native static boolean encode(double loIn, double laIn, double[] point); //声明一个同库一样的方法
public native static boolean decode(double loIn, double laIn, double[] p ......
/*
* EncryptUtils.java
* Copyright (C) 2007-3-19 <JustinLei@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* ......
package org.lambdasoft.web.support;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;
import org.lambdasoft.web.Enviroment;
public class SessionSupport {
private SessionS ......
/*
* CookieSupport.java
* Copyright (C) 2007-3-19 <JustinLei@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version ......