question: public Payment ( ResultSet result ) throws SQLException { id = result . getInt ( "id" ) ; channelIdReceiver = result . getInt ( "channel_id_receiver" ) ; channelIdSender = result . getInt ( "channel_id_sender" ) ; amount = result . getLong ( "amount" ) ; fee = result . getLong ( "fee" ) ; phaseSender = result . getInt ( "phase_sender" ) ; phaseReceiver = result . getInt ( "phase_receiver" ) ; includeInReceiverChannel = Tools . intToBool ( result . getInt ( "include_in_receiver_channel" ) ) ; includeInSenderChannel = Tools . intToBool ( result . getInt ( "include_in_sender_channel" ) ) ; includeInReceiverChannelTemp = Tools . intToBool ( result . getInt ( "include_in_receiver_channel_temp" ) ) ; includeInSenderChannelTemp = Tools . intToBool ( result . getInt ( "include_in_sender_channel_temp" ) ) ; secretHash = result . getBytes ( "secret_hash" ) ; secret = result . getBytes ( "secret" ) ; timestampAddedReceiver = result . getInt ( "timestamp_added_receiver" ) ; timestampAddedSender = result . getInt ( "timestamp_added_sender" ) ; timestampSettledReceiver = result . getInt ( "timestamp_settled_receiver" ) ; timestampSettledSender = result . getInt ( "timestamp_settled_sender" ) ; versionAddedReceiver = result . getInt ( "version_added_receiver" ) ; versionAddedSender = result . getInt ( "version_added_sender" ) ; versionSettledReceiver = result . getInt ( "version_settled_receiver" ) ; versionSettledSender = result . getInt ( "version_settled_sender" ) ; }
target:  Instantiates a new payment.