BaseColumns 및 사용자 정의 Column
4812 단어 column
/*
* 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";
}
basecolumn 기반 테이블 사용자 정의 Column
public static final class PhoneLabelColumns implements BaseColumns {
// ---begin-----
public static final String TABLE = "phone_label";
public static final String COUNT = "count";
public static final String NUMBER = "number";
public static final String LABEL = "label";
// ----end-----
private static final String[] PROJECTION = {
_ID, // 0
NUMBER, // 1
LABEL, // 2
COUNT, // 3
};
public static int COLUMN_NUMBER = 1;
public static final int COLUMN_LABEL = 2;
public static final int COLUMN_COUNT = 3;
}
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
DataColumn 관련 ------.net studyDataTable에는 테이블의 Columns 속성에서 참조하는 DataColumn 객체 컬렉션이 포함되어 있습니다.이 열의 집합은 모든 제약과 함께 표의 구조나 구조를 정의합니다. DataColumn 구조 함수를 사...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.