文章列表
http://www.niufish.com/books/Pattern/
java设计模式
- 2006-01-04 16:36
- 浏览 973
- 评论(0)
DAO是Data Access Object数据访问接口,数据访问:故名思义就是与数据库打交道。夹在业务逻辑与数据库资源中间。
DAO的功能:
1. DAO用来封装Data Source的..就比如,Connection conn = DAOFacotry.createConnection()..
就可以把Driver. URL. username, passpword这一些放在DAO中
以后要更改数据库的类型.比如要把MSSQL换成Oracle的话..只需要更改DAOFacory里面的getConnection()里面的Driver.URL.之类的..
2. DAO也 ...
- 2006-01-04 09:21
- 浏览 3674
- 评论(0)
package curveprj;
import java.sql.*;
public class DBManager {
private static DBManager instance = null;
private Connection con=null;
private DBManager() {
try {
jbInit();
} catch (Exception ex) {
ex.printStackTrace();
}
}
public ...
- 2006-01-03 09:36
- 浏览 938
- 评论(0)
#include "stdio.h"
#include "iostream.h"
void main(){
struct curveHead{
char cg[4];
char comName[80];
char curveName[80];
//short sCurveNum;
//short sReservation;
short sh[2];
char dls[20][4];
//short sh[2];
//float fl[3];
//char m_cWellName[8 ...
- 2005-11-27 09:12
- 浏览 2069
- 评论(0)
http://www.iplab.cs.tsukuba.ac.jp/~liuxj/jdk1.2/zh/docs/guide/jni/spec/design.doc.html
http://www.dalianit.com/edu/55180.html
http://www.qqread.com/java/w120282060_2.html
http://www.staredu.net/36/127/33/5927.shtml
- 2005-11-24 11:02
- 浏览 1073
- 评论(0)
#include <jni.h>
#include <stdio.h>
#include <iostream.h>
#include "sovfuzz.h"
#include "stdafx.h"
#include "matlib.h"
int sol(int m,int n,double srh,double seh,double dup,double growth,double *r,double *ret){
int retcode ...
- 2005-11-24 10:59
- 浏览 1164
- 评论(0)
JCaiBird wrote:
都快把我搞傻了,都!~ 我试了所有的法子都搞不定~
//麻烦看看这段代码会输出什么
import java.io.*;
public class x{
public static String UnicodeToGb(String s) {
String ss = null;
try{
ss = new String(s.getBytes("UTF-8"),"GBK");
}catch(UnsupportedEncodingException e){
}
return ss;
}
public static void ...
- 2005-11-23 20:23
- 浏览 1197
- 评论(0)
import java.util.*;
import java.text.*;
public class FormatDate {
public static void main(String[] args) {
Date now = new Date();
DateFormat defaultFormat = DateFormat.getDateInstance();
DateFormat shortFormat = DateFormat.getDateInstance(DateFormat.SHORT);
DateFormat mediumF ...
- 2005-11-23 19:14
- 浏览 990
- 评论(0)
http://javaalmanac.com/egs/
almost all there with examples
Free, good, and official Java tutorial:
http://java.sun.com/docs/books/tutorial/
Thinking in Java 3rd Edition,中文版 + English version
http://java.galesoft.com/
Code Conventions for the JavaTM Programming Language
http://java.sun.com/docs/cod ...
- 2005-11-23 18:44
- 浏览 1026
- 评论(0)
All javaAPI with 例子 in 英文 and a lot more!!!
- 2005-11-23 18:36
- 浏览 1197
- 评论(0)