Android Open Source - adme A D M E Entity Config






From Project

Back to project page adme.

License

The source code is released under:

Apache License

If you think the Android project adme 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.danielesegato.adme.config;
/*from w ww.j a v  a 2  s.c om*/
import java.util.List;

/**
 * Store the configuration for a class annotated with {@link com.danielesegato.adme.annotation.ADMEEntity}.
 */
public class ADMEEntityConfig<T> {
    private String entityName;
    private List<ADMEFieldConfig> fieldsConfig;
    private Class<T> javaClass;
    private ADMEFieldConfig idFieldConfig;
    private List<ADMEIndexConstraintConfig> indexConstraintConfigList;

    /**
     * @return the entity name on the database.
     */
    public String getEntityName() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    /**
     * @return the list of fields configurations for this entity
     */
    public List<ADMEFieldConfig> getFieldsConfig() {
        return fieldsConfig;
    }

    public void setFieldsConfig(List<ADMEFieldConfig> fieldsConfig) {
        this.fieldsConfig = fieldsConfig;
    }

    /**
     * @return the {@link java.lang.Class} to which this entity is associated.
     */
    public Class<T> getJavaClass() {
        return javaClass;
    }

    public void setJavaClass(Class<T> javaClass) {
        this.javaClass = javaClass;
    }

    /**
     * @return the configuration of the id (or primary key) field.
     */
    public ADMEFieldConfig getIdFieldConfig() {
        return idFieldConfig;
    }

    public void setIdFieldConfig(ADMEFieldConfig idFieldConfig) {
        this.idFieldConfig = idFieldConfig;
    }

    /**
     * @return the list of indexes and constraints for this entity.
     */
    public List<ADMEIndexConstraintConfig> getIndexConstraintConfigList() {
        return indexConstraintConfigList;
    }

    public void setIndexConstraintConfigList(List<ADMEIndexConstraintConfig> indexConstraintConfigList) {
        this.indexConstraintConfigList = indexConstraintConfigList;
    }
}




Java Source Code List

com.danielesegato.adme.ADME.java
com.danielesegato.adme.annotation.ADMEEntity.java
com.danielesegato.adme.annotation.ADMEField.java
com.danielesegato.adme.annotation.ADMEIndexConstraint.java
com.danielesegato.adme.config.ADMEConfigUtils.java
com.danielesegato.adme.config.ADMEEntityConfig.java
com.danielesegato.adme.config.ADMEFieldConfig.java
com.danielesegato.adme.config.ADMEIndexConstraintConfig.java
com.danielesegato.adme.config.OnForeignUpdateDelete.java
com.danielesegato.adme.config.SQLiteType.java
com.danielesegato.adme.db.ADMESerializerMapping.java
com.danielesegato.adme.db.ADMESerializer.java
com.danielesegato.adme.db.ContentProviderUris.java
com.danielesegato.adme.db.SQLiteContentProvider.java
com.danielesegato.adme.db.serializer.BaseADMESerializer.java
com.danielesegato.adme.db.serializer.BigDecimalADMESerializer.java
com.danielesegato.adme.db.serializer.BooleanADMESerializer.java
com.danielesegato.adme.db.serializer.BooleanObjectADMESerializer.java
com.danielesegato.adme.db.serializer.CurrencyADMESerializer.java
com.danielesegato.adme.db.serializer.DateAsStringADMESerializer.java
com.danielesegato.adme.db.serializer.DateAsTimestampADMESerializer.java
com.danielesegato.adme.db.serializer.DoubleADMESerializer.java
com.danielesegato.adme.db.serializer.DoubleObjectADMESerializer.java
com.danielesegato.adme.db.serializer.EnumIntADMESerializer.java
com.danielesegato.adme.db.serializer.EnumStringADMESerializer.java
com.danielesegato.adme.db.serializer.IntADMESerializer.java
com.danielesegato.adme.db.serializer.IntObjectADMESerializer.java
com.danielesegato.adme.db.serializer.LongADMESerializer.java
com.danielesegato.adme.db.serializer.LongObjectADMESerializer.java
com.danielesegato.adme.db.serializer.StringADMESerializer.java
com.danielesegato.adme.provider.ADMEContentProviderComponent.java
com.danielesegato.adme.provider.ADMEContentProvider.java
com.danielesegato.adme.utils.DateHelper.java
com.danielesegato.adme.utils.SQLStringHelper.java
com.danielesegato.adme.utils.SQLiteScriptParser.java
com.danielesegato.demo.adme.ADMEDemoMainActivity.java
com.danielesegato.demo.adme.NavigationDrawerFragment.java