Back to project page bamboo-storage.
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.
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; }