?commons
commons發(fā)音
['kɔmənz]
英: 美:
commons中文意思翻譯
n. 英國國會下院(the House of Commons)
commons同義詞
coarseness | regularity | commonality | vulgarism |frequency | raunch | commonplaceness | prevalence | expectedness | grossness | everydayness | vulgarity
commons反義詞
uncommonness
commons常見例句
1 、In common with many others, she applied for a training place.───她已和許多人一起申請參加訓(xùn)練。
2 、Sometimes a dream can speak to a common people, unifying them in a common cause.─── 有時候夢會指引一些普通人 讓他們?yōu)橄嗤哪繕硕鴪F結(jié)在一起
3 、A small, usually secret group united for a common interest.───團體,派別為了一個共同的利益而聯(lián)合起來的小團體,通常是秘密團體
4 、The expression written below the line in a common fraction that indicates the number of parts into which one whole is divided.───名稱在公分式的分數(shù)線下的表達式,它指明了一個整個被劃分的部分的數(shù)目
5 、Smith is a very common last name in England.───在英國史密斯是很常見的姓。
6 、Common interests bind us together.───共同的利益使我們結(jié)合在一起。
7 、In communications, the connection, by a common carrier, of the output portion of a circuit back to the input portion of a circuit.───在通信技術(shù)中,通過公共載體將電路的輸出部分返回到電路的輸入部分的一種連接。
8 、He is long on common sense.───他有豐富的常識。
9 、Cremation is more common than burial in some countries.───在某些國家,火葬比土葬普遍。
10 、They are opposed to the enclosure of common land.───他們反對把公地圈為私有。
11 、An association of men, such as a fraternity or union, united for common purposes.───全體會員為共同目標組成的,如兄弟會或工會等的會員
12 、He made a statement before the House of Commons.───他在下議院當眾發(fā)表了一個聲明。
13 、Rabbits and foxes are common in Britain.───兔子和狐貍在英國很常見。
14 、A group of people united by common beliefs, attitudes, or interests and characteristically excluding outsiders; a clique.───內(nèi)集團一群因共同的信仰、態(tài)度和興趣而集合在一起并明顯排斥外人的小集團; 小集團
15 、Measurable by a common standard; commensurable.───可用共同標準測量的; 可共同測量的
16 、An organization of people united by a common fraternal bond or social aim.───兄弟會由共同的兄弟情誼或社會目的而結(jié)合起來的民間組織
17 、It connects you to a tribe of people you feel you might have something in common with or want to have something in common with.─── 它使你接觸到 你感覺與之有共鳴的異域風情 或是你希望與之產(chǎn)生共鳴的異域風情
18 、His parents were of the commons.───他的父母是平民。
19 、The House of Commons was still sitting at 3 am.───下議院凌晨三時仍在開會。
20 、Two delivery rooms, four different maternity rooms, no common personnel and no common equipment.─── 2個產(chǎn)房 4個產(chǎn)后病房 沒有公共人員 沒有共用儀器
21 、Common interests formed a bond between us.───共同的利益把我們聯(lián)系在一起。
22 、He never warped from the path of common sense.───他從不違背常情。
23 、They sometimes came across each other in the commons.───他們有時在大學(xué)的公共食堂相遇。
24 、They are wedded by common interests.───共同的利益將他們結(jié)合在一起。
25 、The House of Commons and the House of Lords comprise/compose/constitute the British Parliament.───下議院和上議院組成了英國國會。
26 、Common preconceptions about life in this district are increasingly being challenged.───原先普遍存在著對那一地區(qū)生活的成見越來越站不住腳了。
27 、Common sense triumphed in the end.───人的理智終於戰(zhàn)勝了一切。
28 、Does the common man oppose the ideas of political union between European countries?───一般人是不是反對歐洲國家政治聯(lián)合的構(gòu)想呢?
29 、She wishes to be treated as nothing more than a common girl.───她希望被對待得只不過像一般的女孩子。
30 、The only problem with common sense is that it's so... common.─── 常理唯一的問題就是 太普通了
31 、The assimilation of people in USA is common.───在美國,人的同化很普遍。
32 、He is a man of great common sense and good taste- meaning thereby a man without originality or moral courage.───他是個非常有常識和高尚嗜好的人——這意味著沒有獨創(chuàng)性、也沒有道義上的勇氣。
33 、A body of people associated for a common purpose or interest, such as a guild.───兄弟會為共同的目的或利益而聯(lián)合的人們的團體
34 、Many of the common materials of the earth's crust may alternate between the living and the nonliving states.───地球表面上有許多普通的狀之都可能在有生命和無生命中交替。
35 、In common with other students, Tom is often late for school.───和其他學(xué)生一樣,湯姆也經(jīng)常遲到。
36 、They made an alliance against the common enemy.───他們聯(lián)合起來抵御共同的敵人。
37 、It was once a common belief that the sun moved round the earth.───人們曾經(jīng)普遍地認為太陽環(huán)繞地球運轉(zhuǎn)。
38 、The rear benches in the House of Commons where junior members of Parliament sit behind government officeholders and their counterparts in the opposition party.───后座議員席英下議院后排座的議員席,議會中職位較低的成員坐在政府官員和對立黨成員的后面
39 、The descendants of a common ancestor considered to be the founder of the line.───同一世系的后代擁有共同祖先的世系的始祖的后代
40 、By common consent the village green was turned into a playground for children.───大家一致同意把村中的草地改為兒童游戲場所。
41 、A common trait or characteristic.───共同特征或共同性質(zhì)
42 、You and I come of common stock, and share a common hope, I think.─── 你我出身平凡 也有共同的希望
43 、Bound by a deep sense of duty; bound by a common interest in sports.───為強烈的責任感所驅(qū)使; 由于對體育運動的共同興趣而結(jié)合
44 、Christmas revels with feasting and dancing were common in England.───圣誕節(jié)盛宴歌舞的狂歡在英國是很常見的。
45 、a body sharing a common history, common values and a common memory, to which the price of admission is the surrender of self.─── 這個羣體有著共同的歷史 共同的價值觀和共同的記憶 加入它的代價就是放棄獨立的自我
46 、It's pointless trying to keep your friendship secret it's common knowledge already.───你們無謂將友情保密--其實已盡人皆知了。
47 、just a common man with common thoughts.─── 就是個普通人 有普通的心思
48 、In a network, pertaining to devices, programs, or domains that are connected by a data link or that share common control.───在網(wǎng)絡(luò)中,指由數(shù)據(jù)鏈路連接的或共享公共控制的設(shè)備、程序或區(qū)域。
49 、Lacking a common quality on which to make a comparison.───不能比較的缺乏能進行比較的共同特質(zhì)的
50 、Having or mounted on a common axis.───同軸的有或裝上共同軸的
51 、Of low, common, or inferior quality.───低質(zhì)量的低的、普通的或劣等的質(zhì)量的
52 、He's not an officer, but a common soldier.───他不是軍官而是普通士兵。
53 、A relatively small, often rural community whose members share common interests, work, and income and often own property collectively.───公社一個比較小、常在鄉(xiāng)村的公社,它的成員分享公共財產(chǎn)、工作和收入,并常集中自己的財產(chǎn)
54 、In this situation it is common to say that nothing can be done until law and order is restored.───一般來說在這種形勢下,不恢復(fù)法律和秩序是什么也干不了的。
55 、Common tastes form a bond between the two men.───共同的愛好使兩人結(jié)交為朋友。
56 、The house of commons have not yet pass the bill.───下議院尚未通過該議案。
57 、The rebel factions made common cause (with each other) to overthrow the regime.───各造反派(彼此)聯(lián)合起來共同推翻政府。
58 、Knowledge without common sense counts for little.───光有學(xué)問而無常識,則這種學(xué)問無甚價值。
59 、This type of error is very common among dabblers.───在淺嘗者中這類錯誤很平常。
60 、The common man over there is attempting to violently accost the other common man, sir.─── 那邊有幾個百姓 正視圖用暴力對付另一個百姓 先生
61 、Contrary to nature, reason, or common sense; absurd.───與本性、理性或常識相反的; 荒謬的
62 、In the early days, on the western frontier, red eye was the common alcoholic drink found in most saloons. Over-consumption made the eyes red!───在〔美國〕西部拓荒時代的早期,"redeye"是在大部份的酒廊就有的非常普遍的酒。喝了過多就使眼睛充血了。
63 、Those two have something in common.───兩者有共同之處。
64 、Similarity of structure between organs or parts, possibly of dissimilar function, that are related by common descent.───同構(gòu)發(fā)生,同源發(fā)生源于同一祖先,可能功能不同的器官或部分在結(jié)構(gòu)上的相似
65 、He was the most capable person in our group by common consent.───大家公認他是我們小組中最能干的人。
66 、A group of persons gathered together for a common reason, as for a legislative, religious, educational, or social purpose.───與會者為一共同理由,如為立法的,宗教的,教育的或社會目的聚集在一起的人
67 、Accidents due to driving at high speed were very common that weekend.───在那個周末因高速駕駛造成的交通事故很多。
68 、The right to pasture animals on common land.───共用權(quán)在公共土地上放牧動物的權(quán)利
69 、Fraud's quite common. It's more common than anyone knows.─── 詐騙很普遍 比人們想的更加普遍
70 、He behaves as if he had no common sense.───他的言行就好像沒有常識似的。
71 、Common benefits, are to be communicated with all; but peculiar benefits, with choice.───一般的福利應(yīng)該人人均沾。而特殊的榮耀就必須有所選擇。
72 、Smith is a common English surname.───史密斯是常見的英國姓。
73 、The two sisters have nothing in common.───兩姐妹沒有什么共同之處。
74 、Division lobby in the house of commons, where mps pass if they are voting for the motion.───下議院會客廳的一個投票廳,當投票贊成某動議案時下院議員通過此廳。
75 、Coming from a common source; akin.───同宗的來自于共同祖先的; 同血親的
76 、He was regarded as heretic by the common people.───他被大眾視為異教徒。
77 、She unites common sense and vision.───她兼具常識與見識。
78 、Holmes and he had plenty in common.───他與福爾摩斯有許多共同之處。
79 、He was eager to get out of the (common) ruck and distinguish himself in some way.───他渴望出人頭地,在某方面與眾不同。
80 、A modification of common language suitable for automatic translation by the equipment into machine or computer usable language.───一種通用語言的變形,可通過設(shè)備自動將它轉(zhuǎn)換成機器語言或計算機可執(zhí)行的語言。
81 、They have something in common in this connection.───在這點上,他們有些共同之處。
82 、The House (ie Members of the House of Commons) rose at 10 pm.───下議院已於晚上10點鐘散會。
83 、Women's underclothes are a common fetish.───女人的內(nèi)衣褲是常見的能引起性快感的戀物。
84 、A common fund to which members of a group contribute.───共同基金由組織中的各個成員共同籌集的資金
85 、Today is proof that we can unite, not against a common enemy, but for the common good.─── 今天證明了我們能夠團結(jié)一致 不是為了對抗共同的敵人 而是為了共同的利益
86 、She hasn't an ounce of common sense.───她一點兒常識也沒有。
87 、Their marriage was a mismatch they had little in common.───他們的婚姻不般配,兩人幾乎無共同之處。
88 、His jealously guarded secret was soon common property.───他小心翼翼保守的秘密很快就成為眾所皆知之事。
89 、The House of Commons was still sitting.───下議院仍在開會。
90 、A group of individuals linked by traits held in common.───同種,同類因具有共同的特性而聯(lián)系在一起的個體的集合
commons-dbcp.jar有什么作用
commons-dbcp 是 apache 上的一個 java 連接池項目,也是 tomcat 使用的連接池組件。單獨使用dbcp需要3個包:
common-dbcp.jar,common-pool.jar,common-collections.jar。
下面是使用示例:
package dbcp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashMap;
import java.util.Map;
import javax.sql.DataSource;
import org.apache.commons.dbcp.BasicDataSource;
/**
* @author space
* @date Aug 12, 2008 3:25:49 PM
*
* dbcp 實用類,提供了dbcp連接,不允許繼承;
*
* 該類需要有個地方來初始化 DS ,通過調(diào)用initDS 方法來完成,
* 可以在通過調(diào)用帶參數(shù)的構(gòu)造函數(shù)完成調(diào)用,
* 可以在其它類中調(diào)用,也可以在本類中加一個static{}來完成;
*/
public final class DbcpBean {
/** 數(shù)據(jù)源,static */
private static DataSource DS;
/** 從數(shù)據(jù)源獲得一個連接 */
public Connection getConn() {
Connection con = null;
if (Ds!= null) {
try {
con = Ds.getConnection();
} catch (Exception e) {
e.printStackTrace(System.err);
}
try {
con.setAutoCommit(false);
} catch (SQLException e) {
e.printStackTrace();
}
return con;
}
return con;
}
/** 默認的構(gòu)造函數(shù) */
public DbcpBean() {
}
/** 構(gòu)造函數(shù),初始化了 DS ,指定 數(shù)據(jù)庫 */
public DbcpBean(String connectURI) {
initDS(connectURI);
}
/** 構(gòu)造函數(shù),初始化了 DS ,指定 所有參數(shù) */
public DbcpBean(String connectURI, String username, String pswd, String driverClass, int initialSize,
int maxActive, int maxIdle, int maxWait) {
initDS(connectURI, username, pswd, driverClass, initialSize, maxActive, maxIdle, maxWait);
}
/**
* 創(chuàng)建數(shù)據(jù)源,除了數(shù)據(jù)庫外,都使用硬編碼默認參數(shù);
*
* @param connectURI 數(shù)據(jù)庫
* @return
*/
public static void initDS(String connectURI) {
initDS(connectURI, "root", "password", "com.mysql.jdbc.Driver", 5, 100, 30, 10000);
}
/**
* 指定所有參數(shù)連接數(shù)據(jù)源
*
* @param connectURI 數(shù)據(jù)庫
* @param username 用戶名
* @param pswd 密碼
* @param driverClass 數(shù)據(jù)庫連接驅(qū)動名
* @param initialSize 初始連接池連接個數(shù)
* @param maxActive 最大激活連接數(shù)
* @param maxIdle 最大閑置連接數(shù)
* @param maxWait 獲得連接的最大等待毫秒數(shù)
* @return
*/
public static void initDS(String connectURI, String username, String pswd,
String driverClass, int initialSize,
int maxActive, int maxIdle, int maxWait) {
BasicDataSource ds = new BasicDataSource();
ds.setDriverClassName(driverClass);
ds.setUsername(username);
ds.setPassword(pswd);
ds.setUrl(connectURI);
ds.setInitialSize(initialSize); // 初始的連接數(shù);
ds.setMaxActive(maxActive);
ds.setMaxIdle(maxIdle);
ds.setMaxWait(maxWait);
DS = ds;
}
/** 獲得數(shù)據(jù)源連接狀態(tài) */
public static Map
BasicDataSource bds = (BasicDataSource) DS;
Map
map.put("active_number", bds.getNumActive());
map.put("idle_number", bds.getNumIdle());
return map;
}
/** 關(guān)閉數(shù)據(jù)源 */
protected static void shutdownDataSource() throws SQLException {
BasicDataSource bds = (BasicDataSource) DS;
bds.close();
}
public static void main(String[] args) {
DbcpBean db = new DbcpBean("jdbc:mysql://localhost:3306/testit");
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
try {
conn = db.getConn();
stmt = conn.createStatement();
rs = stmt.executeQuery("select * from test limit 1 ");
System.out.println("Results:");
int numcols = rs.getMetaData().getColumnCount();
while (rs.next()) {
for (int i = 1; i <= numcols; i++) {
System.out.print(" " + rs.getString(i) + " ");
}
System.out.println("");
}
System.out.println(getDataSourceStats());
} catch (SQLException e) {
e.printStackTrace();
} finally {
try {
if (rs != null)
rs.close();
if (stmt != null)
stmt.close();
if (conn != null)
conn.close();
if (db != null)
shutdownDataSource();
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
commonsdbcp.jar有什么用
DBCP一般指數(shù)據(jù)庫連接池。
單獨使用DBCP需要使用commons-dbpc.jar、commons-collections.jar、commons-pool.jar三個包,都可以在Apache組織的網(wǎng)站上下到(commons.apache.org)。
數(shù)據(jù)庫連接池負責分配、管理和釋放數(shù)據(jù)庫連接,它允許應(yīng)用程序重復(fù)使用一個現(xiàn)有的數(shù)據(jù)庫連接,而不是再重新建立一個;釋放空閑時間超過最大空閑時間的數(shù)據(jù)庫連接來避免因為沒有釋放數(shù)據(jù)庫連接而引起的數(shù)據(jù)庫連接遺漏。這項技術(shù)能明顯提高對數(shù)據(jù)庫操作的性能。
擴展資料
數(shù)據(jù)庫連接池工作原理
連接池基本的思想是在系統(tǒng)初始化的時候,將數(shù)據(jù)庫連接作為對象存儲在內(nèi)存中,當用戶需要訪問數(shù)據(jù)庫時,并非建立一個新的連接,而是從連接池中取出一個已建立的空閑連接對象。
使用完畢后,用戶也并非將連接關(guān)閉,而是將連接放回連接池中,以供下一個請求訪問使用。而連接的建立、斷開都由連接池自身來管理。
同時,還可以通過設(shè)置連接池的參數(shù)來控制連接池中的初始連接數(shù)、連接的上下限數(shù)以及每個連接的最大使用次數(shù)、最大空閑時間等等,也可以通過其自身的管理機制來監(jiān)視數(shù)據(jù)庫連接的數(shù)量、使用情況等。
參考資料
百度百科--DBCP