Back to project page Fall_Prevention_2013.
The source code is released under:
Apache License
If you think the Android project Fall_Prevention_2013 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/******************************************************************************* * Licensed to UbiCollab.org under one or more contributor * license agreements. See the NOTICE file distributed * with this work for additional information regarding * copyright ownership. UbiCollab.org licenses this file * to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance * with the License. You may obtain a copy of the License at * /*w ww. ja va2 s. c o m*/ * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. ******************************************************************************/ package ntnu.stud.valens.demonstration.connectivity; import android.provider.BaseColumns; /** * Database Contract specifies the details of the application's database. * Using a database contract to store all the table and column names is a * common way to ensure consistent name usage throughout the application. * * @author Elias */ public abstract class DatabaseContract { public static abstract class EventType implements BaseColumns { public static final String TABLE_NAME = "EventType"; public static final String COLUMN_NAME_ID = "TypeID"; public static final String COLUMN_NAME_DESCRIPTION = "Description"; public static final String COLUMN_NAME_TITLE = "Headline"; public static final String COLUMN_NAME_ICON = "Icon"; } public static abstract class Event implements BaseColumns { public static final String TABLE_NAME = "Event"; public static final String COLUMN_NAME_ID = "ID"; public static final String COLUMN_NAME_TYPEID = "TypeID"; public static final String COLUMN_NAME_PARAMETER_1="Param1"; public static final String COLUMN_NAME_PARAMETER_2="Param2"; } public static abstract class Contact implements BaseColumns { public static final String TABLE_NAME = "Contact"; public static final String COLUMN_NAME_NAME = "Name"; public static final String COLUMN_NAME_ID = "PersonID"; public static final String COLUMN_NAME_PHONE = "PhoneNumber"; } public static abstract class AlarmTypes implements BaseColumns { public static final String TABLE_NAME = "AlarmTypes"; public static final String COLUMN_NAME_ID = "AlarmID"; public static final String COLUMN_NAME_DESCRIPTION = "Description"; } }