Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change format of queryNode REST API results
- Loading branch information
Showing
4 changed files
with
116 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
symmetric-server/src/main/java/org/jumpmind/symmetric/web/rest/model/Column.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.jumpmind.symmetric.web.rest.model; | ||
|
||
public class Column { | ||
|
||
private int ordinal; | ||
private String name; | ||
private String value; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
public String getValue() { | ||
return value; | ||
} | ||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
public int getOrdinal() { | ||
return ordinal; | ||
} | ||
public void setOrdinal(int ordinal) { | ||
this.ordinal = ordinal; | ||
} | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
symmetric-server/src/main/java/org/jumpmind/symmetric/web/rest/model/QueryResults.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.jumpmind.symmetric.web.rest.model; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class QueryResults { | ||
|
||
int nbrResults; | ||
List<Row> results; | ||
|
||
public QueryResults() { | ||
nbrResults=0; | ||
results = new ArrayList<Row>(); | ||
} | ||
|
||
public int getNbrResults() { | ||
return nbrResults; | ||
} | ||
|
||
public void setNbrResults(int nbrResults) { | ||
this.nbrResults = nbrResults; | ||
} | ||
|
||
public List<Row> getResults() { | ||
return results; | ||
} | ||
|
||
public void setResults(List<Row> results) { | ||
this.results = results; | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
symmetric-server/src/main/java/org/jumpmind/symmetric/web/rest/model/Row.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.jumpmind.symmetric.web.rest.model; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class Row { | ||
|
||
private int rowNum; | ||
private List<Column> columnData; | ||
|
||
public Row() { | ||
columnData = new ArrayList<Column>(); | ||
} | ||
|
||
public int getRowNum() { | ||
return rowNum; | ||
} | ||
public void setRowNum(int rowNum) { | ||
this.rowNum = rowNum; | ||
} | ||
public List<Column> getColumnData() { | ||
return columnData; | ||
} | ||
public void setColumData(List<Column> columData) { | ||
this.columnData = columData; | ||
} | ||
|
||
} |