├── project
├── lint.xml
├── src
│ └── main
│ │ └── java
│ │ ├── com
│ │ ├── piglet
│ │ │ ├── core
│ │ │ │ ├── help.properties
│ │ │ │ └── MysqlHelper.java
│ │ │ ├── dao
│ │ │ │ ├── pojo
│ │ │ │ │ ├── Row.java
│ │ │ │ │ ├── Cell.java
│ │ │ │ │ ├── Table.java
│ │ │ │ │ ├── Database.java
│ │ │ │ │ ├── TableProperty.java
│ │ │ │ │ └── ConnectionInfo.java
│ │ │ │ └── impl
│ │ │ │ │ └── ConnectionInfoDao.java
│ │ │ ├── worker
│ │ │ │ └── Worker.java
│ │ │ ├── utils
│ │ │ │ ├── MysqlUtils.java
│ │ │ │ ├── Constant.java
│ │ │ │ └── UnitConverter.java
│ │ │ ├── widget
│ │ │ │ ├── ResizeLayout.java
│ │ │ │ └── SpaceTokenizer.java
│ │ │ ├── adapter
│ │ │ │ ├── TbAdapter.java
│ │ │ │ ├── DbAdapter.java
│ │ │ │ ├── PropAdapter.java
│ │ │ │ └── ConnInfoAdapter.java
│ │ │ └── ui
│ │ │ │ └── PropActivity.java
│ │ ├── ben
│ │ │ └── data
│ │ │ │ ├── DatabaseUtils.java
│ │ │ │ ├── GenericDao.java
│ │ │ │ ├── DatabaseHelper.java
│ │ │ │ └── DbDao.java
│ │ ├── MysqlCliApplication.java
│ │ └── report1413634005175
│ │ └── net
│ │ └── tsz
│ │ └── afinal
│ │ ├── db
│ │ ├── table
│ │ │ ├── Id.java
│ │ │ ├── OneToMany.java
│ │ │ ├── ManyToOne.java
│ │ │ └── KeyValue.java
│ │ └── sqlite
│ │ │ ├── SqlInfo.java
│ │ │ ├── OneToManyLazyLoader.java
│ │ │ ├── ManyToOneLazyLoader.java
│ │ │ └── DbModel.java
│ │ ├── exception
│ │ ├── HttpException.java
│ │ ├── ViewException.java
│ │ ├── DbException.java
│ │ └── AfinalException.java
│ │ ├── http
│ │ ├── entityhandler
│ │ │ ├── EntityCallBack.java
│ │ │ ├── StringEntityHandler.java
│ │ │ └── FileEntityHandler.java
│ │ ├── AjaxCallBack.java
│ │ ├── SyncRequestHandler.java
│ │ └── RetryHandler.java
│ │ ├── bitmap
│ │ ├── download
│ │ │ └── Downloader.java
│ │ ├── core
│ │ │ ├── IMemoryCache.java
│ │ │ ├── BaseMemoryCacheImpl.java
│ │ │ ├── SoftMemoryCacheImpl.java
│ │ │ ├── BytesBufferPool.java
│ │ │ ├── BitmapDisplayConfig.java
│ │ │ └── BitmapProcess.java
│ │ └── display
│ │ │ ├── Displayer.java
│ │ │ └── SimpleDisplayer.java
│ │ ├── annotation
│ │ ├── sqlite
│ │ │ ├── Transient.java
│ │ │ ├── Table.java
│ │ │ ├── ManyToOne.java
│ │ │ ├── OneToMany.java
│ │ │ ├── Property.java
│ │ │ └── Id.java
│ │ └── view
│ │ │ ├── Select.java
│ │ │ └── ViewInject.java
│ │ └── core
│ │ └── FileNameGenerator.java
├── res
│ ├── drawable-hdpi
│ │ ├── pre.png
│ │ ├── conn.png
│ │ ├── first.png
│ │ ├── last.png
│ │ ├── logo1.png
│ │ ├── logo2.png
│ │ ├── next.png
│ │ ├── table.png
│ │ ├── dbicon.png
│ │ ├── property.png
│ │ ├── unconn.png
│ │ ├── add_normal.png
│ │ ├── add_pressed.png
│ │ ├── conn_disabled.png
│ │ ├── conn_enabled.png
│ │ ├── first_pressed.png
│ │ ├── ic_launcher.png
│ │ ├── last_pressed.png
│ │ ├── next_pressed.png
│ │ ├── pre_pressed.png
│ │ ├── purplecow_n.png
│ │ ├── purplecow_p.png
│ │ ├── umeng_update_close_bg_tap.png
│ │ ├── umeng_update_close_bg_normal.png
│ │ ├── umeng_update_btn_check_off_holo_light.png
│ │ ├── umeng_update_btn_check_on_holo_light.png
│ │ ├── umeng_update_btn_check_off_focused_holo_light.png
│ │ ├── umeng_update_btn_check_off_pressed_holo_light.png
│ │ ├── umeng_update_btn_check_on_focused_holo_light.png
│ │ └── umeng_update_btn_check_on_pressed_holo_light.png
│ ├── drawable
│ │ ├── umeng_fb_logo.png
│ │ ├── umeng_fb_bar_bg.9.png
│ │ ├── umeng_fb_arrow_right.png
│ │ ├── umeng_fb_back_normal.png
│ │ ├── umeng_fb_list_item.9.png
│ │ ├── umeng_fb_tick_normal.png
│ │ ├── umeng_fb_back_selected.png
│ │ ├── umeng_fb_statusbar_icon.png
│ │ ├── umeng_fb_tick_selected.png
│ │ ├── umeng_fb_user_bubble.9.png
│ │ ├── umeng_fb_write_normal.png
│ │ ├── umeng_fb_write_pressed.png
│ │ ├── umeng_fb_conversation_bg.png
│ │ ├── umeng_fb_reply_left_bg.9.png
│ │ ├── umeng_fb_reply_right_bg.9.png
│ │ ├── umeng_fb_see_list_normal.png
│ │ ├── umeng_fb_see_list_pressed.png
│ │ ├── umeng_update_wifi_disable.png
│ │ ├── umeng_fb_list_item_pressed.9.png
│ │ ├── fb_text.xml
│ │ ├── umeng_update_dialog_bg.xml
│ │ ├── logo.xml
│ │ ├── sel_last.xml
│ │ ├── sel_next.xml
│ │ ├── sel_pre.xml
│ │ ├── add.xml
│ │ ├── sel_first.xml
│ │ ├── purplecow.xml
│ │ ├── rectbgbold.xml
│ │ ├── rectbghead.xml
│ │ ├── umeng_fb_top_banner.xml
│ │ ├── rectbg.xml
│ │ ├── umeng_update_button_ok_bg_tap.xml
│ │ ├── umeng_update_button_cancel_bg_tap.xml
│ │ ├── umeng_common_gradient_red.xml
│ │ ├── umeng_fb_gradient_green.xml
│ │ ├── umeng_fb_gradient_orange.xml
│ │ ├── umeng_common_gradient_green.xml
│ │ ├── umeng_common_gradient_orange.xml
│ │ ├── umeng_fb_write_selector.xml
│ │ ├── connection.xml
│ │ ├── umeng_fb_point_new.xml
│ │ ├── umeng_fb_point_normal.xml
│ │ ├── umeng_fb_submit_selector.xml
│ │ ├── umeng_fb_list_item_selector.xml
│ │ ├── umeng_fb_see_list_selector.xml
│ │ ├── umeng_update_button_ok_bg_focused.xml
│ │ ├── umeng_update_button_cancel_bg_focused.xml
│ │ ├── umeng_update_button_cancel_bg_normal.xml
│ │ ├── umeng_update_button_ok_bg_normal.xml
│ │ ├── umeng_fb_gray_frame.xml
│ │ ├── umeng_update_title_bg.xml
│ │ ├── umeng_fb_back_selector.xml
│ │ ├── umeng_fb_tick_selector.xml
│ │ ├── umeng_fb_btn_bg_selector.xml
│ │ ├── bg_popup_item_selector.xml
│ │ ├── umeng_update_button_close_bg_selector.xml
│ │ ├── umeng_update_button_ok_bg_selector.xml
│ │ ├── umeng_update_button_cancel_bg_selector.xml
│ │ └── umeng_update_button_check_selector.xml
│ ├── drawable-mdpi
│ │ └── ic_launcher.png
│ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ │ ├── bg_dialog.9.png
│ │ ├── ic_launcher.png
│ │ └── icon_prompt_s.png
│ ├── anim
│ │ ├── accelerate_interpolator.xml
│ │ ├── decelerate_interpolator.xml
│ │ ├── la_page_zoom.xml
│ │ ├── la_pageturning_top.xml
│ │ ├── la_pageturning_bottom.xml
│ │ ├── dialer_hide.xml
│ │ ├── dialer_show.xml
│ │ ├── bottom_in.xml
│ │ ├── bottom_out.xml
│ │ ├── top_in.xml
│ │ ├── top_out.xml
│ │ ├── disappear.xml
│ │ ├── renren_photo_bottom_in.xml
│ │ ├── renren_photo_bottom_out.xml
│ │ ├── umeng_fb_slide_in_from_left.xml
│ │ ├── umeng_fb_slide_in_from_right.xml
│ │ ├── umeng_fb_slide_out_from_left.xml
│ │ ├── umeng_fb_slide_out_from_right.xml
│ │ ├── dialog_exit.xml
│ │ ├── match_sync_loading.xml
│ │ ├── sync_progress.xml
│ │ ├── cloud_sync_refresh.xml
│ │ ├── grow_from_down_to_top.xml
│ │ ├── zoom.xml
│ │ ├── pump_top.xml
│ │ ├── pump_bottom.xml
│ │ ├── grow_from_top.xml
│ │ ├── grow_from_bottom.xml
│ │ ├── grow_from_bottomleft_to_topright.xml
│ │ ├── grow_from_bottomright_to_topleft.xml
│ │ ├── grow_from_topright_to_bottomleft.xml
│ │ ├── pageturning_top.xml
│ │ ├── shrink_from_bottom.xml
│ │ ├── shrink_from_bottomleft_to_topright.xml
│ │ ├── shrink_from_top.xml
│ │ ├── grow_from_topleft_to_bottomright.xml
│ │ ├── shrink_from_bottomright_to_topleft.xml
│ │ ├── shrink_from_topleft_to_bottomright.xml
│ │ ├── shrink_from_topright_to_bottomleft.xml
│ │ ├── dialog_enter.xml
│ │ ├── match_sync_enter.xml
│ │ └── pageturning_bottom.xml
│ ├── values-sw600dp
│ │ └── dimens.xml
│ ├── layout
│ │ ├── umeng_fb_new_reply_alert_dialog.xml
│ │ ├── popup_title.xml
│ │ ├── umeng_fb_list_header.xml
│ │ ├── db_item.xml
│ │ ├── tb_item.xml
│ │ ├── prop_item.xml
│ │ ├── activity_about.xml
│ │ ├── conn_item.xml
│ │ ├── activity_db.xml
│ │ ├── activity_tb.xml
│ │ ├── activity_prop.xml
│ │ ├── popup_item.xml
│ │ ├── activity_main.xml
│ │ ├── umeng_fb_list_item.xml
│ │ └── umeng_fb_activity_contact.xml
│ ├── menu
│ │ ├── main.xml
│ │ ├── tablelist.xml
│ │ └── connlist.xml
│ ├── color
│ │ ├── deep_gray_green_text_return.xml
│ │ ├── detail_gray_green_text_return.xml
│ │ ├── heavy_black_to_green_text_return.xml
│ │ ├── blue_text_return.xml
│ │ ├── red_text_return.xml
│ │ ├── black_to_green_text_return.xml
│ │ ├── deepgray_text_return.xml
│ │ ├── gray_black_text_return.xml
│ │ ├── gray_text_return.xml
│ │ ├── black_text_return.xml
│ │ ├── match_sync_text_return.xml
│ │ ├── popup_item_selector.xml
│ │ ├── black_to_white_return.xml
│ │ ├── gray_guide_login_text_selector.xml
│ │ ├── green_to_black_return.xml
│ │ ├── green_to_white_return.xml
│ │ ├── white_text_orange_return.xml
│ │ ├── gray_text_orange_return.xml
│ │ ├── gray_text_white_return.xml
│ │ ├── red_gray_text_selector.xml
│ │ ├── white_text_blue_return.xml
│ │ ├── green_gray_text_selector.xml
│ │ ├── gray_blue_text_return.xml
│ │ ├── gray_red_text_return.xml
│ │ └── gray_green_text_return.xml
│ ├── values-sw720dp-land
│ │ └── dimens.xml
│ ├── values-v11
│ │ └── styles.xml
│ ├── values-v14
│ │ └── styles.xml
│ ├── values
│ │ ├── dimens.xml
│ │ ├── umeng_update_string.xml
│ │ ├── umeng_fb_strings.xml
│ │ └── umeng_common_strings.xml
│ ├── values-ja
│ │ └── umeng_fb_strings.xml
│ └── values-zh
│ │ ├── umeng_update_string.xml
│ │ ├── umeng_fb_strings.xml
│ │ ├── umeng_common_strings.xml
│ │ └── strings.xml
├── libs
│ └── armeabi
│ │ └── libbspatch.so
├── .settings
│ ├── org.eclipse.m2e.core.prefs
│ ├── org.eclipse.core.resources.prefs
│ └── org.eclipse.jdt.core.prefs
├── README.md
└── AndroidManifest.xml
├── README.md
└── release
└── MysqlCli_20141120.apk
/project/lint.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # aMysqlClient
2 | 一个类似于Navicat的Mysql Android客户端
3 |
4 | **如果你想要构建这个工程,请使用 Maven。**
5 |
--------------------------------------------------------------------------------
/project/src/main/java/com/piglet/core/help.properties:
--------------------------------------------------------------------------------
1 | OP=PRESS 'mysql>'
2 | USAGE=Show recent cmds.
3 |
4 |
--------------------------------------------------------------------------------
/release/MysqlCli_20141120.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/release/MysqlCli_20141120.apk
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/pre.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/pre.png
--------------------------------------------------------------------------------
/project/src/main/java/com/piglet/dao/pojo/Row.java:
--------------------------------------------------------------------------------
1 | package com.piglet.dao.pojo;
2 |
3 | public class Row {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/project/libs/armeabi/libbspatch.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/libs/armeabi/libbspatch.so
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/conn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/conn.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/first.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/first.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/last.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/last.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/logo1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/logo1.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/logo2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/logo2.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/next.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/table.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/table.png
--------------------------------------------------------------------------------
/project/src/main/java/com/piglet/dao/pojo/Cell.java:
--------------------------------------------------------------------------------
1 | package com.piglet.dao.pojo;
2 |
3 | public class Cell {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/dbicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/dbicon.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/property.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/property.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/unconn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/unconn.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_logo.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/add_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/add_normal.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/add_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/add_pressed.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/conn_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/conn_disabled.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/conn_enabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/conn_enabled.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/first_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/first_pressed.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/last_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/last_pressed.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/next_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/next_pressed.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/pre_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/pre_pressed.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/purplecow_n.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/purplecow_n.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/purplecow_p.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/purplecow_p.png
--------------------------------------------------------------------------------
/project/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/project/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/project/res/drawable-xxhdpi/bg_dialog.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-xxhdpi/bg_dialog.9.png
--------------------------------------------------------------------------------
/project/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_bar_bg.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_bar_bg.9.png
--------------------------------------------------------------------------------
/project/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/project/res/drawable-xxhdpi/icon_prompt_s.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-xxhdpi/icon_prompt_s.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_arrow_right.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_back_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_back_normal.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_list_item.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_list_item.9.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_tick_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_tick_normal.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_back_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_back_selected.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_statusbar_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_statusbar_icon.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_tick_selected.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_tick_selected.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_user_bubble.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_user_bubble.9.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_write_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_write_normal.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_write_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_write_pressed.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_conversation_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_conversation_bg.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_reply_left_bg.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_reply_left_bg.9.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_reply_right_bg.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_reply_right_bg.9.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_see_list_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_see_list_normal.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_see_list_pressed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_see_list_pressed.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_wifi_disable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_update_wifi_disable.png
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_list_item_pressed.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable/umeng_fb_list_item_pressed.9.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/umeng_update_close_bg_tap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/umeng_update_close_bg_tap.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/umeng_update_close_bg_normal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/umeng_update_close_bg_normal.png
--------------------------------------------------------------------------------
/project/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/project/res/anim/accelerate_interpolator.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/umeng_update_btn_check_off_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/umeng_update_btn_check_off_holo_light.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/umeng_update_btn_check_on_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/umeng_update_btn_check_on_holo_light.png
--------------------------------------------------------------------------------
/project/res/anim/decelerate_interpolator.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/project/res/anim/la_page_zoom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/umeng_update_btn_check_off_focused_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/umeng_update_btn_check_off_focused_holo_light.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/umeng_update_btn_check_off_pressed_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/umeng_update_btn_check_off_pressed_holo_light.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/umeng_update_btn_check_on_focused_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/umeng_update_btn_check_on_focused_holo_light.png
--------------------------------------------------------------------------------
/project/res/drawable-hdpi/umeng_update_btn_check_on_pressed_holo_light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bennyhuo/aMysqlClient/HEAD/project/res/drawable-hdpi/umeng_update_btn_check_on_pressed_holo_light.png
--------------------------------------------------------------------------------
/project/res/anim/la_pageturning_top.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/project/res/anim/la_pageturning_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
--------------------------------------------------------------------------------
/project/res/anim/dialer_hide.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/project/res/anim/dialer_show.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/project/res/values-sw600dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/project/src/main/java/com/piglet/dao/impl/ConnectionInfoDao.java:
--------------------------------------------------------------------------------
1 | package com.piglet.dao.impl;
2 |
3 | import com.ben.data.DbDao;
4 | import com.piglet.dao.pojo.ConnectionInfo;
5 |
6 | public class ConnectionInfoDao extends DbDao {
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/project/res/drawable/fb_text.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/src/main/java/com/ben/data/DatabaseUtils.java:
--------------------------------------------------------------------------------
1 | package com.ben.data;
2 |
3 | import net.tsz.afinal.FinalDb;
4 |
5 | public class DatabaseUtils {
6 | public static FinalDb getDatabase(){
7 | return DatabaseHelper.getInstance().getDb();
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_dialog_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/project/res/layout/umeng_fb_new_reply_alert_dialog.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/drawable/logo.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/drawable/sel_last.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/drawable/sel_next.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/drawable/sel_pre.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/anim/bottom_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/project/res/anim/bottom_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/project/res/anim/top_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/project/res/anim/top_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/project/res/drawable/add.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/drawable/sel_first.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/project/res/drawable/purplecow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/drawable/rectbgbold.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/project/res/drawable/rectbghead.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_top_banner.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
--------------------------------------------------------------------------------
/project/res/anim/disappear.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
--------------------------------------------------------------------------------
/project/res/drawable/rectbg.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/project/res/anim/renren_photo_bottom_in.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/project/res/anim/renren_photo_bottom_out.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
--------------------------------------------------------------------------------
/project/res/color/deep_gray_green_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/color/detail_gray_green_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/values-sw720dp-land/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 | 128dp
8 |
9 |
--------------------------------------------------------------------------------
/project/res/anim/umeng_fb_slide_in_from_left.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_button_ok_bg_tap.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/anim/umeng_fb_slide_in_from_right.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
--------------------------------------------------------------------------------
/project/res/anim/umeng_fb_slide_out_from_left.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
--------------------------------------------------------------------------------
/project/res/anim/umeng_fb_slide_out_from_right.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_button_cancel_bg_tap.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_common_gradient_red.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_gradient_green.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_gradient_orange.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_common_gradient_green.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_common_gradient_orange.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_write_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/project/src/main/java/com/MysqlCliApplication.java:
--------------------------------------------------------------------------------
1 | package com;
2 |
3 | import android.app.Application;
4 |
5 | import com.ben.data.DatabaseHelper;
6 |
7 | public class MysqlCliApplication extends Application{
8 |
9 | @Override
10 | public void onCreate() {
11 | DatabaseHelper.getInstance().init(this);
12 | super.onCreate();
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/project/res/drawable/connection.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
10 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_point_new.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
7 |
8 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_point_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
7 |
8 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_submit_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_list_item_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
7 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_see_list_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_button_ok_bg_focused.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_button_cancel_bg_focused.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/color/heavy_black_to_green_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/anim/dialog_exit.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_button_cancel_bg_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_button_ok_bg_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/project/res/anim/match_sync_loading.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
--------------------------------------------------------------------------------
/project/res/anim/sync_progress.xml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
--------------------------------------------------------------------------------
/project/res/values-v11/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
10 |
11 |
--------------------------------------------------------------------------------
/project/res/anim/cloud_sync_refresh.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_gray_frame.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/project/res/color/blue_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/project/res/menu/tablelist.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/project/res/color/red_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_title_bg.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/color/black_to_green_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/project/res/color/deepgray_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/project/res/color/gray_black_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/project/res/color/gray_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/project/res/color/black_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/project/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/project/README.md:
--------------------------------------------------------------------------------
1 | aMysqlClient
2 | ============
3 |
4 | 一个类似于Navicat的Mysql Android客户端
5 |
6 | # 功能简介 #
7 |
8 | 1. 支持简易模式,可以直接查看Mysql数据库的表结构、表数据等等。
9 | 2. 支持命令行模式,命令模式有历史记录,有常用命令支持,还有常用词快捷输入,支持事务等功能等等。
10 |
11 | # 使用方法 #
12 | 这个应用是面向程序员的,我想这么简单的东西。。有问题还是直接发邮件吧,[enbandari@qq.com](enbandari@qq.com)
13 |
14 | # 鸣谢 #
15 | 1. 项目中使用到了Spring jdbc, Dbcp连接池这些web应用中常见的框架,也用到了国内杨福海大神开源的Afinal框架的db模块。感谢。
16 | 2. 感谢小伙伴在半夜两点还找我查Mysql服务器的数据,迫使我花了一个多星期写了个这么个app。
17 |
18 |
--------------------------------------------------------------------------------
/project/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16dp
5 | 16dp
6 | 48.33dp
7 | 17sp
8 | 14sp
9 |
10 |
--------------------------------------------------------------------------------
/project/res/color/match_sync_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/project/res/color/popup_item_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/color/black_to_white_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/color/gray_guide_login_text_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/project/res/color/green_to_black_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/color/green_to_white_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/color/white_text_orange_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_back_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_tick_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/project/res/anim/grow_from_down_to_top.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
14 |
--------------------------------------------------------------------------------
/project/res/color/gray_text_orange_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/color/gray_text_white_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/color/red_gray_text_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/color/white_text_blue_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/color/green_gray_text_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_fb_btn_bg_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/project/res/color/gray_blue_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/drawable/bg_popup_item_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_button_close_bg_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
8 |
10 |
11 |
--------------------------------------------------------------------------------
/project/res/anim/zoom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
15 |
16 |
--------------------------------------------------------------------------------
/project/res/color/gray_red_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/color/gray_green_text_return.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/project/res/anim/pump_top.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_button_ok_bg_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
8 |
10 |
11 |
--------------------------------------------------------------------------------
/project/res/anim/pump_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/project/res/drawable/umeng_update_button_cancel_bg_selector.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
8 |
10 |
11 |
--------------------------------------------------------------------------------
/project/res/anim/grow_from_top.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/project/res/anim/grow_from_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/project/res/anim/grow_from_bottomleft_to_topright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
--------------------------------------------------------------------------------
/project/res/anim/grow_from_bottomright_to_topleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
--------------------------------------------------------------------------------
/project/res/anim/grow_from_topright_to_bottomleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
--------------------------------------------------------------------------------
/project/res/anim/pageturning_top.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
16 |
17 |
--------------------------------------------------------------------------------
/project/res/anim/shrink_from_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/project/res/anim/shrink_from_bottomleft_to_topright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
--------------------------------------------------------------------------------
/project/res/anim/shrink_from_top.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/project/res/anim/grow_from_topleft_to_bottomright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/project/res/anim/shrink_from_bottomright_to_topleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/project/res/anim/shrink_from_topleft_to_bottomright.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
--------------------------------------------------------------------------------
/project/res/anim/shrink_from_topright_to_bottomleft.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
14 |
15 |
--------------------------------------------------------------------------------
/project/src/main/java/com/ben/data/GenericDao.java:
--------------------------------------------------------------------------------
1 | package com.ben.data;
2 |
3 | import java.util.List;
4 |
5 | public interface GenericDao {
6 |
7 | public void save(T entity);
8 |
9 | public void update(T entity);
10 |
11 | public void delete(T entity);
12 |
13 | public T findById(Object id);
14 |
15 | //所有非单记录查询,都应该提供相应的分页接口。
16 | public List findAll();
17 |
18 | public List findAll(int pageMax, int pageStart);
19 |
20 | public List findByKeys(String[] keys, Object[] values);
21 |
22 | public List findByKeys(String[] keys, Object[] values, int pageMax, int pageStart);
23 | }
24 |
--------------------------------------------------------------------------------
/project/res/anim/dialog_enter.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/anim/match_sync_enter.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/project/res/values-ja/umeng_fb_strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | メール、電話、その他の連絡先
5 | 更新
6 | 戻る
7 | お客様のご返答
8 | 連絡
9 |
10 | 送信
11 |
12 |
13 | 新しい回答を持っている
14 |
15 |
--------------------------------------------------------------------------------
/project/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=1.6
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
12 | org.eclipse.jdt.core.compiler.source=1.6
13 |
--------------------------------------------------------------------------------
/project/res/values-zh/umeng_update_string.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 未联网
4 | 发现新版本
5 | 最新版本:
6 | 更新内容
7 | 仅需要下载:
8 | 新版本大小:
9 | (提示:非WIFI环境)
10 | 立即更新
11 | 应用更新
12 | 以后再说
13 | 忽略该版
14 | 正在更新中....
15 | 最新版本已下载,是否安装?
16 |
17 |
--------------------------------------------------------------------------------
/project/res/menu/connlist.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/project/src/main/java/com/piglet/dao/pojo/Table.java:
--------------------------------------------------------------------------------
1 | package com.piglet.dao.pojo;
2 |
3 | import net.tsz.afinal.annotation.sqlite.Id;
4 |
5 | public class Table {
6 | @Id
7 | private String name;
8 |
9 | private String content;
10 |
11 | public Table(){
12 |
13 | }
14 |
15 | public Table(Table table){
16 | this.name = table.name;
17 | this.content = table.content;
18 | }
19 |
20 | public Table(String name , String content){
21 | this.name = name;
22 | this.content = content;
23 | }
24 |
25 | public String getName() {
26 | return name;
27 | }
28 |
29 | public void setName(String name) {
30 | this.name = name;
31 | }
32 |
33 | public String getContent() {
34 | return content;
35 | }
36 |
37 | public void setContent(String content) {
38 | this.content = content;
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/db/table/Id.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.db.table;
17 |
18 | public class Id extends Property{
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/project/src/main/java/com/piglet/dao/pojo/Database.java:
--------------------------------------------------------------------------------
1 | package com.piglet.dao.pojo;
2 |
3 | import net.tsz.afinal.annotation.sqlite.Id;
4 |
5 | public class Database {
6 | @Id
7 | private String name;
8 |
9 | private String content;
10 |
11 | public Database(){
12 |
13 | }
14 |
15 | public Database(Database db){
16 | this.name = db.name;
17 | this.content = db.content;
18 | }
19 |
20 | public Database(String name , String content){
21 | this.name = name;
22 | this.content = content;
23 | }
24 |
25 | public String getName() {
26 | return name;
27 | }
28 |
29 | public void setName(String name) {
30 | this.name = name;
31 | }
32 |
33 | public String getContent() {
34 | return content;
35 | }
36 |
37 | public void setContent(String content) {
38 | this.content = content;
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/project/src/main/java/com/piglet/worker/Worker.java:
--------------------------------------------------------------------------------
1 | package com.piglet.worker;
2 |
3 | import java.util.concurrent.LinkedBlockingQueue;
4 | import java.util.concurrent.ThreadPoolExecutor;
5 | import java.util.concurrent.TimeUnit;
6 |
7 |
8 |
9 | public class Worker {
10 | private ThreadPoolExecutor taskExecutor;
11 | private static Worker executor = new Worker();
12 |
13 | private Worker() {
14 | this.taskExecutor = new ThreadPoolExecutor(1, 1, 60, TimeUnit.SECONDS, new LinkedBlockingQueue());
15 | }
16 |
17 | public static Worker getInstance() {
18 | return executor;
19 | }
20 |
21 | public void addTask(Runnable task) {
22 | if (!this.taskExecutor.isShutdown()) {
23 | this.taskExecutor.execute(task);
24 | }
25 | }
26 |
27 | public void shutdown() {
28 | this.taskExecutor.shutdown();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/project/src/main/java/com/piglet/utils/MysqlUtils.java:
--------------------------------------------------------------------------------
1 | package com.piglet.utils;
2 |
3 | import android.text.TextUtils;
4 |
5 | public class MysqlUtils {
6 | public static boolean checkHost(String host) {
7 | if (TextUtils.isEmpty(host) || !host.matches("[a-zA-z\\d.-]+")) {
8 | return false;
9 | }
10 | return true;
11 | }
12 |
13 | public static boolean checkDbName(String dbname) {
14 | if (TextUtils.isEmpty(dbname) || !dbname.matches("[a-zA-z\\d_]+")) {
15 | return false;
16 | }
17 | return true;
18 | }
19 |
20 | public static boolean checkUserName(String username) {
21 | if (TextUtils.isEmpty(username)) {
22 | return false;
23 | }
24 | return true;
25 | }
26 |
27 | public static boolean checkPassword(String password) {
28 | if (TextUtils.isEmpty(password)) {
29 | return false;
30 | }
31 | return true;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/project/src/main/java/com/ben/data/DatabaseHelper.java:
--------------------------------------------------------------------------------
1 | package com.ben.data;
2 |
3 | import net.tsz.afinal.FinalDb;
4 | import android.content.Context;
5 |
6 | /**
7 | * 绑定到主线程了
8 | * @author Enbandari
9 | *
10 | */
11 | public class DatabaseHelper{
12 | private static DatabaseHelper instance;
13 | private Context context;
14 | private FinalDb db;
15 | private ThreadLocal dbHolder;
16 |
17 | private DatabaseHelper() {
18 |
19 | }
20 |
21 | public void init(Context context){
22 | this.context = context;
23 | dbHolder = new ThreadLocal();
24 | db = FinalDb.create(context);
25 | dbHolder.set(db);
26 | }
27 |
28 | public static DatabaseHelper getInstance(){
29 | if(instance == null){
30 | instance = new DatabaseHelper();
31 | }
32 | return instance;
33 | }
34 |
35 | public FinalDb getDb(){
36 | return db;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/exception/HttpException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.exception;
17 |
18 | public class HttpException extends AfinalException {
19 | private static final long serialVersionUID = 1L;
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/http/entityhandler/EntityCallBack.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.http.entityhandler;
17 |
18 | public interface EntityCallBack {
19 | public void callBack(long count,long current,boolean mustNoticeUI);
20 | }
21 |
--------------------------------------------------------------------------------
/project/src/main/java/com/piglet/utils/Constant.java:
--------------------------------------------------------------------------------
1 | package com.piglet.utils;
2 |
3 | public class Constant {
4 | public class key {
5 | public static final String CONNECTION_INFO_NAME = "connection_info_name";
6 | public static final String CONNECTION_INFO = "connection_info";
7 |
8 | public static final String DATABASE = "Database";
9 | public static final String TABLE = "table";
10 | public static final String TABLE_IN_DB = "Tables_in_";
11 |
12 | public static final String QUERY_TIME = "query_time";
13 | public static final String QUERY_TYPE= "query_type";
14 | public static final String QUERY_RESULT = "query_result";
15 | }
16 |
17 | public class value{
18 | public static final int WHAT_DATA_RETURNED = 0;
19 | public static final int WHAT_DATA_EMPTY = 1;
20 | public static final int WHAT_FAILED_TO_CONNECT = 2;
21 | public static final int WHAT_UPDATE_RETURNED= 3;
22 | public static final int WHAT_ERROR_OCCURRED = 4;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/project/src/main/java/com/piglet/widget/ResizeLayout.java:
--------------------------------------------------------------------------------
1 | package com.piglet.widget;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 | import android.widget.RelativeLayout;
6 |
7 | public class ResizeLayout extends RelativeLayout{
8 | private OnResizeListener mListener;
9 |
10 | public interface OnResizeListener {
11 | void OnResize(int w, int h, int oldw, int oldh);
12 | }
13 |
14 | public void setOnResizeListener(OnResizeListener l) {
15 | mListener = l;
16 | }
17 |
18 | public ResizeLayout(Context context, AttributeSet attrs) {
19 | super(context, attrs);
20 | }
21 |
22 | @Override
23 | protected void onSizeChanged(int w, int h, int oldw, int oldh) {
24 | super.onSizeChanged(w, h, oldw, oldh);
25 |
26 | if (mListener != null) {
27 | mListener.OnResize(w, h, oldw, oldh);
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/project/res/values/umeng_update_string.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Please make sure you are connected to internet,update failed
5 | New version found
6 | Latest version:
7 | Update Content
8 | Update size:
9 | Target size:
10 | (Warning: Not WIFI Condition)
11 | Update now
12 | App updating
13 | Not now
14 | Ingore this
15 | Updating....
16 | The lastest version has been downloaded, install now ?
17 | 2.4.2.20140520
18 |
19 |
20 |
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/bitmap/download/Downloader.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.bitmap.download;
17 |
18 |
19 | public interface Downloader {
20 |
21 | /**
22 | * 请求网络的inputStream填充outputStream
23 | * @param urlString
24 | * @param outputStream
25 | * @return
26 | */
27 | public byte[] download(String urlString);
28 | }
29 |
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/bitmap/core/IMemoryCache.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.bitmap.core;
17 |
18 | import android.graphics.Bitmap;
19 |
20 | public interface IMemoryCache {
21 |
22 | public void put(String key,Bitmap bitmap);
23 | public Bitmap get(String key);
24 | public void evictAll();
25 | public void remove(String key);
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/project/res/values-zh/umeng_fb_strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | QQ, 电话等我们能联系您的联系方式
5 | 更新于
6 | 返回
7 | 用户反馈
8 | 填写联系信息
9 | 联系方式
10 | 我想说
11 | 发送
12 | 你好, 我是产品经理,欢迎您反馈使用产品的感受和建议
13 | 2013年3月12日 13:24:00
14 | 有新的回复
15 |
16 | 新回复: %s
17 | 收到来自开发者的 %d 条回复。
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/db/table/OneToMany.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.db.table;
17 |
18 | public class OneToMany extends Property{
19 |
20 | private Class> oneClass;
21 |
22 | public Class> getOneClass() {
23 | return oneClass;
24 | }
25 |
26 | public void setOneClass(Class> oneClass) {
27 | this.oneClass = oneClass;
28 | }
29 |
30 |
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/db/table/ManyToOne.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.db.table;
17 |
18 | public class ManyToOne extends Property{
19 |
20 | private Class> manyClass;
21 |
22 | public Class> getManyClass() {
23 | return manyClass;
24 | }
25 |
26 | public void setManyClass(Class> manyClass) {
27 | this.manyClass = manyClass;
28 | }
29 |
30 |
31 |
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/project/res/values-zh/umeng_common_strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 正在下载中.
4 | 下载出错啦,请检查网络后继续。
5 | 暂停
6 | 继续
7 | 取消
8 | 正在下载:
9 | 暂停:
10 | 正在下载应用
11 | 正在更新安装包
12 | 请连接网络后再尝试!
13 | 下载失败
14 | 下载完成,请点击安装
15 | 更新完成,请点击安装
16 | 新版本已经准备好,请点击安装
17 |
18 |
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/annotation/sqlite/Transient.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.annotation.sqlite;
17 |
18 | import java.lang.annotation.ElementType;
19 | import java.lang.annotation.Retention;
20 | import java.lang.annotation.RetentionPolicy;
21 | import java.lang.annotation.Target;
22 |
23 |
24 | @Target(ElementType.FIELD)
25 | @Retention(RetentionPolicy.RUNTIME)
26 | public @interface Transient {
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/annotation/sqlite/Table.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.annotation.sqlite;
17 |
18 | import java.lang.annotation.ElementType;
19 | import java.lang.annotation.Retention;
20 | import java.lang.annotation.RetentionPolicy;
21 | import java.lang.annotation.Target;
22 |
23 | @Target(ElementType.TYPE)
24 | @Retention(RetentionPolicy.RUNTIME)
25 | public @interface Table {
26 | public String name();
27 | }
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/annotation/sqlite/ManyToOne.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.annotation.sqlite;
17 |
18 | import java.lang.annotation.ElementType;
19 | import java.lang.annotation.Retention;
20 | import java.lang.annotation.RetentionPolicy;
21 | import java.lang.annotation.Target;
22 |
23 | @Target(ElementType.FIELD)
24 | @Retention(RetentionPolicy.RUNTIME)
25 | public @interface ManyToOne {
26 | public String column() default "";
27 | }
28 |
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/annotation/sqlite/OneToMany.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com).
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package net.tsz.afinal.annotation.sqlite;
17 |
18 | import java.lang.annotation.ElementType;
19 | import java.lang.annotation.Retention;
20 | import java.lang.annotation.RetentionPolicy;
21 | import java.lang.annotation.Target;
22 |
23 | @Target(ElementType.FIELD)
24 | @Retention(RetentionPolicy.RUNTIME)
25 | public @interface OneToMany {
26 |
27 | public String manyColumn();
28 | }
29 |
--------------------------------------------------------------------------------
/project/src/main/java/net/tsz/afinal/db/sqlite/SqlInfo.java:
--------------------------------------------------------------------------------
1 | package net.tsz.afinal.db.sqlite;
2 |
3 | import java.util.LinkedList;
4 |
5 | public class SqlInfo {
6 |
7 | private String sql;
8 | private LinkedList