|
32 | 32 | * <p> |
33 | 33 | * All three of these subclasses post similar JSON to the server, so this class |
34 | 34 | * does all the common work. The client must supply three things: the schemaName, |
35 | | - * the queryName and an array of 'rows' (i.e. Maps). The rows are added via |
| 35 | + * the queryName and an array of 'rows' (i.e., Maps). The rows are added via |
36 | 36 | * the {@link #addRow(Map)} or {@link #setRows(List)} methods. |
37 | 37 | * <p> |
38 | 38 | * All data exposed from the LabKey Server is organized into a set of queries |
39 | 39 | * contained in a set of schemas. A schema is simply a group of queries, identified |
40 | | - * by a name (e.g., 'lists' or 'study'). A query is particular table or view within |
| 40 | + * by a name (e.g., 'lists' or 'study'). A query is a particular table or view within |
41 | 41 | * that schema (e.g., 'People' or 'Peptides'). Currently, clients may update rows in |
42 | | - * base tables only, and not in joined views. Therefore the query name must be the |
| 42 | + * base tables only and not in joined views. Therefore, the query name must be the |
43 | 43 | * name of a table in the schema. |
44 | 44 | * <p> |
45 | 45 | * To view the schemas and queries exposed in a given folder, add a Query web part |
|
49 | 49 | * <p> |
50 | 50 | * Examples: |
51 | 51 | * <pre><code> |
52 | | - * // May need to add CONTEXT_PATH for dev instances |
53 | | - * Connection cn = new Connection("http://localhost:8080", user, password); |
| 52 | + * ApiKeyCredentialsProvider credentials = new ApiKeyCredentialsProvider("xxx"); |
| 53 | + * Connection cn = new Connection("http://localhost:8080", credentials); |
54 | 54 | * |
55 | 55 | * //Insert Rows Command |
56 | 56 | * InsertRowsCommand cmd = new InsertRowsCommand("lists", "People"); |
|
60 | 60 | * row.put("LastName", "Test"); |
61 | 61 | * |
62 | 62 | * cmd.addRow(row); //can add multiple rows to insert many at once |
63 | | - * SaveRowsResponse resp = cmd.execute(cn, "PROJECT_NAME"); |
| 63 | + * RowsResponse resp = cmd.execute(cn, "PROJECT_NAME"); |
64 | 64 | * |
65 | 65 | * //get the newly-assigned primary key value from the first return row |
66 | 66 | * int newKey = resp.getRows().get(0).get("Key"); |
@@ -98,7 +98,7 @@ public enum AuditBehavior |
98 | 98 | private String _auditUserComment; |
99 | 99 |
|
100 | 100 | /** |
101 | | - * Constructs a new SaveRowsCommand for a given schema, query and action name. |
| 101 | + * Constructs a new BaseRowsCommand for a given schema, query and action name. |
102 | 102 | * @param schemaName The schema name. |
103 | 103 | * @param queryName The query name. |
104 | 104 | * @param actionName The action name to call (supplied by the derived class). |
|
0 commit comments