public void insert ( final Object ... value ) throws DevFailed { if ( value . length == 1 ) { for ( int i = 0 ; i < group . get_size ( true ) ; i ++ ) { final int arginType = group . get_device ( i + 1 ) . command_query ( commandName ) . in_type ; InsertExtractUtils . insert ( inData [ i ] , arginType , value ) ; } } else { if ( value . length != group . get_size ( true ) ) { throw DevFailedUtils . newDevFailed ( TANGO_WRONG_DATA_ERROR , group . get_size ( true ) + " values must be provided" ) ; } for ( int i = 0 ; i < group . get_size ( true ) ; i ++ ) { final int arginType = group . get_device ( i + 1 ) . command_query ( commandName ) . in_type ; InsertExtractUtils . insert ( inData [ i ] , arginType , value [ i ] ) ; } } }
insert a value per command