forked from bradfitz/android-squeezer
/
AlbumCache.java
69 lines (55 loc) · 2.08 KB
/
AlbumCache.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.danga.squeezer.service;
import android.net.Uri;
import android.provider.BaseColumns;
/**
* Represent the album cache database.
*
*/
public final class AlbumCache {
public static final String AUTHORITY = "com.danga.squeezer.service.AlbumCache";
private AlbumCache() {}
public static final class Albums implements BaseColumns {
private Albums() {}
public static final String TABLE_NAME = "album";
/*
* URI definitions
*/
/**
* The scheme part for this provider's URI
*/
private static final String SCHEME = "content://";
/**
* Path part for the Albums URI
*/
private static final String PATH_ALBUMS = "/albums";
/**
* Path part for the Album ID URI
*/
private static final String PATH_ALBUM_ID = "/albums/";
/**
* 0-relative position of an album ID segment in the path part of a album ID URI
*/
public static final int ALBUM_ID_PATH_POSITION = 1;
/**
* The content:// style URL for this table
*/
public static final Uri CONTENT_URI = Uri.parse(SCHEME + AUTHORITY + PATH_ALBUMS);
/**
* The content URI base for a single album. Callers must
* append a numeric album id to this Uri to retrieve an album.
*/
public static final Uri CONTENT_ID_URI_BASE
= Uri.parse(SCHEME + AUTHORITY + PATH_ALBUM_ID);
/**
* The default sort order for this table
*/
public static final String DEFAULT_SORT_ORDER = "_id ASC";
public static final String COL_SERVERORDER = android.provider.BaseColumns._ID;
public static final String COL_ALBUMID = "albumid";
public static final String COL_NAME = "name";
public static final String COL_ARTIST = "artist";
public static final String COL_YEAR = "year";
public static final String COL_ARTWORK_ID = "artwork_id";
public static final String COL_ARTWORK_PATH = "artwork_path";
}
}