BaseColumns类的作用
来源:互联网 发布:淘宝美工面试 编辑:程序博客网 时间:2024/05/17 05:50
这个类只是提供了两个字段,一个是"_id"一个是"_count",便于调用数据库时导致拼写错误,你也可以扩展它,或者自定义这么个,然后直接调用它的常量名,防止写sql语句时把列名拼错
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed 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 * * 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 android.provider;public interface BaseColumns{ /** * The unique ID for a row. * <P>Type: INTEGER (long)</P> */ public static final String _ID = "_id"; /** * The count of rows in a directory. * <P>Type: INTEGER</P> */ public static final String _COUNT = "_count";}
0 0
- BaseColumns类的作用
- BaseColumns类的作用
- BaseColumns 类的使用
- android BaseColumns的用处
- android数据库之BaseColumns接口作用理解
- android之BaseColumns类说明
- 类的作用域
- 封装类的作用
- 类的作用域
- ViewGroup类的作用
- 匿名类的作用
- 抽象类的作用
- 基类的作用
- 空类的作用
- Example 类的作用
- 类的作用域
- Bundle类的作用
- application类的作用?
- 共享onload事件
- 第40讲项目2——水仙花数(版本2)
- C++中不能声明为虚函数的有哪些函数
- MyEclipse 2014 破解图文详细教程【转】
- Hello World
- BaseColumns类的作用
- MATLAB谢菲尔德遗传算法工具箱使用
- wpf ListBox拖动排序实现
- android studio配置retrolambda
- JNI介绍
- 创建对象
- NKOI 1015(USCAO 2.2.2)子集
- Gvim开发环境配置笔记--Windows篇
- 飞机加油问题