public class JSONStoreChangeOptions
extends java.lang.Object
Constructor and Description |
---|
JSONStoreChangeOptions() |
JSONStoreChangeOptions(org.json.JSONObject js_options) |
Modifier and Type | Method and Description |
---|---|
void |
addSearchFieldToCriteria(java.lang.String search_field)
Add a search field to the criteria.
|
java.util.List |
getSearchFieldCriteria() |
boolean |
isAddNew()
Determine if the add new flag is set or not.
|
boolean |
isMarkDirty()
Determine if the mark dirty flag is set or not.
|
void |
setAddNew(boolean add_new)
Enable or disable if the document should be added if a previously stored
document could not be found.
|
void |
setMarkDirty(boolean mark_dirty)
Enable or disable the mark dirty flag.
|
void |
setSearchFieldCriteria(java.util.List search_fields)
Set the search field criteria to the list of strings that are passed.
|
public JSONStoreChangeOptions()
public JSONStoreChangeOptions(org.json.JSONObject js_options) throws org.json.JSONException
org.json.JSONException
public void addSearchFieldToCriteria(java.lang.String search_field)
search_field
- A search field that is used to compare in the database that is
found in the document.public void setSearchFieldCriteria(java.util.List search_fields)
search_fields
- The search criteria to use.public java.util.List getSearchFieldCriteria()
public void setMarkDirty(boolean mark_dirty)
mark_dirty
- If true, the document that is added will be marked dirty when
it is changed.public boolean isMarkDirty()
JSONStoreChangeOptions.setMarkDirty(boolean)
public void setAddNew(boolean add_new)
add_new
- If true, the document will be added if a match could not be
found in the collection.public boolean isAddNew()
JSONStoreChangeOptions.setAddNew(boolean)
© Copyright IBM Corp. 2006, 2015. All Rights Reserved.