Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
136 additions
and
68 deletions.
There are no files selected for viewing
73 changes: 49 additions & 24 deletions
73
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 |
---|---|---|
@@ -1,28 +1,53 @@ | ||
/* | ||
* Licensed to JumpMind Inc under one or more contributor | ||
* license agreements. See the NOTICE file distributed | ||
* with this work for additional information regarding | ||
* copyright ownership. JumpMind Inc licenses this file | ||
* to you under the GNU Lesser General Public License (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, see | ||
* <http://www.gnu.org/licenses/>. | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
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; | ||
} | ||
|
||
|
||
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; | ||
} | ||
|
||
} |
68 changes: 44 additions & 24 deletions
68
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 |
---|---|---|
@@ -1,32 +1,52 @@ | ||
/* | ||
* Licensed to JumpMind Inc under one or more contributor | ||
* license agreements. See the NOTICE file distributed | ||
* with this work for additional information regarding | ||
* copyright ownership. JumpMind Inc licenses this file | ||
* to you under the GNU Lesser General Public License (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, see | ||
* <http://www.gnu.org/licenses/>. | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
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; | ||
} | ||
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; | ||
} | ||
|
||
} |
63 changes: 43 additions & 20 deletions
63
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 |
---|---|---|
@@ -1,28 +1,51 @@ | ||
/* | ||
* Licensed to JumpMind Inc under one or more contributor | ||
* license agreements. See the NOTICE file distributed | ||
* with this work for additional information regarding | ||
* copyright ownership. JumpMind Inc licenses this file | ||
* to you under the GNU Lesser General Public License (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, see | ||
* <http://www.gnu.org/licenses/>. | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
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; | ||
} | ||
|
||
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; | ||
} | ||
|
||
} |