资源简介
java语言写的android系统,用于个人账目管理,课程设计上写的欢迎下载
package moneymanager.moneymanager;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
/*
*
* 데이터베이스를 관리하는 클래스입니다.
*
*/
public class DBAdapter
{
private static final String TAG = "NotesDbAdapter";
private DatabaseHelper mDbHelper;
private SQLiteDatabase mDb;
// 데이터베이스이름과 테블이름들을 정의
private static final String DATABASE_NAME = "MoneyManagerDB";
private static final int DATABASE_VERSION = 2;
private static final String DATABASE_SETTING_TABLE = "SettingTbl";
private static final String DATABASE_BADGET_TABLE = "BadgetTbl";
private static final String DATABASE_PAYMENT_TABLE = "PaymentTbl";
// 테블안의 항목들을 정의
public static final String KEY_SETTINGTBL_ID = "ID";
public static final String KEY_SETTINGTBL_NAME = "Name";
public static final String KEY_SETTINGTBL_VALUE = "Value";
public static final String KEY_BADGETTBL_ID = "ID";
public static final String KEY_BADGETTBL_ITEM = "Item";
public static final String KEY_BADGETTBL_MONEY = "Money";
public static final String KEY_PAYMENTTBL_ID = "ID";
public static final String KEY_PAYMENTTBL_BADGETID = "BadgetID";
public static final String KEY_PAYMENTTBL_OUTDATE = "OutDate";
public static final String KEY_PAYMENTTBL_MONEY = "Money";
public static final String KEY_PAYMENTTBL_NOTE = "Note";
private final Context mCtx;
private static class DatabaseHelper extends SQLiteOpenHelper
{
DatabaseHelper(Context context)
{
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
@Override
public void onCreate(SQLiteDatabase db)
{
String strCreateTbl;
// SettingTbl생성
strCreateTbl = "CREATE TABLE " + DATABASE_SETTING_TABLE + " ("
+ KEY_SETTINGTBL_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, "
+ KEY_SETTINGTBL_NAME + " TEXT NOT NULL, "
代码片段和文件信息
/** Automatically generated file. DO NOT MODIFY */
package moneymanager.moneymanager;
public final class BuildConfig {
public final static boolean DEBUG = true;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 475 2013-08-28 11:14 Money Management\.classpath
文件 848 2012-10-09 22:27 Money Management\.project
文件 177 2013-08-28 11:14 Money Management\.settings\org.eclipse.jdt.core.prefs
文件 1243 2012-10-16 23:26 Money Management\AndroidManifest.xm
文件 1243 2013-08-28 11:14 Money Management\bin\AndroidManifest.xm
文件 1763 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\BadgetActivity$1.class
文件 933 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\BadgetActivity$2.class
文件 2399 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\BadgetActivity$3.class
文件 867 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\BadgetActivity$4.class
文件 7188 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\BadgetActivity.class
文件 1471 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\BadgetMenuActivity.class
文件 3617 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\BadgetViewActivity.class
文件 359 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\BuildConfig.class
文件 2587 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\ChangePasswordActivity.class
文件 2225 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\DBAdapter$Databa
文件 6596 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\DBAdapter.class
文件 2027 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\LoginActivity$1.class
文件 3773 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\LoginActivity.class
文件 2001 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\MoneyManagerActivity.class
文件 3021 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\MoneyManagerApplication.class
文件 1129 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\PaymentActivity$1.class
文件 864 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\PaymentActivity$2.class
文件 5527 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\PaymentActivity.class
文件 361 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\R$attr.class
文件 468 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\R$drawable.class
文件 2078 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\R$id.class
文件 613 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\R$layout.class
文件 448 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\R$string.class
文件 580 2013-08-28 11:14 Money Management\bin\classes\moneymanager\moneymanager\R.class
文件 33664 2013-08-28 11:14 Money Management\bin\classes.dex
............此处省略61个文件信息
- 上一篇:Java_斑马打印机打印标签
- 下一篇:java版多媒体教室管系统源文件
评论
共有 条评论