Android Open Source - bamboo-storage Bamboo Storable Type Meta






From Project

Back to project page bamboo-storage.

License

The source code is released under:

MIT License

If you think the Android project bamboo-storage listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.pushtorefresh.bamboostorage;
//w w w. j  a v  a  2  s . c o m
import android.support.annotation.NonNull;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation for marking IBambooStorableItem subclass
 *
 * @author Artem Zinnatullin [artem.zinnatullin@gmail.com]
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface BambooStorableTypeMeta {

    String DEFAULT_INTERNAL_ID_FIELD_NAME = "_id";

    /**
     * Returns path to the content for ContentResolver
     * @return path to the content, for SQLiteDatabase under ContentProvider it should be table name
     */
    @NonNull String contentPath();

    /**
     * Returns internal id field name for your storable type
     * @return internal id field name
     */
    @NonNull String internalIdFieldName() default DEFAULT_INTERNAL_ID_FIELD_NAME;
}




Java Source Code List

com.pushtorefresh.bamboostorage.ABambooSQLiteOpenHelperContentProvider.java
com.pushtorefresh.bamboostorage.ABambooStorableItem.java
com.pushtorefresh.bamboostorage.ABambooStorageListener.java
com.pushtorefresh.bamboostorage.BambooStorableTypeMetaWithExtra.java
com.pushtorefresh.bamboostorage.BambooStorableTypeMeta.java
com.pushtorefresh.bamboostorage.BambooStorageDefaultNotifier.java
com.pushtorefresh.bamboostorage.BambooStorage.java
com.pushtorefresh.bamboostorage.IBambooStorableItem.java
com.pushtorefresh.bamboostorage.IBambooStorageNotifier.java