Android Open Source - worldwondersproject Place Table






From Project

Back to project page worldwondersproject.

License

The source code is released under:

MIT License

If you think the Android project worldwondersproject 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 com.ciandt.cursoandroid.worldwondersapp.database.table;
//from   w  ww.  j  a v  a2  s .c o m
public interface PlaceTable {
    String TABLE_NAME = "place";

    // Estrutura para preenchimento dos dados do banco local
    String ID = "_id";
    String PLACE_NAME = "place_name";
    String PLACE_COUNTRY = "place_country";
    String PLACE_DESCRIPTION = "place_description";
    String PLACE_IMAGE_URL = "place_image_url";
    String[] ALL_COLUMNS = {ID, PLACE_NAME, PLACE_COUNTRY, PLACE_DESCRIPTION, PLACE_IMAGE_URL};
    String SQL_CREATE = String.format("CREATE TABLE %1$s " +
                    "(%2$s INTEGER PRIMARY KEY AUTOINCREMENT, " +
                    "%3$s TEXT, " +
                    "%4$s TEXT, " +
                    "%5$s TEXT, " +
                    "%6$s TEXT)",
            TABLE_NAME,
            ID,
            PLACE_NAME,
            PLACE_COUNTRY,
            PLACE_DESCRIPTION,
            PLACE_IMAGE_URL);
    // Estrutura para preenchimento do JSON
    String JSON_ID = "id";
    String JSON_PLACE_NAME = "name";
    String JSON_PLACE_COUNTRY = "country";
    String JSON_PLACE_DESCRIPTION = "description";
    String JSON_PLACE_IMAGE_URL = "image_url";
    String WHERE_ID_EQUALS = " 0 = 0 ";
}




Java Source Code List

com.ciandt.cursoandroid.worldwondersapp.ApplicationTest.java
com.ciandt.cursoandroid.worldwondersapp.activity.LoginActivity.java
com.ciandt.cursoandroid.worldwondersapp.activity.MainActivity.java
com.ciandt.cursoandroid.worldwondersapp.activity.PlaceDetailActivity.java
com.ciandt.cursoandroid.worldwondersapp.activity.RegisterActivity.java
com.ciandt.cursoandroid.worldwondersapp.adapter.PlaceCursorAdapter.java
com.ciandt.cursoandroid.worldwondersapp.businesscoordinator.PlaceBusinessCoordinator.java
com.ciandt.cursoandroid.worldwondersapp.contentprovider.WorldWondersContentProvider.java
com.ciandt.cursoandroid.worldwondersapp.database.Database.java
com.ciandt.cursoandroid.worldwondersapp.database.table.PlaceTable.java
com.ciandt.cursoandroid.worldwondersapp.entity.BaseEntity.java
com.ciandt.cursoandroid.worldwondersapp.entity.Place.java
com.ciandt.cursoandroid.worldwondersapp.entity.User.java
com.ciandt.cursoandroid.worldwondersapp.fragment.PlaceDetailFragment.java
com.ciandt.cursoandroid.worldwondersapp.fragment.PlaceListFragment.java
com.ciandt.cursoandroid.worldwondersapp.infrastructure.Constants.java
com.ciandt.cursoandroid.worldwondersapp.infrastructure.NetworkUtil.java
com.ciandt.cursoandroid.worldwondersapp.integrator.BaseIntegrator.java
com.ciandt.cursoandroid.worldwondersapp.integrator.GeneralIntegrator.java
com.ciandt.cursoandroid.worldwondersapp.integrator.PlaceIntegrator.java
com.ciandt.cursoandroid.worldwondersapp.listener.DatabaseOperatorCallback.java
com.ciandt.cursoandroid.worldwondersapp.listener.IntegratorOperatorCallback.java
com.ciandt.cursoandroid.worldwondersapp.manager.DatabaseManager.java
com.ciandt.cursoandroid.worldwondersapp.manager.LoginManager.java
com.ciandt.cursoandroid.worldwondersapp.manager.PlaceManager.java
com.ciandt.cursoandroid.worldwondersapp.manager.RegisterManager.java
com.ciandt.cursoandroid.worldwondersapp.service.SyncService.java
com.ciandt.cursoandroid.worldwondersapp.service.syncer.PlaceSyncer.java
com.ciandt.cursoandroid.worldwondersapp.service.syncer.Syncer.java