java.lang.Object
org.eclipse.persistence.internal.nosql.adapters.mongo.MongoInteractionSpec
All Implemented Interfaces:
InteractionSpec, Serializable

public class MongoInteractionSpec extends Object implements InteractionSpec
Interaction spec for Mongo JCA adapter.
Since:
EclipseLink 2.4
See Also:
  • Field Details

    • operation

      protected MongoOperation operation
    • collection

      protected String collection
    • code

      protected String code
    • options

      protected int options
      Operation query options.
    • readPreference

      protected transient com.mongodb.ReadPreference readPreference
      Operation read preference.
    • writeConcern

      protected transient com.mongodb.WriteConcern writeConcern
      Operation write concern.
    • skip

      protected int skip
      Operation skip for finds, number of rows to skip.
    • limit

      protected int limit
      Operation limit for finds, number of rows to fetch.
    • batchSize

      protected int batchSize
      Operation batchSize for finds, fetch size.
    • upsert

      protected boolean upsert
      Operation upsert, to perform insert if document is missing.
    • multi

      protected boolean multi
      Operation multi, to perform update all matching documents.
  • Constructor Details

    • MongoInteractionSpec

      public MongoInteractionSpec()
  • Method Details

    • getCollection

      public String getCollection()
    • setCollection

      public void setCollection(String collection)
    • getOperation

      public MongoOperation getOperation()
    • setOperation

      public void setOperation(MongoOperation operation)
    • 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

      public String getCode()
    • setCode

      public void setCode(String code)
    • toString

      public String toString()
      Overrides:
      toString in class Object