summaryrefslogtreecommitdiff
path: root/src/main/Main.java
AgeCommit message (Collapse)AuthorFilesLines
2014-05-11Report status while importing (add --status option)Peter Wu1-9/+67
* Add status reporting to know how many tweets are already imported. * Remove spam from DataFiller when no brand is detected
2014-05-11Add --dbport option, override default auth parametersPeter Wu1-2/+5
Login as postgres (superuser!) is not really secure...
2014-05-10More nullable annotations, print tweets for parse errors tooPeter Wu1-1/+8
Nullable is based on Twitter platform (users, tweets) documentation. Now the line number is also printed.
2014-05-10Move SQLException processing in processTweet to MainPeter Wu1-1/+6
Huge diff comes from whitespace diff. Now the tweet is printed with its line number in error cases, and all further insertions are aborted.
2014-05-10Main: print tweet number (not id)Peter Wu1-1/+2
2014-05-09Add "--skipdb" option to allow printing resultsPeter Wu1-1/+20
For testing whether the data is correct or not.
2014-05-09First try to get a reader, then try to open databasePeter Wu1-23/+24
Connecting to the database is probably more expensive, so try to read data first.
2014-05-09Don't reject missing argumentsPeter Wu1-4/+0
Now that --dbhost is optional, the argument list might be empty.
2014-05-09Only catch IllegalArgumentException for argument parsingPeter Wu1-3/+6
2014-05-09Fixup help text, allow to override DB settingsPeter Wu1-25/+34
2014-05-09Get rid of DBConnectionPeter Wu1-29/+39
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-08Replace JSON by GSON, adding extra validationsPeter Wu1-30/+52
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-07data querries into databaseS1297781-0/+1
2014-05-07Removed the extranous DBQuery and simpel propertyMaurice Laveaux1-1/+8
* InputReader reads from Scanner.
2014-05-07Added classes to refactor the database code.Maurice Laveaux1-34/+80
* DBConnection creates a persistent conn. * DBQuery resolves and executes queries. * QueryUtils creates sql query text.
2014-05-01(no commit message)daanpeters1-1/+32
2014-05-01Initial netbeans project added with main/Main.javaMaurice Laveaux1-0/+16