private void writeCustomInfo ( Event event ) { // insert customInfo (key/value) into DB for ( Map . Entry < String , String > customInfo : event . getCustomInfo ( ) . entrySet ( ) ) { long cust_id = dbDialect . getIncrementer ( ) . nextLongValue ( ) ; getJdbcTemplate ( ) . update ( "insert into EVENTS_CUSTOMINFO (ID, EVENT_ID, CUST_KEY, CUST_VALUE)" + " values (?,?,?,?)" , cust_id , event . getPersistedId ( ) , customInfo . getKey ( ) , customInfo . getValue ( ) ) ; } }
write CustomInfo list into table .