📄 dataconnector.java
字号:
/*
* DataConnector.java
*
* Created on 2001/10/29, 14:53
*/
package jp.co.intra_mart.framework.base.data;
/**
* 僨乕僞僗僩傾偵愙懕偡傞僐僱僋僞偱偡丅
*
* @author INTRAMART
* @version 1.0
*/
public abstract class DataConnector {
/** 僨乕僞僾儘僷僥傿僴儞僪儔 */
private DataPropertyHandler handler;
/**
* 怴婯偺DataConnector傪惗惉偟傑偡丅
*/
public DataConnector() {
this.handler = null;
}
/**
* 僨乕僞僾儘僷僥傿僴儞僪儔傪愝掕偟傑偡丅
*
* @param handler 僨乕僞僾儘僷僥傿僴儞僪儔
*/
public void setDataPropertyHandler(DataPropertyHandler handler) {
this.handler = handler;
}
/**
* 僨乕僞僾儘僷僥傿僴儞僪儔傪庢摼偟傑偡丅
*
* @return 僨乕僞僾儘僷僥傿僴儞僪儔
*/
public DataPropertyHandler getDataPropertyHandler() {
return this.handler;
}
/**
* 儕僜乕僗傪庢摼偟傑偡丅
*
* @param key 僉乕
* @param connect 愙懕忣曬
* @param resource 儕僜乕僗柤
* @return 儕僜乕僗
* @throws DataPropertyException 儕僜乕僗偺庢摼偵幐攕
* @throws DataConnectException 愙懕偵幐攕
*/
protected abstract Object getResource(String key, String connect, String resource) throws DataPropertyException, DataConnectException;
/**
* 僐儈僢僩偟傑偡丅
*
* @throws DataConnectException 僐儈僢僩偵幐攕
*/
public abstract void commit() throws DataConnectException;
/**
* 儘乕儖僶僢僋偟傑偡丅
*
* @throws DataConnectException 儘乕儖僶僢僋偵幐攕
*/
public abstract void rollback() throws DataConnectException;
/**
* 僨乕僞僗僩傾偺帒尮傪夝曻偟傑偡丅
*
* @throws DataConnectException 帒尮奐曻偵幐攕
*/
public abstract void release() throws DataConnectException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -