A C D E G I P S T V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- apply(Project) - Method in class com.nickbenn.room.gradle.Plugin
C
- com.nickbenn.room.gradle - package com.nickbenn.room.gradle
-
Gradle-specific components (for configuring and executing a custom task provided by the plugin) of the Room schema parser.
- com.nickbenn.room.model - package com.nickbenn.room.model
-
Model classes mapping to the JSON object structure of the Room database schema.
- com.nickbenn.room.service - package com.nickbenn.room.service
-
Stateless service-level components providing a high-level interface for parsing a JSON database schema from an
InputStreamand writing the output to anOutputStream. - CONFIGURATION_CLOSURE - Static variable in class com.nickbenn.room.gradle.Plugin
-
Name of the configuration section where the task properties can be set.
D
- Database - Class in com.nickbenn.room.model
-
Represents the
databasein a Room SQLite database schema. - DEFAULT_DESTINATION - Static variable in class com.nickbenn.room.gradle.Extension
-
Default output file path, relative to the consumer project's
build.gradlelocation.
E
- Entity - Class in com.nickbenn.room.model
-
Represents an entity in a Room SQLite database schema.
- Extension - Class in com.nickbenn.room.gradle
-
Provides configuration properties for the
extractRoomDdlGradle task. - Extension(Project) - Constructor for class com.nickbenn.room.gradle.Extension
-
Initializes this extension instance.
- extract() - Method in class com.nickbenn.room.gradle.Task
-
Parses the contents of the file referenced by the
Task.getSource()return value, replaces the embedded placeholders with the appropriate table and view names, terminates each statement with the semicolon (`;`) character and two line breaks, and writes the result to the location referenced byTask.getDestination().
G
- getDatabase() - Method in class com.nickbenn.room.model.Schema
-
Returns the single
Databaseinstance of the schema, mapping to thedatabaseelement of the JSON schema file. - getDdl() - Method in class com.nickbenn.room.model.Entity
-
Returns the
CREATE TABLESQL statement used to create the SQLite table represented by this instance. - getDdl() - Method in class com.nickbenn.room.model.Index
-
Returns the
CREATE INDEXSQL statement used to create the SQLite index represented by this instance. - getDdl() - Method in class com.nickbenn.room.model.View
-
Returns the
CREATE VIEWSQL statement used to create the SQLite view represented by this instance. - getDestination() - Method in class com.nickbenn.room.gradle.Extension
-
Returns the value of the
destinationproperty, as set in theroomDdlsection ofbuild.gradle. - getDestination() - Method in class com.nickbenn.room.gradle.Task
-
Returns the value of the
destinationproperty. - getEntities() - Method in class com.nickbenn.room.model.Database
- getIndices() - Method in class com.nickbenn.room.model.Entity
- getName() - Method in class com.nickbenn.room.model.Entity
-
Returns the name of the Room entity (also the SQLite table name) that this instance represents.
- getName() - Method in class com.nickbenn.room.model.Index
-
Returns the name of the Room index (also the SQLite index) that this instance represents.
- getName() - Method in class com.nickbenn.room.model.View
-
Returns the name of the Room view (also the SQLite view name) that this instance represents.
- getSource() - Method in class com.nickbenn.room.gradle.Extension
-
Returns the value of the required
sourceproperty, as set in theroomDdlsection ofbuild.gradle. - getSource() - Method in class com.nickbenn.room.gradle.Task
-
Returns the value of the required
sourceproperty. - getVersion() - Method in class com.nickbenn.room.model.Database
-
Returns the
int-valued version number of the database schema, as declared in theversionattribute of the@Databaseannotation, and serialized as thedatabase.versionproperty in the JSON schema. - getViews() - Method in class com.nickbenn.room.model.Database
I
- Index - Class in com.nickbenn.room.model
-
Represents an index in a Room SQLite database schema.
P
- parse(InputStream, OutputStream) - Method in class com.nickbenn.room.service.Parser
-
Parses Room schema DDL from JSON content obtained from
input, and writes the extracted DDL (with placeholders replaced by the appropriate table and view names) tooutput. - Parser - Class in com.nickbenn.room.service
-
Provides a simple parsing service that extracts DDL from a Room-generated JSON schema file.
- Parser() - Constructor for class com.nickbenn.room.service.Parser
-
Initializes this instance.
- Plugin - Class in com.nickbenn.room.gradle
-
Implements a simple DDL parser/extractor Gradle plugin, intended for use in Android projects that use the Room ORM to define (or map to) and access a local SQLite database.
- Plugin() - Constructor for class com.nickbenn.room.gradle.Plugin
-
Initializes this plugin instance.
S
- Schema - Class in com.nickbenn.room.model
-
Represents the top-level database schema, as declared via Room
@Entity-,@DatabaseView-, and@Database-annotated classes, and as emitted by the Room annotation processor in a JSON schema file. - Schema() - Constructor for class com.nickbenn.room.model.Schema
- setDatabase(Database) - Method in class com.nickbenn.room.model.Schema
-
Sets the value of the
Databaseinstance, as read from the JSON schema file. - setDdl(String) - Method in class com.nickbenn.room.model.Entity
-
Sets the
CREATE TABLESQL statement used to create the SQLite table represented by this instance. - setDdl(String) - Method in class com.nickbenn.room.model.Index
-
Sets the
CREATE INDEXSQL statement used to create the SQLite table represented by this instance. - setDdl(String) - Method in class com.nickbenn.room.model.View
-
Sets the
CREATE VIEWSQL statement used to create the SQLite table represented by this instance. - setDestination(String) - Method in class com.nickbenn.room.gradle.Extension
-
Sets the
destinationproperty to the value returned fromproject.file(destinationStr). - setEntities(List<Entity>) - Method in class com.nickbenn.room.model.Database
- setIndices(List<Index>) - Method in class com.nickbenn.room.model.Entity
- setName(String) - Method in class com.nickbenn.room.model.Entity
-
Sets the name of the Room entity (also the SQLite table name) that this instance represents.
- setName(String) - Method in class com.nickbenn.room.model.Index
-
Returns the name of the Room index (also the SQLite index) that this instance represents.
- setName(String) - Method in class com.nickbenn.room.model.View
-
Sets the name of the Room view (also the SQLite view name) that this instance represents.
- setSource(String) - Method in class com.nickbenn.room.gradle.Extension
-
Sets the
sourceproperty to the value returned fromproject.file(sourceStr). - setVersion(int) - Method in class com.nickbenn.room.model.Database
-
Sets the version number of the database schema.
- setViews(List<View>) - Method in class com.nickbenn.room.model.Database
- stream() - Method in class com.nickbenn.room.model.Database
-
Gathers into a
Streamand returns the DDL statements capable of creating the database corresponding to this instance, along with all of its tables, indices, and views. - stream() - Method in class com.nickbenn.room.model.Entity
-
Gathers into a
Streamand returns the DDL statements to create the SQLite table corresponding to this instance, along with all of its indices. - stream() - Method in class com.nickbenn.room.model.Index
-
Returns a
Streamcontaining the DDL statement capable of creating the SQLite view corresponding to this instance. - stream() - Method in class com.nickbenn.room.model.Schema
-
Returns the DDL content returned from an invocation of
getDatabase().stream(). - stream() - Method in interface com.nickbenn.room.model.Streamable
-
Constructs (as appropriate) and returns a
Stream<String>containing the relevant content of the current instance, along with that of any child objects. - stream() - Method in class com.nickbenn.room.model.View
-
Returns a
Streamcontaining the DDL statement capable of creating the SQLite view corresponding to this instance. - Streamable - Interface in com.nickbenn.room.model
-
Declares the simple capability (implemented by all the
modelclasses) of emitting an instance's relevant content (DDL, in this case) as aStream<String>.
T
- Task - Class in com.nickbenn.room.gradle
-
Implements a Gradle task capable of extracting and replacing placeholders in DDL statements embedded in the JSON database schema files created by the Room ORM, and writing the results to a SQL script file.
- Task() - Constructor for class com.nickbenn.room.gradle.Task
- TASK_NAME - Static variable in class com.nickbenn.room.gradle.Plugin
-
Name of the Gradle task added by this plugin to the consumer project.
V
- View - Class in com.nickbenn.room.model
-
Represents a view in a Room SQLite database schema.
- View() - Constructor for class com.nickbenn.room.model.View
All Classes All Packages