當前位置:ag真人国际官网-ag旗舰厅官方网站 » 操作系統 » 安卓詞典源碼

安卓詞典源碼-ag真人国际官网

發布時間: 2024-07-12 09:48:13

ⅰ 用c 編寫小型英漢詞典

點擊鏈接下載詞典資料庫,並將其命名為dictionary.txt。注意,請用c 編譯

#include

#include

#include

#include

#include

using namespace std;

int w=0;

char e[9999][999],c[9999][999]; //用兩個數組從文件中讀入英文和漢譯

int binary_seareh(char p[999]);

int main()

{

int i,n,m,j,k,t;

int flag; //標記大小寫

char s[99],ss[99];

printf("############################## ");

printf(" ");

printf("----歡迎來到迷你英漢詞典---- "); //歡迎界面

printf(" ");

printf("############################## ");

file *fp;

fp=fopen("dictionary.txt","r");//打開文件

if(fp==null)

{

printf("資料庫存在問題,請檢查資料庫"); //文件打開問題處理

exit(0);

}

else

{

while(!feof(fp))

{

fscanf(fp,"%s%s",e[w],c[w]); //把數據讀入到數組里保存

w ;

}

fclose(fp);

}

printf(" ");

printf("輸入0000即可退出詞典 ");

printf(" ");

while(1)

{

flag=1;

printf("<<請輸入你想查找的英文單詞>> ");

printf(" ");

cin>>s;//輸入要查找的單詞

int x=0,m=-1;

while(s[x]!='')

{

if(s[x]!=' '&&m!=-1)

{

s[m]=s[x];

m ;

}

else if(s[x]==' '&&m==-1)//刪除空格

{

m=x;

}

x ;

}

if(m!=-1)

{

s[m]='';

}

t=strlen(s);

for(i=0;i

{

if(s[i]>='a'&&s[i]<='z') //大寫轉小寫

{

s[i] =32;

flag=0;

}

}

if(strcmp(s,"0000")==0) //退出判斷

{

break;

}

else

{

i=binary_seareh(s); //二分查找目標單詞

if(i==0)

{

printf("抱歉,資料庫里沒有該單詞,請前往資料庫添加! ");

printf(" ");

}

else

{

if(flag==0)

{

printf(" ");

printf("這個單詞應該是 '%s' : %s",s,c[i]);

printf(" "); //輸入大寫時轉換成小寫輸出提示信息

}

else

{

printf(" ");

printf(" '%s' is %s ",s,c[i]);

printf(" "); //輸入正常

}

printf(" ");

}

}

}

printf("再見! ");

}

/*************************************************************

功能描述;對輸入進來的單詞進行二分查找。

輸入參數:p 要查找的單詞

返 回 值:0

其他說明:無

*************************************************************/

int binary_seareh(char p[999])

{

int low=0,mid,high=w-1;

while(low<=high)

{

mid=(low high)/2;

if(strcmp(e[mid],p)==0) //利用strcmp函數對輸入進來的單詞與文件中單詞比對

{

return mid;

}

if(strcmp(e[mid],p)>0)

{

high=mid-1;

}

else

{

low=mid 1;

}

}

return 0;

}

ⅱ 簡易電子詞典 無需資料庫 用map添加單詞及含義的 java源代碼

public class test4 {
static map map = new treemap();
static {
map.put("watermelon", "西瓜");
map.put("banana", "香蕉");
map.put("strawberry", "草莓");
map.put("apple", "蘋果");
}
public static void main(string[] args) {
system.out.println("請輸入單詞");
scanner sc = new scanner(system.in);

while (sc.hasnext()) {
string str1 = sc.nextline();
if(str1.equals("退出")){
return;
}
else if (map.containskey(str1)) {
system.out.println(map.get(str1));

} else{
system.out.println("次單詞為新詞,添加意思");
scanner sc1 = new scanner(system.in);
string str2=sc1.nextline();
map.put(str1, str2);
system.out.println("添加成功。");
}
}
}

}

ⅲ 用c 設計一個小型的英漢詞典

字典最快速的實現方法是trie tree。
這個樹是專門用來實現字典的。但是trie tree的刪除操作比較麻煩。用二叉查找樹可以實現,速度也可以很快。avl tree只不過是平衡的二叉樹,在字典這個應用上沒有客觀的速度提升,因為字典不會產生極端化的二叉樹(鏈表)。
下面是我的二叉查找樹的代碼。二叉查找樹的優點是實現容易,而且它的inorder traverse既是按照字母順序的輸出。
//binary search tree, not self-balancing

//by qingxing zhang, dec 28,2009. prep for google interview

#include
using namespace std;

struct bst
{
int data;
bst *left;
bst *right;
};

//runtime: o(logn) on average, o(n) worst case
bool search(bst *&root, int key)//return false if the key doesn't exist
{
if(root==null)
return false;
if(key < root->data)
return search(root->left,key);
else if(key > root->data)
return search(root->right,key);
else
return true;
}

//runtime: o(logn)on average, o(n) worst case
bool insert(bst *&root, int key)//return false if the key already exists
{
if(root==null)
{
bst *node = new bst;
node->data = key;
node->left = node->right = null;
root = node;
return true;
}
else if(key < root->data)
return insert(root->left,key);
else if(key > root->data)
return insert(root->right,key);
else
return false;
}

//runtime:o(logn) on average, o(n) worst case
bool remove(bst *&root,int key)//return false if the key doesn't exist.
{
if(root==null)//no such key
return false;
else if(key < root->data)
return remove(root->left,key);
else if(key > root->data)
return remove(root->right,key);
else//node found
{
if((root->left==null)&&(root->right==null))//no child(leaf node)
{
bst *tmp = root;
root = null;
delete tmp;
}
else if((root->left==null)||(root->right==null))//one child
{
bst *tmp = root;
if(root->left==null)
root = root->right;
else
root = root->left;
delete tmp;
}
else//two children:replace node value with inorder successor and delete that node
{
bst *tmp = root->right;
while(tmp->left!=null)
tmp = tmp->left;
int tmpdata = tmp->data;
remove(root,tmpdata);
root->data = tmpdata;
}
return true;
}
}
//runtime:o(n)
void inorder(bst *&node)
{
if(node!=null)
{
inorder(node->left);
cout << node->data << " ";
inorder(node->right);
}
}
//runtime:o(n)
void preorder(bst *&node)
{
if(node!=null)
{
cout << node->data << " ";
preorder(node->left);
preorder(node->right);
}
}
//runtime:o(n)
void postorder(bst *&node)
{
if(node!=null)
{
postorder(node->left);
postorder(node->right);
cout << node->data << " ";
}
}

int main()
{
bool b;
bst *root = null;
b = insert(root,1);
b = insert(root,3);
b = insert(root,7);
b = insert(root,5);
b = insert(root,77);
b = insert(root,10);
b = insert(root,4);
b = insert(root,13);

//inorder
cout << "in-order:";
inorder(root);
cout << endl;
//preorder
cout << "pre-order:";
preorder(root);
cout << endl;
//postorder
cout << "post-order:";
postorder(root);
cout << endl;
// search for 7
if(search(root,7))
cout << "7 found!" << endl;
else
cout << "7 doesn't exist!" << endl;

b = remove(root,7);
cout << "----------------" << endl;

//inorder
cout << "in-order:";
inorder(root);
cout << endl;
//preorder
cout << "pre-order:";
preorder(root);
cout << endl;
//postorder
cout << "post-order:";
postorder(root);
cout << endl;

if(search(root,7))
cout << "7 found!" << endl;
else
cout << "7 doesn't exist!" << endl;

return 0;
}

ⅳ java編程全能詞典的目 錄

第 1章 為什麼說《java編程全能詞典》是編程開發人員的必備工具 1
1.1 海量編程資源庫 2
1.1.1 超容量技術資源庫 2
1.1.2 全方位視頻資源庫 2
1.1.3 豐富的實例資源庫 3
1.1.4 多行業項目資源庫 4
1.1.5 實際應用方案資源庫 5
1.1.6 精美的界面素材資源庫 5
1.1.7 詳盡的源碼資源庫 6
1.1.8 多功能工具資源庫 6
1.2 《java編程全能詞典》適合各類人員使用 6
1.3 高效查詢 智能檢索 7
1.4 多種詞典 協助編程 8
1.5 享有多種方式的升級與售後服務 9
1.5.1 享受全方位服務 9
1.5.2 提供多種升級方式 10
第 2章 怎樣快速使用《java編程全能詞典》 11
2.1 如何啟動《java編程全能詞典》 11
2.1.1 如何啟動主程序 11
2.1.2 如何啟動浮動窗口 12
2.2 初識《java編程全能詞典》程序界面 13
2.2.1 認識主導航區 13
2.2.2 了解功能導航區 14
2.2.3 了解內容導航區 15
2.2.4 了解內容顯示設置區 18
2.3 特色功能快速使用 22
2.3.1 分類管理個人資源 22
2.3.2 編程資源查詢 27
2.3.3 浮動窗口查詢 30
2.3.4 收藏重要文檔 31
2.3.5 記錄學習心得 32
2.3.6 為文檔設置書簽 33
2.3.7 切換內容顯示區 34
第 3章 如何在「開發」使用模式中學習和使用編程資源 35
3.1 如何分類管理個人編程資源 36
3.2 學習或瀏覽編程技術資源 37
3.3 如何學習瀏覽應用實例資源 45
3.4 如何學習瀏覽開發項目資源 50
3.5 如何學習瀏覽應用方案資源 52
3.6 觀看入門及開發視頻資源 59
3.6.1 程序入門學習錄像 59
3.6.2 項目開發視頻錄像 60
3.7 如何瀏覽及使用界面素材資源 61
3.7.1 「界面中心」素材預覽效果 62
3.7.2 了解「界面中心」素材內容 64
3.7.3 通過目錄導航瀏覽圖片 66
3.8 根據實際需要使用「開發」模式 68
3.8.1 查詢編程資源 68
3.8.2 學習編程技術 69
3.8.3 管理我的代碼 70
第 4章 使用「入門」模式進行階段式學習 強化訓練 72
4.1 分階段學習編程技術 72
4.1.1 從零開始 72
4.1.2 進階提高 74
4.1.3 中級開發 75
4.1.4 高級開發 76
4.2 鞏固提高開發技能 76
4.2.1 入門訓練 76
4.2.2 進階訓練 78
4.2.3 中級訓練 79
4.2.4 高級訓練 79
4.3 不同水平的編程人員如何使用「入門」模式 80
4.3.1 零基礎編程人員學習方法 80
4.3.2 初學者編程人員使用方法 80
4.3.3 中級開發人員使用方法 81
第 5章 如何使用「應用」模式的8個版塊實現高效開發 82
5.1 利用目錄快速學習和檢索編程技術 83
5.2 高效查詢與智能檢索編程技術 86
5.2.1 通過多種方式深層次查詢編程技術 86
5.2.2 通過單個字母(關鍵字)智能檢索編程技術 91
5.3 有效利用源碼實現選擇性下載 92
5.4 計算機(專業)英語速查 94
5.4.1 通過「搜索」查詢單詞解釋 94
5.4.2 將頻繁使用的英語單詞設置為標簽 95
5.5 使用多種輔助詞典協助編程 96
5.5.1 sql詞典 96
5.5.2 sql資料庫技術 97
5.5.3 uml詞典 98
5.5.4 軟體工程詞典 99
5.5.5 程序測試詞典 99
5.5.6 編碼規范詞典 100
5.5.7 術語詞典 101
5.6 藉助各種實用工具快速提高開發效率 101
5.7 有效通過小工具解決實際問題 103
5.8 不同人群如何使用「應用」模式進行快速、高效的開發 103
5.8.1 高效查詢與檢索海量編程資源 103
5.8.2 利用英語詞典及各種輔助詞典有效解決實際開發問題 104
5.8.3 藉助各種實用工具實現高效開發 107
第 6章 字元串 108
6.1 charat方法 108
6.2 compareto方法 108
6.3 comparetoignorecase方法 109
6.4 concat方法 110
6.5 contains方法 110
6.6 valueof方法 111
6.7 endswith方法 112
6.8 equals方法 112
6.9 equalsignorecase方法 113
6.10 format方法 113
6.11 getbytes方法 115
6.12 indexof方法 116
6.13 isempty方法 118
6.14 lastindexof方法 118
6.15 length方法 120
6.16 replace方法 121
6.17 replaceall方法 122
6.18 replacefirst方法 122
6.19 split方法 123
6.20 startswith方法 124
6.21 substring方法 125
6.22 tochararray方法 126
6.23 tolowercase方法 127
6.24 touppercase方法 127
6.25 trim方法 127
6.26 valueof方法 128
第 7章 集合類 132
7.1 list介面 132
7.1.1 add方法 132
7.1.2 addall方法 133
7.1.3 clear方法 134
7.1.4 contains方法 135
7.1.5 containsall方法 136
7.1.6 equals方法 136
7.1.7 get方法 137
7.1.8 set方法 137
7.1.9 hashcode方法 138
7.1.10 indexof方法 139
7.1.11 lastindexof方法 140
7.1.12 isempty方法 140
7.1.13 iterator方法 141
7.1.14 remove方法 141
7.1.15 removeall方法 143
7.1.16 retainall方法 144
7.1.17 size方法 145
7.1.18 sublist方法 145
7.1.19 toarray方法 146
7.2 map介面 148
7.2.1 clear方法 148
7.2.2 containskey方法 149
7.2.3 containsvalue方法 149
7.2.4 equals方法 150
7.2.5 get方法 151
7.2.6 isempty方法 152
7.2.7 keyset方法 152
7.2.8 put方法 153
7.2.9 putall方法 154
7.2.10 remove方法 155
7.2.11 size方法 156
7.2.12 values方法 156
7.3 set介面 157
7.3.1 add方法 157
7.3.2 addall方法 158
7.3.3 clear方法 159
7.3.4 contains方法 159
7.3.5 containsall方法 160
7.3.6 equals方法 160
7.3.7 isempty方法 161
7.3.8 iterator方法 162
7.3.9 remove方法 163
7.3.10 removeall方法 163
7.3.11 retainall方法 164
7.3.12 size方法 165
7.3.13 toarray方法 166
第 8章 資料庫編程 168
8.1 drivermanager類 168
8.1.1 getconnection方法 168
8.1.2 setlogintimeout方法 170
8.2 connection介面 171
8.2.1 常量 171
8.2.2 createstatement方法 171
8.2.3 preparestatement方法 172
8.2.4 setreadonly方法 172
8.2.5 isreadonly方法 173
8.2.6 setautocommit方法 173
8.2.7 getautocommit方法 174
8.2.8 setsavepoint方法 174
8.2.9 releasesavepoint方法 175
8.2.10 settransactionisolation方法 175
8.2.11 gettransactionisolation方法 176
8.2.12 commit方法 176
8.2.13 rollback方法 177
8.2.14 close方法 177
8.2.15 isclosed方法 178
8.3 statement介面 178
8.3.1 常量 178
8.3.2 execute方法 179
8.3.3 executeupdate方法 179
8.3.4 executequery方法 180
8.3.5 getconnection方法 181
8.3.6 setmaxrows方法 181
8.3.7 getmaxrows方法 182
8.3.8 close方法 182
8.3.9 isclosed方法 183
8.4 preparedstatement介面 183
8.4.1 execute方法 183
8.4.2 executequery方法 184
8.4.3 executeupdate方法 184
8.4.4 setboolean方法 185
8.4.5 setbyte方法 185
8.4.6 setbytes方法 186
8.4.7 setdate方法 187
8.4.8 settime方法 187
8.4.9 settimestamp方法 188
8.4.10 setdouble方法 189
8.4.11 setfloat方法 189
8.4.12 setint方法 190
8.4.13 setlong方法 190
8.4.14 setshort方法 191
8.4.15 setstring方法 191
8.5 resultset介面 192
8.5.1 常量 192
8.5.2 afterlast方法 192
8.5.3 beforefirst方法 193
8.5.4 close方法 193
8.5.5 first方法 194
8.5.6 getboolean方法 194
8.5.7 getbyte方法 195
8.5.8 getbytes方法 196
8.5.9 getdate方法 197
8.5.10 gettime方法 198
8.5.11 gettimestamp方法 199
8.5.12 getdouble方法 200
8.5.13 getfloat方法 201
8.5.14 getint方法 202
8.5.15 getlong方法 203
8.5.16 getobject方法 204
8.5.17 getshort方法 205
8.5.18 getstring方法 206
8.5.19 gettype方法 207
8.5.20 isafterlast方法 207
8.5.21 isbeforefirst方法 208
8.5.22 isclosed方法 209
8.5.23 isfirst方法 209
8.5.24 islast方法 209
8.5.25 last方法 210
8.5.26 next方法 210
8.5.27 previous方法 211
第 9章 jsp指令 212
9.1 include指令 212
9.2 page指令 212
9.2.1 autoflush屬性 213
9.2.2 buffer屬性 214
9.2.3 language屬性 214
9.2.4 contenttype屬性 214
9.2.5 errorpage屬性 214
9.2.6 extends屬性 215
9.2.7 import屬性 215
9.2.8 info屬性 215
9.2.9 iserrorpage屬性 216
9.2.10 isieignored屬性 217
9.2.11 pageencoding屬性 217
9.3 taglib指令 217
第 10章 jsp的動作標簽 218
10.1 218
10.2 218
10.3 219
10.4 220
10.5 221
10.6 222
10.7 222
10.8 224
10.9 225
第 11章 jsp內置對象 227
11.1 application對象 227
11.1.1 getattribute(string name)方法 227
11.1.2 getattributename方法 228
11.1.3 getrealpath(string path)方法 228
11.1.4 getresource(stirng path)方法 228
11.1.5 getservletinfo方法 229
11.1.6 removeattribute(string key)方法 229
11.1.7 setattribute(string name,object object)方法 229
11.2 config對象 230
11.2.1 getinitparameter方法 230
11.2.2 getinitparameternames方法 230
11.2.3 getservletcontext方法 230
11.2.4 getservletname方法 231
11.3 exception對象 231
11.3.1 getmessage方法 231
11.3.2 getlocalizedmessage方法 232
11.3.3 printstacktrace方法 233
11.4 out輸出對象 233
11.4.1 clear方法 233
11.4.2 clearbuffer方法 234
11.4.3 close方法 234
11.4.4 flush方法 235
11.4.5 getbuffersize方法 235
11.4.6 getremaining方法 235
11.4.7 isautoflush方法 236
11.4.8 print方法 236
11.4.9 println方法 240
11.4.10 其他println方法 241
11.5 page對象 241
11.5.1 getclass方法 242
11.6 pagecontext對象 242
11.6.1 forward方法 242
11.6.2 getattribute方法 243
11.6.3 getexception方法 243
11.6.4 getrequest方法 244
11.6.5 getresponse方法 244
11.6.6 getservletconfig方法 245
11.6.7 removeattribute方法 245
11.6.8 setattribute方法 246
11.7 request對象 246
11.7.1 getattribute方法 246
11.7.2 getattributenames方法 247
11.7.3 getcookies方法 247
11.7.4 getcharacterencoding方法 248
11.7.5 getcontentlength方法 248
11.7.6 getheader方法 248
11.7.7 getheaders方法 249
11.7.8 getheadersnames方法 249
11.7.9 getinputstream方法 250
11.7.10 getmethod方法 250
11.7.11 getparameter方法 251
11.7.12 getparametervalues方法 251
11.7.13 getprotocol方法 252
11.7.14 getquerystring方法 253
11.7.15 getrequesturi方法 253
11.7.16 getrequesturl方法 253
11.7.17 getremoteaddr方法 254
11.7.18 getremotehost方法 254
11.7.19 getsession方法 254
11.7.20 getservername方法 255
11.7.21 getserverpath方法 255
11.7.22 getserverport方法 256
11.7.23 isuserinrole方法 256
11.7.24 removeattribute方法 256
11.7.25 setattribute方法 257
11.8 response對象 257
11.8.1 addcookie方法 258
11.8.2 addheader方法 258
11.8.3 containsheader方法 258
11.8.4 getcharacterencoding方法 259
11.8.5 getoutputstream方法 259
11.8.6 senderror方法 259
11.8.7 sendredirect方法 260
11.8.8 setcontenttype方法 260
11.8.9 setdateheader方法 261
11.8.10 setheader方法 261
11.9 session對象 261
11.9.1 getattribute方法 262
11.9.2 getattributenames方法 262
11.9.3 getcreationtime方法 263
11.9.4 getid方法 263
11.9.5 getlastaccessedtime方法 263
11.9.6 getmaxinactiveinterval方法 264
11.9.7 setattibute方法 264
11.9.8 setmaxinactiveinterval方法 265
11.9.9 removeattribute方法 265
第 12章 jstl核心標簽庫 266
12.1 表達式標簽 266
12.1.1 標簽 266
12.1.2 標簽 267
12.1.3 標簽 269
12.1.4 標簽 269
12.2 流程式控制制標簽 270
12.2.1 標簽 270
12.2.2 標簽 271
12.2.3 標簽 272
12.2.4 標簽 273
12.3 循環標簽 274
12.3.1 標簽 274
12.3.2 標簽 275
12.4 url操作標簽 277
12.4.1 標簽 277
12.4.2 標簽 278
12.4.3 標簽 279
12.4.4 標簽 280
第 13章 struts控制器組件 282
13.1 action類 282
13.1.1 adderrors方法 282
13.1.2 addmessages方法 283
13.1.3 execute方法 283
13.1.4 istokenvalid方法 284
13.1.5 getresources方法 285
13.1.6 resettoken方法 286
13.1.7 savetoken方法 286
13.1.8 saveerrors方法 287
13.1.9 savemessages方法 287
13.2 actionservlet類 288
13.2.1 doget方法 288
13.2.2 dopost方法 288
13.2.3 destroy方法 289
13.2.4 init方法 289
13.2.5 initinternal方法 290
13.2.6 initother方法 290
13.2.7 process方法 291
13.3 dispatchaction類 291
13.3.1 execute方法 292
13.3.2 getparameter方法 292
13.3.3 getmethodname方法 293
13.4 forwardaction類 294
13.4.1 execute方法 294
13.5 includeaction類 295
13.5.1 execute方法 295
13.6 lookupdispatchaction類 296
13.6.1 execute方法 296
13.6.2 getkeymethodmap方法 297
13.6.3 getmethodname方法 297
13.7 moleutils類 298
13.7.1 getinstance()方法 298
13.7.2 getmoleconfig()方法 299
13.8 switchaction類 299
13.8.1 execute方法 299
第 14章 struts bean標簽庫 301
14.1 標簽 301
14.2 標簽 302
14.3 標簽 303
14.4 標簽 304
14.5 標簽 304
14.6 標簽 305
14.7 標簽 306
14.8 標簽 307
14.9 標簽 308
14.10 標簽 309
14.11 標簽 310
第 15章 struts html標簽庫 311
15.1 標簽 311
15.2 標簽 312
15.3 標簽 313
15.4 標簽 314
15.5 標簽 315
15.6 標簽 315
15.7 標簽 316
15.8 標簽 317
15.9 標簽 318
15.10 標簽 319
15.11 標簽 321
15.12 標簽 321
15.13 標簽 323
15.14 標簽 324
15.15 標簽 325
15.16 標簽 327
15.17 標簽 328
15.18 標簽 329
15.19 標簽 329
15.20 標簽 330
15.21 標簽 331
第 16章 struts logic標簽庫 332
16.1 標簽 332
16.2 標簽 333
16.3 標簽 334
16.4 標簽 334
16.5 標簽 335
16.6 標簽 336
16.7 標簽 337
16.8 標簽 338
16.9 標簽 339
16.10 標簽 340
16.11 標簽 341
16.12 標簽 342
16.13 標簽 343
16.14 標簽 344
16.15 標簽 344
16.16 標簽 346
16.17 標簽 346
第 17章 hibernate常用類與介面 348
17.1 configuration類 348
17.1.1 構造方法 348
17.1.2 configure方法 348
17.1.3 addclass方法 349
17.1.4 buildsessionfactory方法 350
17.1.5 addresource方法 350
17.1.6 setproperty方法 351
17.2 sessionfactory介面 351
17.2.1 opensession方法 351
17.2.2 isclosed方法 353
17.2.3 close方法 354
17.3 session介面 354
17.3.1 begintransaction方法 354
17.3.2 isopen方法 355
17.3.3 close方法 355
17.3.4 save方法 356
17.3.5 update方法 356
17.3.6 saveorupdate方法 357
17.3.7 delete方法 358
17.3.8 get方法 359
17.3.9 load方法 360
17.3.10 evict方法 362
17.3.11 clear方法 363
17.3.12 contains方法 363
17.3.13 createquery方法 364
17.3.14 createsqlquery方法 364
17.3.15 createcriteria方法 365
17.3.16 lock方法 365
17.4 transaction介面 366
17.4.1 begin方法 366
17.4.2 commit方法 367
17.4.3 rollback方法 367
17.4.4 wascommitted方法 367
17.4.5 wasrolledback方法 368
17.5 query介面 369
17.5.1 list方法 369
17.5.2 iterate方法 370
17.5.3 uniqueresult方法 371
17.5.4 setmaxresults方法 372
17.5.5 setfirsresult方法 372
17.5.6 setentity方法 373
17.5.7 setparameter方法 373
17.5.8 setdate方法 374
17.5.9 setstring方法 374
17.5.10 setinteger方法 375
17.5.11 setboolean方法 376
17.5.12 setdouble方法 377
17.5.13 setfloat方法 377
17.6 criteria介面 378
17.6.1 add方法 378
17.6.2 addorder方法 379
17.6.3 createcriteria方法 379
17.6.4 createalias方法 380
17.6.5 list方法 381
17.6.6 setmaxresults方法 381
17.6.7 setfirsresult方法 382
17.6.8 uniqueresult方法 382
17.6.9 setprojection方法 383
17.7 projections類 383
17.7.1 projectionlist方法 383
17.7.2 id方法 384
17.7.3 property方法 384
17.7.4 distinct方法 385
17.7.5 groupproperty方法 385
17.7.6 avg方法 386
17.7.7 sum方法 386
17.7.8 max方法 387
17.7.9 min方法 387
17.7.10 rowcount方法 388
17.7.11 count方法 388
17.8 restrictions類 388
17.8.1 alleq方法 388
17.8.2 eq方法 389
17.8.3 lt方法 390
17.8.4 le方法 390
17.8.5 gt方法 390
17.8.6 ge方法 391
17.8.7 between方法 391
17.8.8 like方法 392
17.8.9 in方法 392
17.8.10 and方法 393
17.8.11 or方法 393
17.8.12 not方法 393
17.8.13 isnotnull方法 394
17.8.14 isnull方法 394
17.8.15 sqlrestriction方法 395
17.9 sqlquery介面 395
17.9.1 addentity方法 395
17.9.2 addjoin方法 398
17.9.3 addscalar方法 399
第 18章 hibernate配置屬性 400
18.1 dialect屬性 400
18.2 connection.driver_class屬性 401
18.3 connection.url屬性 402
18.4 connection.username屬性 403
18.5 connection.password屬性 404
18.6 show_sql屬性 405
18.7 format_sql屬性 406
18.8 use_sql_comments屬性 407
18.9 default_schema屬性 407
18.10 default_catalog屬性 408
18.11 session_factory_name屬性 409
18.12 max_fetch_depth屬性 410
18.13 default_batch_fetch_size屬性 411
18.14 default_entity_mode屬性 412
18.15 order_updates屬性 412
18.16 generate_statistics屬性 413
18.17 use_identifer_rollback屬性 414
18.18 cache.use_query_cache屬性 415
18.19 cache.use_second_level_cache屬性 416
18.20 cache.provider_class屬性 416
18.21 cache.region_prefix屬性 417
18.22 cache.use_minimal_puts屬性 418
18.23 transaction. factory_class屬性 419
第 19章 hibernate映射節點 421
19.1 節點 421
19.2 節點 422
19.3 節點 424
19.4 節點 425
19.5 節點 427
19.6 節點 427
19.7 節點 429
19.8 節點 431
19.9 節點 431
19.10 節點 433
19.11 節點 435
第 20章 spring容器 436
20.1 類 436
20.1.1 構造方法 436
20.2 類 437
20.2.1 構造方法 437
20.3 xmlbeanfactory類 438
20.3.1 構造方法 438
20.4 webapplicationcontext介面 438
20.5 spring容器類的方法 443
20.5.1 containsbean方法 443
20.5.2 getbean方法 443
20.5.3 getbeandefinitioncount方法 444
20.5.4 getbeandefinitionnames方法 445
20.5.5 getbeannamesfortype方法 445
20.5.6 getbeansoftype方法 446
20.5.7 getconfiglocations方法 446
20.5.8 gettype方法 446
20.5.9 issingleton方法 447
20.5.10 istypematch方法 448
20.5.11 getservletcontext方法 448
第 21章 spring持久化 449
21.1 drivermanagerdatasource類 449
21.1.1 構造方法 449
21.1.2 getconnection方法 451
21.1.3 getconnectionproperties方法 453
21.1.4 getdriverclassname方法 453
21.1.5 getpassword方法 453
21.1.6 geturl方法 454
21.1.7 getusername方法 454
21.1.8 setconnectionproperties方法 455
21.1.9 setdriverclassname方法 455
21.1.10 setpassword方法 456
21.1.11 seturl方法 456
21.1.12 setusername方法 457
21.2 hibernatetemplate類 457
21.2.1 構造方法 457
21.2.2 delete方法 458
21.2.3 deleteall方法 459
21.2.4 execute方法 459
21.2.5 executefind方法 460
21.2.6 find方法 460
21.2.7 get方法 462
21.2.8 loadall方法 462
21.2.9 save方法 463
21.2.10 saveorupdate方法 464
21.2.11 saveorupdateall方法 464
21.2.12 update方法 465
21.3 jdbctemplate類 465
21.3.1 batchupdate方法 466
21.3.2 query方法 466
21.3.3 queryforint方法 469
21.3.4 queryforlist方法 470
21.3.5 queryforlong方法 472
21.3.6 queryformap方法 472
21.3.7 queryforobject方法 474
21.3.8 update方法 474
第 22章 spring web表單標簽 476
22.1 476
22.2 477
22.3 478
22.4 479
22.5 479
22.6 480
22.7 480
22.8 482
22.9 483
22.10 484
22.11 486

熱點內容
matlab命令窗口和新建腳本 發布:2024-07-17 15:51:26 瀏覽:374
建ftp文件夾 發布:2024-07-17 15:51:26 瀏覽:954
魔獸撿物腳本 發布:2024-07-17 15:27:56 瀏覽:129
開發ip伺服器 發布:2024-07-17 15:24:42 瀏覽:387
安卓系統視頻製作哪個好用 發布:2024-07-17 15:10:47 瀏覽:210
androidapk結構 發布:2024-07-17 15:10:43 瀏覽:945
c語言指針的例子 發布:2024-07-17 15:08:01 瀏覽:768
linuxzcat 發布:2024-07-17 15:02:09 瀏覽:901
賓士編程嗎 發布:2024-07-17 14:57:08 瀏覽:853
硬碟加密硬體 發布:2024-07-17 14:51:05 瀏覽:836
网站地图