|
|
@ -3,7 +3,6 @@ package at.compax.tools.sql.model;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import lombok.Builder;
|
|
|
|
import lombok.Builder;
|
|
|
|
import lombok.Getter;
|
|
|
|
import lombok.Getter;
|
|
|
@ -19,11 +18,8 @@ public class QueryResult {
|
|
|
|
@ToString
|
|
|
|
@ToString
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
|
|
public static class ColumnDefinition {
|
|
|
|
public static class ColumnDefinition {
|
|
|
|
@JsonProperty("index")
|
|
|
|
|
|
|
|
private int index;
|
|
|
|
private int index;
|
|
|
|
@JsonProperty("name")
|
|
|
|
|
|
|
|
private String name;
|
|
|
|
private String name;
|
|
|
|
@JsonProperty("type")
|
|
|
|
|
|
|
|
private String type;
|
|
|
|
private String type;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -37,21 +33,15 @@ public class QueryResult {
|
|
|
|
@ToString
|
|
|
|
@ToString
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
|
|
public static class Column {
|
|
|
|
public static class Column {
|
|
|
|
@JsonProperty("value")
|
|
|
|
|
|
|
|
private Object value;
|
|
|
|
private Object value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@JsonProperty("columns")
|
|
|
|
|
|
|
|
private List<Column> columns;
|
|
|
|
private List<Column> columns;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private List<ColumnDefinition> columnDefinitions;
|
|
|
|
private List<ColumnDefinition> columnDefinitions;
|
|
|
|
@JsonProperty("rows")
|
|
|
|
|
|
|
|
private List<Row> rows;
|
|
|
|
private List<Row> rows;
|
|
|
|
@JsonProperty("userErrors")
|
|
|
|
|
|
|
|
private List<UserError> userErrors;
|
|
|
|
private List<UserError> userErrors;
|
|
|
|
@JsonProperty("exception")
|
|
|
|
|
|
|
|
private String exception;
|
|
|
|
private String exception;
|
|
|
|
@JsonProperty("exceptionMessage")
|
|
|
|
|
|
|
|
private String exceptionMessage;
|
|
|
|
private String exceptionMessage;
|
|
|
|
}
|
|
|
|
}
|
|
|
|