|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.w_horse.excelpojo.ExcelPOJOBridge
public class ExcelPOJOBridge
ExcelとPOJO間の読み込み/書込みを実行するクラス
コンストラクタの概要 | |
---|---|
ExcelPOJOBridge()
|
|
ExcelPOJOBridge(java.lang.Class<?> targetClass)
XMLによる設定ファイルを使用せずに Excel⇔POJO間のマッピングを行う際に使用するコンストラクタ |
メソッドの概要 | |
---|---|
net.w_horse.excelpojo.excel.AbstractCellSeeker |
getCellSeeker()
|
java.lang.String |
getSheetName()
|
java.lang.String |
getTargetClass()
|
java.util.HashMap<java.lang.String,net.w_horse.excelpojo.excel.AbstractCellSeeker> |
getTargetClassProperties()
|
java.lang.Object |
load(java.io.InputStream inputStream)
Excelからデータを読み込んでPOJOを作成する InputStreamによってExcelのデータを読み込む際に使用 |
java.lang.Object |
load(java.io.InputStream inputStream,
java.lang.String sheetName)
Excelからデータを読み込んでPOJOを作成する InputStreamによってExcelのデータを読み込む際に使用 |
java.lang.Object |
load(java.lang.String file)
Excelからデータを読み込んでPOJOを作成する |
java.lang.Object |
load(java.lang.String file,
java.lang.String sheetName)
Excelからデータを読み込んでPOJOを作成する シート名をコーディングにより指定する場合に使用 |
void |
save(org.apache.poi.hssf.usermodel.HSSFWorkbook inputBook,
java.lang.String sheetName,
java.lang.String outputBookName,
java.lang.Object bean)
POJOからExcelへ書き込む テンプレートとしてExcelファイルを読み込み、 別ファイルとして保存する場合に使用 |
void |
save(java.lang.String inputOutputBookName,
java.lang.Object bean)
POJOからExcelへ書き込む |
void |
save(java.lang.String inputOutputBookName,
java.lang.String sheetName,
java.lang.Object bean)
POJOからExcelへ書き込む シート名をコーディングにより指定する場合に使用 |
void |
save(java.lang.String inputBookName,
java.lang.String sheetName,
java.lang.String outputBookName,
java.lang.Object bean)
POJOからExcelへ書き込む テンプレートとしてExcelファイルを読み込み、 別ファイルとして保存する場合に使用 シート名をコーディングにより指定する場合に使用 |
void |
setCellSeeker(net.w_horse.excelpojo.excel.AbstractCellSeeker cellSeeker)
|
void |
setSheetName(java.lang.String sheetName)
|
void |
setTargetClass(java.lang.String targetClass)
|
void |
setTargetClassProperties(java.util.HashMap<java.lang.String,net.w_horse.excelpojo.excel.AbstractCellSeeker> targetBeanProperties)
|
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public ExcelPOJOBridge()
public ExcelPOJOBridge(java.lang.Class<?> targetClass) throws net.w_horse.excelpojo.ExcelPOJOException
targetClass
- 読み込んだ情報を格納するクラス
net.w_horse.excelpojo.ExcelPOJOException
- アノテーションが指定されていない場合メソッドの詳細 |
---|
public java.lang.Object load(java.lang.String file) throws net.w_horse.excelpojo.ExcelPOJOException
file
- 読み込み対象のExcelファイル名
net.w_horse.excelpojo.ExcelPOJOException
- シートが指定されずに呼び出された場合public java.lang.Object load(java.lang.String file, java.lang.String sheetName) throws net.w_horse.excelpojo.ExcelPOJOException
file
- 読み込み対象のExcelファイル名sheetName
- シート名
net.w_horse.excelpojo.ExcelPOJOException
public java.lang.Object load(java.io.InputStream inputStream) throws net.w_horse.excelpojo.ExcelPOJOException
inputStream
- Excelのデータ
net.w_horse.excelpojo.ExcelPOJOException
public java.lang.Object load(java.io.InputStream inputStream, java.lang.String sheetName) throws net.w_horse.excelpojo.ExcelPOJOException
inputStream
- ExcelのデータsheetName
- シート名
net.w_horse.excelpojo.ExcelPOJOException
public void save(java.lang.String inputOutputBookName, java.lang.Object bean) throws net.w_horse.excelpojo.ExcelPOJOException
inputOutputBookName
- 書き込み先のExcelファイル名bean
- 書き込み情報を保持しているPOJO
net.w_horse.excelpojo.ExcelPOJOException
public void save(java.lang.String inputOutputBookName, java.lang.String sheetName, java.lang.Object bean) throws net.w_horse.excelpojo.ExcelPOJOException
inputOutputBookName
- 書き込み先のExcelファイル名sheetName
- シート名bean
- 書き込み情報を保持しているPOJO
net.w_horse.excelpojo.ExcelPOJOException
public void save(java.lang.String inputBookName, java.lang.String sheetName, java.lang.String outputBookName, java.lang.Object bean) throws net.w_horse.excelpojo.ExcelPOJOException
inputBookName
- テンプレートとして読み込むExcelファイル名sheetName
- シート名outputBookName
- 書き込み先のExcelファイル名bean
- 書き込み情報を保持しているPOJO
net.w_horse.excelpojo.ExcelPOJOException
public void save(org.apache.poi.hssf.usermodel.HSSFWorkbook inputBook, java.lang.String sheetName, java.lang.String outputBookName, java.lang.Object bean) throws net.w_horse.excelpojo.ExcelPOJOException
inputBook
- テンプレートとして読み込むExcelファイルsheetName
- シート名outputBookName
- 書き込み先のExcelファイル名bean
- 書き込み情報を保持しているPOJO
net.w_horse.excelpojo.ExcelPOJOException
- 指定されたシートが存在しない場合public void setSheetName(java.lang.String sheetName)
public java.lang.String getSheetName()
public void setTargetClass(java.lang.String targetClass)
public java.lang.String getTargetClass()
public void setTargetClassProperties(java.util.HashMap<java.lang.String,net.w_horse.excelpojo.excel.AbstractCellSeeker> targetBeanProperties)
public java.util.HashMap<java.lang.String,net.w_horse.excelpojo.excel.AbstractCellSeeker> getTargetClassProperties()
public void setCellSeeker(net.w_horse.excelpojo.excel.AbstractCellSeeker cellSeeker)
public net.w_horse.excelpojo.excel.AbstractCellSeeker getCellSeeker()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |