Android Open Source - Android-Lib-Database Unique Composite Index






From Project

Back to project page Android-Lib-Database.

License

The source code is released under:

Apache License

If you think the Android project Android-Lib-Database 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 android.lib.database;
/*from ww w  . j  av  a2s  .com*/
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Marks a field as part of an unique composite index.
 * <p>The annotated field must also be annotated with {@link Column @Column}.</p>
 * <p>The annotated field can also be marked as a single-column index by using {@link Index @Index}.
 * <p>To mark a field as part of a <i>non-unique</i> composite index, use {@link CompositeIndex @CompositeIndex}.</p>
 * @see Column
 * @see Index
 * @see CompositeIndex
 */
@Target({ ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
public @interface UniqueCompositeIndex {
    /**
     * The names of the unique composite indexes.
     * <p>The annotated field can be a part of any number of composite indexes.</p>
     * <p>When there is more than one field annotated, all of them will be included in the composite index under this name.</p>
     * <p>{@link value} cannot be <code>null</code>.</p>
     */
    String[] value() default {};

    /**
     * The order of the annotated field in the unique composite index.
     * <p>The value can be arbitrary. The final order is determined by comparing this value.</p>
     */
    int order();
}




Java Source Code List

android.lib.database.Column.java
android.lib.database.CompositeIndex.java
android.lib.database.DatabaseOpenHelper.java
android.lib.database.Database.java
android.lib.database.DateConverter.java
android.lib.database.Index.java
android.lib.database.JSONRowMapper.java
android.lib.database.RowMapper.java
android.lib.database.Table.java
android.lib.database.TypeConverter.java
android.lib.database.UniqueCompositeIndex.java
android.lib.database.UnsupportedTypeException.java
android.lib.database.UseConverter.java
android.lib.database.predicate.ManySidedPredicate.java
android.lib.database.predicate.Predicate.java
android.lib.database.predicate.ThreeSidedPredicate.java
android.lib.database.predicate.TwoSidedPredicate.java
android.lib.database.query.Delete.java
android.lib.database.query.Insert.java
android.lib.database.query.QueryBuilder.java
android.lib.database.query.Query.java
android.lib.database.query.Select.java
android.lib.database.query.Update.java