Class GenerateRecordSerializers
java.lang.Object
com.northconcepts.datapipeline.foundations.tools.GenerateRecordSerializers
A utility class for generating toRecord() and fromRecord(Record source) methods from existing Java beans.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPrintstoRecord()andfromRecord(Record)methods for each fully qualified class name to the print writer, with TODO comments for fields it cannot serialize.Returns the writer the generated code is printed to (standard output if not set).static voidPrints the serialization methods for the fully qualified class names given as arguments.setPrintWriter(PrintWriter printWriter) Sets the writer the generated code is printed to (standard output if not set).
-
Constructor Details
-
GenerateRecordSerializers
public GenerateRecordSerializers()
-
-
Method Details
-
main
Prints the serialization methods for the fully qualified class names given as arguments.- Throws:
Throwable
-
generate
PrintstoRecord()andfromRecord(Record)methods for each fully qualified class name to the print writer, with TODO comments for fields it cannot serialize.- Throws:
Throwable
-
getPrintWriter
Returns the writer the generated code is printed to (standard output if not set). -
setPrintWriter
Sets the writer the generated code is printed to (standard output if not set).
-