Code example for UriMatcher

Methods: addURI

0
	 
	//uri�Ƚ��� 
	private static final UriMatcher uriMatcher;
	//��ʼ��uriMatcher 
	static{ 
		uriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
		 
		uriMatcher.addURI(FundInfoProviderMetaData.AUTHORITY, FundInfoProviderMetaData.JJJZ_TABLE_NAME, JJJZ_COLLECTION_URI_INDICATOR);
		uriMatcher.addURI(FundInfoProviderMetaData.AUTHORITY, FundInfoProviderMetaData.JJJZ_TABLE_NAME + "/#", JJJZ_DM_URI_INDICATOR);
		uriMatcher.addURI(FundInfoProviderMetaData.AUTHORITY, FundInfoProviderMetaData.JJGK_TABLE_NAME, JJGK_COLLECTION_URI_INDICATOR);
		uriMatcher.addURI(FundInfoProviderMetaData.AUTHORITY, FundInfoProviderMetaData.JJGK_TABLE_NAME + "/#", JJGK_DM_URI_INDICATOR);
	} 
	 
	//jjjz������Ϣ 
	private static final HashMap<String, String> jjjzProjectionMap;
	static { 
		jjjzProjectionMap = new HashMap<String, String>();
		 
		jjjzProjectionMap.put(FundInfoProviderMetaData.JjjzTableMetaTable._ID, FundInfoProviderMetaData.JjjzTableMetaTable._ID);
		jjjzProjectionMap.put(FundInfoProviderMetaData.JjjzTableMetaTable.JJJZ_DM, FundInfoProviderMetaData.JjjzTableMetaTable.JJJZ_DM);