Collin Smith
10178dfebc
Created Schema#preload to trigger preloading of table records
2020-12-21 14:27:23 -08:00
Collin Smith
e602b1660c
Permit static final fields
2020-12-21 14:19:32 -08:00
Collin Smith
7e7dfa0213
Implemented foreign key into :core test case
...
Fixed issue where parser was generating code for foreign keys
Added additional test case to output tsv field names and ids map
Added MonStats2 foreign key to MonStats schema
Generated TableManifest fields are now statically instanced
2020-12-20 00:35:16 -08:00
Collin Smith
e0b4904efe
Added support for foreign keys within schemas
2020-12-19 14:20:24 -08:00
Collin Smith
2511b7cfe5
Refactored ParserInput into Parser
...
Parser is now an abstract class
Parser requires overriding constructor to set ParserInput
Table initializes parser upon first parser(ParserInput) call
2020-12-17 17:52:50 -08:00
Collin Smith
33caecc32c
Updated parser and table code generators
...
Changed signatures of TsvParser and renamed to ParserInput
Removed Parser#hasNext
Implemented Table#recordClass()
TableCodeGenerator generates a public constructor
2020-12-17 15:38:55 -08:00
Collin Smith
0465816f26
Code cleanup
2020-12-16 18:53:39 -08:00
Collin Smith
fc09a8213c
Added generation of table manifest
2020-12-16 18:07:48 -08:00
Collin Smith
c82e615772
Created Parser interface and generation
2020-12-16 11:36:11 -08:00
Collin Smith
1308eb410c
Added FieldElement#fieldNames
...
Added FieldElement#fieldNames
FormatElement now validates and generates an array of formatted field names
2020-12-16 03:11:20 -08:00
Collin Smith
160109fdc9
Created Table#newSerializer
...
Created Table#newSerializer
Added default impl for MonStatsTableImpl#newSerializer
Created SchemaElement#serializerClassName
Refactored CodeGenerator#formatName to return a fq ClassName
Added null check for generated SchemaElement
Renamed CodeGenerator#generate variable to typeSpecBuilder
2020-12-16 01:12:21 -08:00
Collin Smith
2d546442c0
Reformatted code
2020-12-16 00:25:55 -08:00
Collin Smith
d12a301703
Created TableCodeGenerator
...
Created and implemented TableCodeGenerator
Added stack trace printing for SchemaProcessor file io errors
Created Table#indexed
2020-12-16 00:22:47 -08:00
Collin Smith
77532fe576
Added field for Schema annotation
2020-12-16 00:05:37 -08:00
Collin Smith
1e3e2dd457
Added DeclaredType resolution to TableElement
2020-12-15 23:54:58 -08:00
Collin Smith
44282ad9ba
Created CodeGenerator
...
Refactored some code generator responsibilities from SerializerCodeGenerator to CodeGenerator
2020-12-15 23:50:19 -08:00
Collin Smith
be46bab71e
Code formatting
2020-12-15 23:34:42 -08:00
Collin Smith
92ed0d3af2
Removed generating class parameter
2020-12-15 23:30:45 -08:00
Collin Smith
f16f8dc0ea
Added transient support, committing SerializerCodeGenerator
2020-12-15 22:02:47 -08:00
Collin Smith
b578137fdc
Added support for Serializer impl generation
2020-12-15 19:14:42 -08:00
Collin Smith
c90b96a22a
Added type and constructor checking for Schema
2020-12-15 17:32:45 -08:00
Collin Smith
dc733d29a5
Renamed columns to fields
2020-12-15 17:20:02 -08:00
Collin Smith
188d44b624
Refined primary key field error handling
2020-12-15 17:17:33 -08:00
Collin Smith
8bcca53490
Added some validation to FieldElement
2020-12-15 17:07:43 -08:00
Collin Smith
645d2eb25b
Moved field annotation responsibilities to FieldElement
...
FieldElement processes Format and PrimaryKey annotations
Created AnnotationElement root class
2020-12-15 16:56:03 -08:00
Collin Smith
c33390503e
Reformat code
2020-12-15 15:41:04 -08:00
Collin Smith
5180e4b185
Added static method to check primary key type
2020-12-15 14:15:25 -08:00
Collin Smith
d29c536d02
Fixed deprecation warning
2020-12-15 14:03:06 -08:00
collinsmith
9656bcc382
Changed Context#getAnnotationMirror to use the annotation class argument
2020-12-15 13:31:48 -08:00
collinsmith
06461b76c7
Added PrimaryKey AnnotationMirror for PrimaryKeyElement
...
Added PrimaryKey AnnotationMirror for PrimaryKeyElement
Created Context#getAnnotationMirror
Created Constants#PRIMARY_KEY
2020-12-15 13:23:49 -08:00
Collin Smith
fa819b0b9b
Committing annotation-processor v2 experimentation
2020-12-15 12:07:38 -08:00