📄 intramartfileserverdao.java
字号:
/*
* IntramartFileServerDAO.java
*
* Created on 2002/07/15, 16:40
*/
package jp.co.intra_mart.framework.base.data;
import jp.co.intra_mart.foundation.service.client.file.NetworkFile;
/**
* intra-mart偺Storage僒乕價僗傪巊梡偡傞応崌偺DAO偱偡丅
*
* @author INTRAMART
* @since 3.2
*/
public class IntramartFileServerDAO implements DAO {
/**
* intra-martStorage僒乕價僗偺僨乕僞僐僱僋僞
*/
private IntramartFileServerConnector connector;
/**
* IntramartFileServerDAO傪怴婯偵惗惉偟傑偡丅
*/
public IntramartFileServerDAO() {
setIntramartFileServerConnector(null);
}
/**
* intra-martStorage僒乕價僗偺僨乕僞僐僱僋僞傪愝掕偟傑偡丅
*
* @param connector intra-martStorage僒乕價僗偺僨乕僞僐僱僋僞
*/
private void setIntramartFileServerConnector(IntramartFileServerConnector connector) {
this.connector = connector;
}
/**
* intra-martStorage僒乕價僗偺僨乕僞僐僱僋僞傪庢摼偟傑偡丅
*
* @return intra-martStorage僒乕價僗偺僨乕僞僐僱僋僞
*/
private IntramartFileServerConnector getIntramartFileServerConnector() {
return this.connector;
}
/** 僨乕僞儕僜乕僗偵愙懕偡傞帪偺忣曬傪愝掕偟傑偡丅
*
* @param connector 僨乕僞僐僱僋僞
* @param resource 儕僜乕僗
* @param key 僉乕
* @param connect 愙懕忣曬
* @throws DataConnectException 愙懕偵幐攕
*/
public void setConnectInfo(DataConnector connector, String resource, String key, String connect) throws DataConnectException {
try {
setIntramartFileServerConnector((IntramartFileServerConnector)connector);
} catch (Exception e) {
throw new DataConnectException(e.getMessage(), e);
}
}
/**
* 僷僗偵奩摉偡傞NetworkFile傪庢摼偟傑偡丅
*
* @param path intra-martStorage僒乕價僗忋偺僼傽僀儖僷僗
* @return 僷僗偵奩摉偡傞NetworkFile
*/
protected NetworkFile getNetworkFile(String path) throws DataConnectorException {
try {
return getIntramartFileServerConnector().getNetworkFile(path);
} catch (Exception e) {
throw new DataConnectorException(e.getMessage(), e);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -