/**
* This file is part of ElasticDroid.
*
* ElasticDroid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* ElasticDroid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with ElasticDroid. If not, see <http://www.gnu.org/licenses/>.
*
* Authored by Rodolfo Cartas on 15 Ene 2011
*/
package org.elasticdroid.db.tblinfo;
import android.provider.BaseColumns;
/**
* Class to hold metadata for the table InstanceTbl in the database
* {@link org.elasticdroid.db.ElasticDroidDB.#DATABASE_NAME}.
* @author Rodolfo Cartas
*
* 15 Ene 2011
*/
public class InstanceTbl implements BaseColumns {
/** table name */
public static final String TBL_NAME = "InstanceTbl";
/** Number of cols in the table */
public static final int NUM_COLS = 2;
/** column to hold instance id */
public static final String COL_INSTANCEID = "instanceId";
/** column to hold the AWS region for the resource */
public static final String COL_INSTANCEGROUPID = "instanceGroupId";
/** Foreign key references */
public static final String FOREIGN_KEY_INSTANCEGROUPID = "Foreign Key (" + COL_INSTANCEGROUPID + ") " +
"references " + InstanceGroupTbl.TBL_NAME + "(" + InstanceGroupTbl._ID + ") on delete cascade";
}