Guest User

Untitled

a guest
Jul 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5.64 KB | None | 0 0
  1. package com.easylocator.database;
  2.  
  3. public class Location {
  4.    
  5.     private int _id;
  6.     private String Title;
  7.     private String ImageURL;
  8.     private String Category;
  9.     private String Address;
  10.     private double Latitude;
  11.     private double Longitude;
  12.     private String Date;
  13.     private String Deleted;
  14.     private String Price;
  15.     private String OpenHour;
  16.     private String CloseHour;
  17.     private String ParkTime;
  18.     private String ParkPrice;
  19.    
  20.     public static final String TABLE = "Location";
  21.    
  22.     public static final String KEY_ID = "_id";
  23.     public static final String ID_OPTIONS = "INTEGER PRIMARY KEY";
  24.     public static final int ID_COLUMN = 0;
  25.    
  26.     public static final String KEY_TITLE = "Title";
  27.     public static final String TITLE_OPTIONS = "TEXT";
  28.     public static final int TITLE_COLUMN = 1;
  29.    
  30.     public static final String KEY_IMAGEURL = "ImageURL";
  31.     public static final String IMAGEURL_OPTIONS = "TEXT";
  32.     public static final int IMAGEURL_COLUMN = 2;
  33.    
  34.     public static final String KEY_CATEGORY = "Category";
  35.     public static final String CATEGORY_OPTIONS = "TEXT";
  36.     public static final int CATEGORY_COLUMN = 3;
  37.    
  38.     public static final String KEY_ADDRESS = "Address";
  39.     public static final String ADDRESS_OPTIONS = "TEXT";
  40.     public static final int ADDRESS_COLUMN = 4;
  41.    
  42.     public static final String KEY_LATITUDE = "Latitude";
  43.     public static final String LATITUDE_OPTIONS = "INTEGER";
  44.     public static final int LATITUDE_COLUMN = 5;
  45.    
  46.     public static final String KEY_LONGITUDE = "Longitude";
  47.     public static final String LONGITUDE_OPTIONS = "INTEGER";
  48.     public static final int LONGITUDE_COLUMN = 6;
  49.    
  50.     public static final String KEY_DATE = "Date";
  51.     public static final String DATE_OPTIONS = "TEXT";
  52.     public static final int DATE_COLUMN = 7;
  53.    
  54.     public static final String KEY_DELETED = "Deleted";
  55.     public static final String DELETED_OPTIONS = "TEXT";
  56.     public static final int DELETED_COLUMN = 8;
  57.    
  58.     public static final String KEY_PRICE = "Price";
  59.     public static final String PRICE_OPTIONS = "TEXT";
  60.     public static final int PRICE_COLUMN = 9;
  61.    
  62.     public static final String KEY_OPENHOUR = "OpenHour";
  63.     public static final String OPENHOUR_OPTIONS = "TEXT";
  64.     public static final int OPENHOUR_COLUMN = 10;
  65.    
  66.     public static final String KEY_CLOSEHOUR = "CloseHour";
  67.     public static final String CLOSEHOUR_OPTIONS = "TEXT";
  68.     public static final int CLOSEHOUR_COLUMN = 11;
  69.    
  70.     public static final String KEY_PARKTIME = "ParkTime";
  71.     public static final String PARKTIME_OPTIONS = "TEXT";
  72.     public static final int PARKTIME_COLUMN = 12;
  73.    
  74.     public static final String KEY_PARKPRICE = "ParkPrice";
  75.     public static final String PARKPRICE_OPTIONS = "TEXT";
  76.     public static final int PARKPRICE_COLUMN = 13;
  77.    
  78.    
  79.    
  80.     public Location(int _id, String title, String imageURL, String category,
  81.             String address, double latitude, double longitude, String date,
  82.             String deleted, String price, String openHour, String closeHour,
  83.             String parkTime, String parkPrice) {
  84.         super();
  85.         this._id = _id;
  86.         Title = title;
  87.         ImageURL = imageURL;
  88.         Category = category;
  89.         Address = address;
  90.         Latitude = latitude;
  91.         Longitude = longitude;
  92.         Date = date;
  93.         Deleted = deleted;
  94.         Price = price;
  95.         OpenHour = openHour;
  96.         CloseHour = closeHour;
  97.         ParkTime = parkTime;
  98.         ParkPrice = parkPrice;
  99.     }
  100.  
  101.    
  102.  
  103.     public Location(int _id, String title, String imageURL, String address,
  104.             String date, String price, String openHour, String closeHour,
  105.             String parkTime, String parkPrice) {
  106.         super();
  107.         this._id = _id;
  108.         Title = title;
  109.         ImageURL = imageURL;
  110.         Address = address;
  111.         Date = date;
  112.         Price = price;
  113.         OpenHour = openHour;
  114.         CloseHour = closeHour;
  115.         ParkTime = parkTime;
  116.         ParkPrice = parkPrice;
  117.     }
  118.  
  119.     public Location(int _id, String title, String imageURL, String address, String date) {
  120.         super();
  121.         this._id = _id;
  122.         Title = title;
  123.         ImageURL = imageURL;
  124.         Address = address;
  125.         Date = date;
  126.     }
  127.  
  128.     public Location() {
  129.         super();
  130.     }
  131.  
  132.     public int get_id() {
  133.         return _id;
  134.     }
  135.  
  136.     public void set_id(int _id) {
  137.         this._id = _id;
  138.     }
  139.  
  140.     public String getTitle() {
  141.         return Title;
  142.     }
  143.  
  144.     public void setTitle(String title) {
  145.         Title = title;
  146.     }
  147.  
  148.     public String getImageURL() {
  149.         return ImageURL;
  150.     }
  151.  
  152.     public void setImageURL(String imageURL) {
  153.         ImageURL = imageURL;
  154.     }
  155.  
  156.     public String getCategory() {
  157.         return Category;
  158.     }
  159.  
  160.     public void setCategory(String category) {
  161.         Category = category;
  162.     }
  163.  
  164.     public String getAddress() {
  165.         return Address;
  166.     }
  167.  
  168.     public void setAddress(String address) {
  169.         Address = address;
  170.     }
  171.  
  172.     public double getLatitude() {
  173.         return Latitude;
  174.     }
  175.  
  176.     public void setLatitude(double latitude) {
  177.         Latitude = latitude;
  178.     }
  179.  
  180.     public double getLongitude() {
  181.         return Longitude;
  182.     }
  183.  
  184.     public void setLongitude(double longitude) {
  185.         Longitude = longitude;
  186.     }
  187.  
  188.     public String getDate() {
  189.         return Date;
  190.     }
  191.  
  192.     public void setDate(String date) {
  193.         Date = date;
  194.     }
  195.  
  196.  
  197.     public String isDeleted() {
  198.         return Deleted;
  199.     }
  200.  
  201.  
  202.     public void setDeleted(String deleted) {
  203.         Deleted = deleted;
  204.     }
  205.  
  206.  
  207.     public String getPrice() {
  208.         return Price;
  209.     }
  210.  
  211.  
  212.     public void setPrice(String price) {
  213.         Price = price;
  214.     }
  215.  
  216.  
  217.     public String getOpenHour() {
  218.         return OpenHour;
  219.     }
  220.  
  221.  
  222.     public void setOpenHour(String openHour) {
  223.         OpenHour = openHour;
  224.     }
  225.  
  226.  
  227.     public String getCloseHour() {
  228.         return CloseHour;
  229.     }
  230.  
  231.  
  232.     public void setCloseHour(String closeHour) {
  233.         CloseHour = closeHour;
  234.     }
  235.  
  236.  
  237.     public String getParkTime() {
  238.         return ParkTime;
  239.     }
  240.  
  241.  
  242.     public void setParkTime(String parkTime) {
  243.         ParkTime = parkTime;
  244.     }
  245.  
  246.  
  247.     public String getParkPrice() {
  248.         return ParkPrice;
  249.     }
  250.  
  251.  
  252.     public void setParkPrice(String parkPrice) {
  253.         ParkPrice = parkPrice;
  254.     }
  255.    
  256. }
Add Comment
Please, Sign In to add comment