Android Open Source - taxitwin-app Db Contract






From Project

Back to project page taxitwin-app.

License

The source code is released under:

GNU General Public License

If you think the Android project taxitwin-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package kimle.michal.android.taxitwin.db;
/* www .  j  av  a 2s  .c  o  m*/
import android.provider.BaseColumns;

public class DbContract {

    private DbContract() {
    }

    public static abstract class DbEntry implements BaseColumns {

        //tables
        public static final String TAXITWIN_TABLE = "taxitwin";
        public static final String POINT_TABLE = "point";
        public static final String POINT_START_TABLE = "startpoint";
        public static final String POINT_END_TABLE = "endpoint";
        public static final String RESPONSE_TABLE = "response";
        public static final String OFFER_TABLE = "offer";
        public static final String RIDE_TABLE = "ride";

        //taxitwin table
        public static final String TAXITWIN_ID_COLUMN = TAXITWIN_TABLE + "." + _ID;
        public static final String TAXITWIN_START_POINT_ID_COLUMN = "start_point_id";
        public static final String TAXITWIN_END_POINT_ID_COLUMN = "end_point_id";
        public static final String TAXITWIN_NAME_COLUMN = "name";

        //point table
        public static final String POINT_ID_COLUMN = POINT_TABLE + "." + _ID;
        public static final String POINT_START_ID_COLUMN = POINT_START_TABLE + "." + _ID;
        public static final String POINT_END_ID_COLUMN = POINT_END_TABLE + "." + _ID;
        public static final String POINT_LATITUDE_COLUMN = "latitude";
        public static final String POINT_LONGITUDE_COLUMN = "longitude";
        public static final String POINT_TEXTUAL_COLUMN = "textual";

        //response table
        public static final String RESPONSE_ID_COLUMN = RESPONSE_TABLE + "." + _ID;
        public static final String RESPONSE_TAXITWIN_ID_COLUMN = "taxitwin_id";

        //offer table
        public static final String OFFER_ID_COLUMN = OFFER_TABLE + "." + _ID;
        public static final String OFFER_TAXITWIN_ID_COLUMN = "taxitwin_id";
        public static final String OFFER_PASSENGERS_TOTAL_COLUMN = "passengers_total";
        public static final String OFFER_PASSENGERS_COLUMN = "passengers";

        //ride table
        public static final String RIDE_ID_COLUMN = RIDE_TABLE + "." + _ID;
        public static final String RIDE_OFFER_ID_COLUMN = "offer_id";

        //as nicknames
        public static final String AS_START_POINT_ID_COLUMN = "start_id";
        public static final String AS_START_POINT_LATITUDE_COLUMN = "start_latitude";
        public static final String AS_START_POINT_LONGITUDE_COLUMN = "start_longitude";
        public static final String AS_START_POINT_TEXTUAL_COLUMN = "start_textual";
        public static final String AS_END_POINT_ID_COLUMN = "end_id";
        public static final String AS_END_POINT_LATITUDE_COLUMN = "end_latitude";
        public static final String AS_END_POINT_LONGITUDE_COLUMN = "end_longitude";
        public static final String AS_END_POINT_TEXTUAL_COLUMN = "end_textual";
    }

}




Java Source Code List

kimle.michal.android.taxitwin.activity.LauncherActivity.java
kimle.michal.android.taxitwin.activity.MainActivity.java
kimle.michal.android.taxitwin.activity.MyTaxiTwinActivity.java
kimle.michal.android.taxitwin.activity.OfferDetailActivity.java
kimle.michal.android.taxitwin.activity.ResponseDetailActivity.java
kimle.michal.android.taxitwin.activity.ResponsesActivity.java
kimle.michal.android.taxitwin.adapter.TaxiTwinPlacesAutoCompleteAdapter.java
kimle.michal.android.taxitwin.application.TaxiTwinApplication.java
kimle.michal.android.taxitwin.contentprovider.TaxiTwinContentProvider.java
kimle.michal.android.taxitwin.db.DbContract.java
kimle.michal.android.taxitwin.db.DbHelper.java
kimle.michal.android.taxitwin.dialog.alert.AddressAlertDialogFragment.java
kimle.michal.android.taxitwin.dialog.alert.GPSAlertDialogFragment.java
kimle.michal.android.taxitwin.dialog.alert.GooglePlayServicesAlertDialogFragment.java
kimle.michal.android.taxitwin.dialog.alert.InternetAlertDialogFragment.java
kimle.michal.android.taxitwin.dialog.alert.LeaveTaxiTwinAlertDialogFragment.java
kimle.michal.android.taxitwin.dialog.alert.ServicesAlertDialogFragment.java
kimle.michal.android.taxitwin.dialog.alert.TaxiTwinAlertDialogFragment.java
kimle.michal.android.taxitwin.dialog.alert.TaxiTwinNoLongerAlertDialogFragment.java
kimle.michal.android.taxitwin.dialog.error.GooglePlayServicesErrorDialogFragment.java
kimle.michal.android.taxitwin.dialog.error.OfferErrorDialogFragment.java
kimle.michal.android.taxitwin.dialog.error.PlaceErrorDialogFragment.java
kimle.michal.android.taxitwin.dialog.error.ResponseErrorDialogFragment.java
kimle.michal.android.taxitwin.entity.Place.java
kimle.michal.android.taxitwin.enumerate.UserState.java
kimle.michal.android.taxitwin.fragment.TaxiTwinListFragment.java
kimle.michal.android.taxitwin.fragment.TaxiTwinMapFragment.java
kimle.michal.android.taxitwin.gcm.GcmBroadcastReceiver.java
kimle.michal.android.taxitwin.gcm.GcmConnector.java
kimle.michal.android.taxitwin.gcm.GcmHandler.java
kimle.michal.android.taxitwin.gcm.GcmIntentService.java
kimle.michal.android.taxitwin.popup.SettingsPopup.java
kimle.michal.android.taxitwin.services.ServicesManagement.java
kimle.michal.android.taxitwin.view.TaxiTwinAutoCompleteTextView.java