public static RowExpression toRowExpression ( Object object , Type type ) { requireNonNull ( type , "type is null" ) ; if ( object instanceof RowExpression ) { return ( RowExpression ) object ; } if ( object == null ) { return constantNull ( type ) ; } return constant ( object , type ) ; }
Unlike toExpression toRowExpression should be very straightforward given object is serializable