Class MongoInteractionSpec
java.lang.Object
org.eclipse.persistence.internal.nosql.adapters.mongo.MongoInteractionSpec
- All Implemented Interfaces:
InteractionSpec
,Serializable
Interaction spec for Mongo JCA adapter.
- Since:
- EclipseLink 2.4
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
Operation batchSize for finds, fetch size.protected String
protected String
protected int
Operation limit for finds, number of rows to fetch.protected boolean
Operation multi, to perform update all matching documents.protected MongoOperation
protected int
Operation query options.protected com.mongodb.ReadPreference
Operation read preference.protected int
Operation skip for finds, number of rows to skip.protected boolean
Operation upsert, to perform insert if document is missing.protected com.mongodb.WriteConcern
Operation write concern.Fields inherited from interface jakarta.resource.cci.InteractionSpec
SYNC_RECEIVE, SYNC_SEND, SYNC_SEND_RECEIVE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
int
getLimit()
int
com.mongodb.ReadPreference
int
getSkip()
com.mongodb.WriteConcern
boolean
isMulti()
boolean
isUpsert()
void
setBatchSize
(int batchSize) void
void
setCollection
(String collection) void
setLimit
(int limit) void
setMulti
(boolean multi) void
setOperation
(MongoOperation operation) void
setOptions
(int options) void
setReadPreference
(com.mongodb.ReadPreference readPreference) void
setSkip
(int skip) void
setUpsert
(boolean upsert) void
setWriteConcern
(com.mongodb.WriteConcern writeConcern) toString()
-
Field Details
-
operation
-
collection
-
code
-
options
protected int optionsOperation query options. -
readPreference
protected transient com.mongodb.ReadPreference readPreferenceOperation read preference. -
writeConcern
protected transient com.mongodb.WriteConcern writeConcernOperation write concern. -
skip
protected int skipOperation skip for finds, number of rows to skip. -
limit
protected int limitOperation limit for finds, number of rows to fetch. -
batchSize
protected int batchSizeOperation batchSize for finds, fetch size. -
upsert
protected boolean upsertOperation upsert, to perform insert if document is missing. -
multi
protected boolean multiOperation multi, to perform update all matching documents.
-
-
Constructor Details
-
MongoInteractionSpec
public MongoInteractionSpec()
-
-
Method Details
-
getCollection
-
setCollection
-
getOperation
-
setOperation
-
getOptions
public int getOptions() -
setOptions
public void setOptions(int options) -
getReadPreference
public com.mongodb.ReadPreference getReadPreference() -
setReadPreference
public void setReadPreference(com.mongodb.ReadPreference readPreference) -
getWriteConcern
public com.mongodb.WriteConcern getWriteConcern() -
setWriteConcern
public void setWriteConcern(com.mongodb.WriteConcern writeConcern) -
getSkip
public int getSkip() -
setSkip
public void setSkip(int skip) -
getLimit
public int getLimit() -
setLimit
public void setLimit(int limit) -
getBatchSize
public int getBatchSize() -
setBatchSize
public void setBatchSize(int batchSize) -
isUpsert
public boolean isUpsert() -
setUpsert
public void setUpsert(boolean upsert) -
isMulti
public boolean isMulti() -
setMulti
public void setMulti(boolean multi) -
getCode
-
setCode
-
toString
-