1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-29 12:22:21 -05:00

Constants for the identities table

This commit is contained in:
Sebastian Kaspari 2010-03-12 19:48:58 +01:00
parent 06bbd0442b
commit 8fc96c2d86
3 changed files with 52 additions and 2 deletions

View File

@ -37,7 +37,7 @@ public interface ChannelConstants extends BaseColumns
public static final String SERVER = "server"; public static final String SERVER = "server";
/** /**
* All fields in the database * All fields of the table
*/ */
public static final String[] ALL = { public static final String[] ALL = {
NAME, NAME,

View File

@ -0,0 +1,50 @@
/*
Yaaic - Yet Another Android IRC Client
Copyright 2009 Sebastian Kaspari
This file is part of Yaaic.
Yaaic 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.
Yaaic 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 Yaaic. If not, see <http://www.gnu.org/licenses/>.
*/
package org.yaaic.db;
import android.provider.BaseColumns;
/**
* Constants for the identity database
*
* @author Sebastian Kaspari <sebastian@yaaic.org>
*/
public class IdentityConstants implements BaseColumns
{
public static final String TABLE_NAME = "identities";
// fields
public static final String NICKNAME = "nickname";
public static final String IDENT = "ident";
public static final String REALNAME = "realname";
public static final String SERVER = "server";
/**
* All fields of the table
*/
public static final String[] ALL = {
_ID,
NICKNAME,
IDENT,
REALNAME,
SERVER
};
}

View File

@ -41,7 +41,7 @@ public interface ServerConstants extends BaseColumns
public static final String IDENTITY = "identity"; public static final String IDENTITY = "identity";
/** /**
* All fields in the table * All fields of the table
*/ */
public static final String[] ALL = { public static final String[] ALL = {
_ID, _ID,