資源簡介
1.這個是一個文本數(shù)據(jù)庫簡單的實(shí)現(xiàn)思路, 的完整java代碼工程.
2.自己平時(shí)寫些小程序,存儲數(shù)據(jù)使用那些收錢/開源的數(shù)據(jù)庫太浪費(fèi)電腦資源,直接存到文件里面更方便.
3.我簡單把實(shí)現(xiàn)思路寫了一下,算是給自己一個備份,需要的兄弟也可以參考下.可以自己擴(kuò)展或者封裝.
4.其中使用到了java泛型,java反射機(jī)制,文本輸入輸出等技術(shù),如果想研究這些技術(shù)也可以參考這些代碼.
代碼片段和文件信息
/**
?*Author:?Jiangtao?He;?Email:?ross.jiangtao.he@gmail.com
?*File?Name:?FileDBTool.java
?*Date:?2011-12-30
?*Copyright:?All?right?reserved?by?author?-?Jiangtao?He
?*Description:?MyJavaExpert?v1.0
?*/
package?com.ross.filedb;
import?java.io.BufferedReader;
import?java.io.IOException;
import?java.io.PrintWriter;
import?java.lang.reflect.Field;
import?java.lang.reflect.InvocationTargetException;
import?java.lang.reflect.Method;
import?java.util.ArrayList;
import?java.util.HashMap;
import?java.util.List;
import?com.ross.filedb.util.FileProcess;
import?com.ross.filedb.util.ResultBean;
import?com.ross.filedb.util.SysValues;
/**
?*?@author:?Jiangtao?He;?Email:?ross.jiangtao.he@gmail.com
?*?Since:?MyJavaExpert?v1.0
?*?Description:?
?*?1.This?class?is?use?to?access?t
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-12-30?00:15??MyJavaExpert?V1.0\
?????文件?????????310??2011-12-31?21:17??MyJavaExpert?V1.0\.classpath
?????文件?????????393??2012-01-01?22:40??MyJavaExpert?V1.0\.project
?????目錄???????????0??2011-12-29?23:37??MyJavaExpert?V1.0\.settings\
?????文件???????22017??2011-12-30?00:58??MyJavaExpert?V1.0\.settings\org.eclipse.jdt.core.prefs
?????文件????????9884??2011-12-30?01:49??MyJavaExpert?V1.0\.settings\org.eclipse.jdt.ui.prefs
?????目錄???????????0??2011-12-31?21:17??MyJavaExpert?V1.0\bin\
?????目錄???????????0??2011-12-31?21:17??MyJavaExpert?V1.0\bin\com\
?????目錄???????????0??2011-12-31?21:17??MyJavaExpert?V1.0\bin\com\ross\
?????目錄???????????0??2012-01-01?01:06??MyJavaExpert?V1.0\bin\com\ross\filedb\
?????文件????????9076??2012-01-01?02:05??MyJavaExpert?V1.0\bin\com\ross\filedb\FileDBTool.class
?????目錄???????????0??2011-12-31?21:17??MyJavaExpert?V1.0\bin\com\ross\filedb\tablebean\
?????文件????????1706??2011-12-31?21:17??MyJavaExpert?V1.0\bin\com\ross\filedb\tablebean\T_FamilyMemberBean.class
?????文件????????1294??2011-12-31?21:17??MyJavaExpert?V1.0\bin\com\ross\filedb\tablebean\T_HomeBean.class
?????目錄???????????0??2011-12-31?21:35??MyJavaExpert?V1.0\bin\com\ross\filedb\util\
?????文件????????1269??2012-01-01?00:11??MyJavaExpert?V1.0\bin\com\ross\filedb\util\FileProcess.class
?????文件?????????773??2011-12-31?21:45??MyJavaExpert?V1.0\bin\com\ross\filedb\util\ResultBean.class
?????文件?????????946??2011-12-31?22:00??MyJavaExpert?V1.0\bin\com\ross\filedb\util\SysValues.class
?????目錄???????????0??2011-12-31?21:17??MyJavaExpert?V1.0\bin\junit\
?????目錄???????????0??2011-12-31?21:17??MyJavaExpert?V1.0\bin\junit\ross\
?????目錄???????????0??2011-12-31?21:17??MyJavaExpert?V1.0\bin\junit\ross\filedb\
?????文件????????5018??2012-01-01?02:05??MyJavaExpert?V1.0\bin\junit\ross\filedb\FileDBToolTest.class
?????目錄???????????0??2011-12-30?00:27??MyJavaExpert?V1.0\db\
?????文件?????????494??2012-01-01?02:06??MyJavaExpert?V1.0\db\T_FamilyMember.db
?????文件?????????472??2012-01-01?02:06??MyJavaExpert?V1.0\db\T_Home.db
?????目錄???????????0??2011-12-31?21:17??MyJavaExpert?V1.0\src\
?????目錄???????????0??2011-12-29?23:27??MyJavaExpert?V1.0\src\com\
?????目錄???????????0??2011-12-29?23:39??MyJavaExpert?V1.0\src\com\ross\
?????目錄???????????0??2012-01-01?01:06??MyJavaExpert?V1.0\src\com\ross\filedb\
?????文件???????23337??2012-01-01?02:05??MyJavaExpert?V1.0\src\com\ross\filedb\FileDBTool.java
?????目錄???????????0??2011-12-30?00:26??MyJavaExpert?V1.0\src\com\ross\filedb\tablebean\
............此處省略10個文件信息
評論
共有 條評論