Android Open Source - droidnotes D N Model






From Project

Back to project page droidnotes.

License

The source code is released under:

GNU General Public License

If you think the Android project droidnotes 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.example.droidnotes.app;
//from w ww  .j  a  v a2s.c  o  m
import com.annotatedsql.annotation.provider.Provider;
import com.annotatedsql.annotation.provider.URI;
import com.annotatedsql.annotation.sql.*;
import com.annotatedsql.annotation.sql.Column.Type;

@Schema(className = "DNSchema", dbName = "DN.db", dbVersion = 1)
@Provider(authority = "com.example.droidnotes.provider", schemaClass = "DNSchema", name = "DNProvider")
public interface DNModel {

    @Table(Notes.TABLE_NAME)
    public static interface Notes {
        String TABLE_NAME = "notes";

        @URI
        String CONTENT_URI = "notes";

        @PrimaryKey
        @Autoincrement
        @Column(type = Type.INTEGER)
        String ID = "_id";

        @Column(type = Type.TEXT)
        String NOTE = "note";
    }

}




Java Source Code List

com.example.droidnotes.app.ApplicationTest.java
com.example.droidnotes.app.DNHelper.java
com.example.droidnotes.app.DNModel.java
com.example.droidnotes.app.InsertNoteActivity.java
com.example.droidnotes.app.NotesListActivity.java