Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2014-05-10 | user: Add verified, description, fix coordinates type | Peter Wu | 3 | -2/+13 | |
2014-05-10 | Fix timestamp type | Peter Wu | 2 | -7/+10 | |
Without this cast, setTimestamp would complain that a timestamp is expected, but a text type is given. | |||||
2014-05-10 | Convert String to DateTime (for created_at) | Peter Wu | 6 | -5/+74 | |
Extra efforts are done to keep the timezone information. | |||||
2014-05-10 | Centralize Gson creation and registration | Peter Wu | 4 | -14/+48 | |
2014-05-10 | More query fixes (incorrect field names, table alias) | Peter Wu | 2 | -4/+4 | |
2014-05-10 | Split url to tweetUrl and userUrl, misc fixes | Peter Wu | 3 | -56/+45 | |
* Insert User URLs. * Fix hash insertion query (copy/paste error...). * Split url to tweetUrl and userUrl as there is no "url" table anymore. * Do not execute queries directly via getStmt(), but execute them via NamedPreparedStatement such that faulty queries can be printed. * Fix buildQuery for more than two primary keys. * Drop comments from prepared statements members in DataFiller, there is nothing that you cannot learn from the variable name. Besides there was a copy/paste error for mentions. * Change order of insertion to ensure consistency. * Inline setting parameters for queries, it is now more transparant. | |||||
2014-05-10 | NamedPreparedStatement: fix query parameters | Peter Wu | 1 | -3/+3 | |
2014-05-10 | Main: print tweet number (not id) | Peter Wu | 1 | -1/+2 | |
2014-05-10 | Check for errors if a validation error occurred | Peter Wu | 2 | -12/+9 | |
This gives more helpful messages when the primitive does not match (object or array instead of string). | |||||
2014-05-10 | Coordinates is an object with an array | Peter Wu | 3 | -7/+59 | |
Ensure that the array is of a fixed length, add tests to check for that. | |||||
2014-05-10 | Verify that an array and object are really array (and objects) | Peter Wu | 1 | -5/+7 | |
2014-05-10 | Detect wrong type for string | Peter Wu | 1 | -0/+6 | |
2014-05-10 | Add validator debugger where the wrong type is returned | Peter Wu | 3 | -2/+55 | |
2014-05-10 | user.time_zone can be null too | Peter Wu | 1 | -0/+1 | |
2014-05-09 | Entities can be missing, user.place is not a string | Peter Wu | 4 | -4/+24 | |
* User: place is not a string but a Place object. * User: entities is nullable. * Tweet: in_reply_to_user_id, coordinates is nullable. * ValidatingJsonDeserializer: Treat null values as missing fields. * ValidatingJsonDeserializerTest: Test for null values. | |||||
2014-05-09 | Trace object path for JSON validation errors. | Peter Wu | 1 | -11/+10 | |
2014-05-09 | Add "--skipdb" option to allow printing results | Peter Wu | 1 | -1/+20 | |
For testing whether the data is correct or not. | |||||
2014-05-09 | First try to get a reader, then try to open database | Peter Wu | 1 | -23/+24 | |
Connecting to the database is probably more expensive, so try to read data first. | |||||
2014-05-09 | Use upsert queries, convert to named parameter statements | Peter Wu | 3 | -108/+190 | |
Get rid of ispostedby, move it to tweet table ("userid") | |||||
2014-05-09 | Get rid of useless method | Peter Wu | 2 | -57/+44 | |
2014-05-09 | Don't reject missing arguments | Peter Wu | 1 | -4/+0 | |
Now that --dbhost is optional, the argument list might be empty. | |||||
2014-05-09 | Only catch IllegalArgumentException for argument parsing | Peter Wu | 1 | -3/+6 | |
2014-05-09 | Fixup help text, allow to override DB settings | Peter Wu | 1 | -25/+34 | |
2014-05-09 | Get rid of DBConnection | Peter Wu | 4 | -105/+121 | |
That construct was hiding the Connection instance. Very bad abstraction as I really need it to support transactions. While at it, make the prepared statement objects final such that it is detected when those are not properly initialized. In Main, use try-with-resources, remove a noisy "exit succesfull" [sic] message. Due to the extra try/catch for the db connection (RuntimeException is not OK my friend!), the indentation had to be changed. | |||||
2014-05-09 | Remove debug prints, add comments | Peter Wu | 1 | -1/+3 | |
2014-05-09 | Add missing annotation for retweeted_status, more tests | Peter Wu | 1 | -0/+1 | |
2014-05-09 | Add missing validation annotations, ... | Peter Wu | 4 | -19/+62 | |
* Add missing Validator annotations for User. * Add entities and url properties for user. * Properly do a recursive check if an Validator annotation is present. | |||||
2014-05-08 | Get rid of unused crap | Peter Wu | 4 | -302/+0 | |
2014-05-08 | Replace JSON by GSON, adding extra validations | Peter Wu | 6 | -147/+248 | |
Also change reader method, tweets are not received via an observed but by submitting from the caller. Added TODO WTF here and there, formatted with Alt + Shift + F. | |||||
2014-05-08 | Add json containers for Tweet and User objects | Peter Wu | 3 | -0/+147 | |
2014-05-07 | Merge origin/master | S129778 | 1 | -1/+1 | |
2014-05-07 | data querries into database | S129778 | 4 | -14/+221 | |
2014-05-07 | Fixed a small typo, tweets contain "user". | Maurice Laveaux | 1 | -1/+1 | |
2014-05-07 | Removed the extranous DBQuery and simpel property | Maurice Laveaux | 6 | -62/+84 | |
* InputReader reads from Scanner. | |||||
2014-05-07 | Two different inputs (file and stdin). | Maurice Laveaux | 4 | -0/+142 | |
* DataFiller fills the database with given input. | |||||
2014-05-07 | Added classes to refactor the database code. | Maurice Laveaux | 5 | -101/+251 | |
* DBConnection creates a persistent conn. * DBQuery resolves and executes queries. * QueryUtils creates sql query text. | |||||
2014-05-01 | (no commit message) | daanpeters | 2 | -1/+213 | |
2014-05-01 | Initial netbeans project added with main/Main.java | Maurice Laveaux | 1 | -0/+16 | |