转自http://www.cnblogs.com/flyoung2008/ 代理设计模式 定义:为其他对象提供一种代理以控制对这个对象的访问。 代理模式的结构如下图所示。 动态代理使用 java动态代理机制以巧妙的方式实现了代理模式的设计理念。 代理模式示例代码 public interface S ...
分类:
编程语言 时间:
2016-05-27 18:15:48
阅读次数:
212
MainActivitypublic class MainActivity extends ListActivity { // 访问内容提供者时需要的主机名称 public static final String authority = "com.bqt.contentprovider.person... ...
分类:
数据库 时间:
2016-05-27 18:14:08
阅读次数:
240
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-a ...
分类:
其他好文 时间:
2016-05-27 18:10:57
阅读次数:
200
导出时:引用 using Excel = Microsoft.Office.Interop.Excel; #region 读取excel //打开方法 public DataTable ExceltoDataSet(string path) { string strConn = "Provider= ...
示例代码: public static Map<String, Object> dtoToMap(Object obj, String pre, String las) { Map result = new HashMap(); Class clazz = obj.getClass(); Field ...
分类:
数据库 时间:
2016-05-27 16:36:17
阅读次数:
361
一.①Java文件中可以有多个定义class类但只能有一个publicclass类.②数据类型分为:引用数据类型(在声明时不会分配空间需通过new),基本数据类型.③Integer是包装类作用在于字符串与整形转换,具有自动装箱拆箱的功能.④"="赋值语句是将左边赋值给右边,再给字符赋值时可以使用字符..
分类:
其他好文 时间:
2016-05-27 15:02:38
阅读次数:
236
/**** * 复制单个文件 * @param oldPath String原文件路径 如:c:/fqf.txt * @param newPath String 复制后路径 如:f:/fqf.txt */ public void copyFile(String oldPath,String newP ...
分类:
其他好文 时间:
2016-05-27 14:36:43
阅读次数:
165
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o ...
分类:
其他好文 时间:
2016-05-27 14:32:53
阅读次数:
145
一、时间 1.1 使用Calendar/[?kæl?nd?]/类获取时间 1.1.1 常用方法 (1)public static Calendar getInstance(): 使用默认时区和语言环境获取一个基于当前时间的Calendar对象。 (2)public int get(int field ...
分类:
其他好文 时间:
2016-05-27 14:24:47
阅读次数:
155
public class JdbcUtil { private static ComboPooledDataSource dataSource =new ComboPooledDataSource(); public static ComboPooledDataSource getDataSourc ...
分类:
其他好文 时间:
2016-05-27 14:24:23
阅读次数:
361