private < T > String buildInsertQuery ( final T t , final IClassContainer container ) { final List < ExportContainer > exportContainers = extractExportContainers ( t , container ) ; final StringBuilder builder = new StringBuilder ( "INSERT INTO " ) . append ( container . getExportClassName ( ) . toLowerCase ( ) ) . append ( " (" ) ; final String names = exportContainers . stream ( ) . map ( ExportContainer :: getExportName ) . collect ( Collectors . joining ( ", " ) ) ; return builder . append ( names ) . append ( ") " ) . append ( "VALUES\n" ) . toString ( ) ; }
Build insert query part with values