?? persistentitem.java
字號:
package model.persistency;
import model.domain.*;
/**
* 用作與數(shù)據(jù)庫連接的類,其中的oid是題目隨機在數(shù)據(jù)庫中產(chǎn)生的標(biāo)識
* @author Cynthia
*/
public class PersistentItem extends Item{
private int oid;
/**構(gòu)造函數(shù)*/
public PersistentItem(int oid){
super();
this.oid = oid;
}
/**構(gòu)造函數(shù)
*
* @param id 題目的標(biāo)識
* @param difficulty 題目難度
* @param time 預(yù)測用時
* @param content 題目內(nèi)容
* @param answer 答案
* @param score 所占分?jǐn)?shù)
*/
public PersistentItem(int oid,String id,String difficulty,int time,String content,String answer,float score)
{
super(id,difficulty,time,content,answer,score);
this.oid = oid;
}
/**得到OID
* @return int類型 oid
*/
public int getOid(){return oid;}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -