public class MongoPlatform
extends org.eclipse.persistence.eis.EISPlatform
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BATCH_SIZE |
static java.lang.String |
COLLECTION |
protected boolean |
isLikeRegex
Configure if like should be SQL or regex.
|
static java.lang.String |
LIMIT |
static java.lang.String |
OPERATION
Mongo interaction spec properties.
|
static java.lang.String |
OPTIONS |
static java.lang.String |
READ_PREFERENCE |
static java.lang.String |
SKIP |
static java.lang.String |
WRITE_CONCERN |
domMethod, isDOMRecordSupported, isIndexedRecordSupported, isMappedRecordSupported, recordConverter, requiresAutoCommit, shouldConvertDataToStrings, supportsLocalTransactions, xmlConversionManager
conversionManager, dataTypesConvertedFromAClass, dataTypesConvertedToAClass, defaultNativeSequenceToTable, defaultSequence, endDelimiter, platformOperators, sequences, sequencesLock, startDelimiter, tableQualifier, timestampQuery
Constructor and Description |
---|
MongoPlatform()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendExpressionToQueryRow(org.eclipse.persistence.expressions.Expression expression,
org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.queries.DatabaseQuery query)
Append the expression and recursively to the query row.
|
protected void |
appendExpressionToSortRow(org.eclipse.persistence.expressions.Expression expression,
org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.queries.DatabaseQuery query)
Append the order by expression to the sort row.
|
org.eclipse.persistence.internal.databaseaccess.DatasourceCall |
buildCallFromStatement(org.eclipse.persistence.internal.expressions.SQLStatement statement,
org.eclipse.persistence.queries.DatabaseQuery query,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Override this method to throw an exception by default.
|
javax.resource.cci.InteractionSpec |
buildInteractionSpec(org.eclipse.persistence.eis.interactions.EISInteraction interaction)
Allow the platform to build the interaction spec based on properties defined in the interaction.
|
javax.resource.cci.Record |
createOutputRecord(org.eclipse.persistence.eis.interactions.EISInteraction interaction,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
org.eclipse.persistence.eis.EISAccessor accessor)
For updates a separate translation record is required.
|
protected org.eclipse.persistence.sequencing.Sequence |
createPlatformDefaultSequence()
INTERNAL:
Create platform-default Sequence
|
protected java.lang.Object |
extractValueFromExpression(org.eclipse.persistence.expressions.Expression expression,
org.eclipse.persistence.queries.DatabaseQuery query)
Extract the field or constant value from the comparison expression.
|
void |
initializeDefaultQueries(org.eclipse.persistence.descriptors.DescriptorQueryManager queryManager,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Allow the platform to initialize the CRUD queries to defaults.
|
boolean |
isLikeRegex()
Return if regex should be used for like.
|
void |
setIsLikeRegex(boolean isLikeRegex)
Set if regex should be used for like.
|
void |
setValueInRecord(java.lang.String key,
java.lang.Object value,
javax.resource.cci.MappedRecord record,
org.eclipse.persistence.eis.EISAccessor accessor)
Mongo does not support all Java types.
|
boolean |
shouldPrepare(org.eclipse.persistence.queries.DatabaseQuery query)
Do not prepare dynamic queries, as the translation row is required.
|
appendParameter, buildNativeCall, buildRow, buildRows, createDatabaseRowFromDOMRecord, createDOMRecord, createInputRecord, getConversionManager, getRecordConverter, getValueFromRecord, isDOMRecordSupported, isIndexedRecordSupported, isMappedRecordSupported, requiresAutoCommit, setDOMInRecord, setIsDOMRecordSupported, setIsIndexedRecordSupported, setIsMappedRecordSupported, setRecordConverter, setRequiresAutoCommit, setShouldConvertDataToStrings, setSupportsLocalTransactions, shouldConvertDataToStrings, supportsLocalTransactions
addOperator, addSequence, addSequence, buildSelectQueryForIdentity, buildSelectQueryForIdentity, buildSelectQueryForSequenceObject, buildSelectQueryForSequenceObject, clone, convertObject, copyInto, createConnectionCustomizer, getCustomModifyValueForCall, getDataTypesConvertedFrom, getDataTypesConvertedTo, getDefaultNativeSequenceToTable, getDefaultSequence, getDefaultSequenceToWrite, getEndDelimiter, getIdentifierQuoteCharacter, getOperator, getPlatformOperators, getSelectSequenceQuery, getSequence, getSequencePreallocationSize, getSequences, getSequencesToWrite, getStartDelimiter, getTableQualifier, getTimestampFromServer, getTimestampQuery, getUpdateSequenceQuery, hasDefaultSequence, initialize, initializePlatformOperators, initIdentitySequences, isAccess, isAttunity, isCloudscape, isDB2, isDBase, isDerby, isFirebird, isH2, isHANA, isHSQL, isInformix, isMaxDB, isMySQL, isODBC, isOracle, isOracle12, isOracle9, isPervasive, isPointBase, isPostgreSQL, isSQLAnywhere, isSQLServer, isSybase, isSymfoware, isTimesTen, isTimesTen7, removeAllSequences, removeIdentitySequences, removeSequence, sequencesAfterCloneCleanup, setConversionManager, setDefaultNativeSequenceToTable, setDefaultSequence, setEndDelimiter, setSelectSequenceNumberQuery, setSequencePreallocationSize, setSequences, setStartDelimiter, setTableQualifier, setTimestampQuery, setUpdateSequenceQuery, shouldNativeSequenceUseTransaction, shouldSelectDistinctIncludeOrderBy, shouldSelectIncludeOrderBy, shouldUseCustomModifyForCall, supportsIdentity, supportsNativeSequenceNumbers, supportsSequenceObjects, toString, usesPlatformDefaultSequence
public static final java.lang.String OPERATION
public static final java.lang.String COLLECTION
public static final java.lang.String OPTIONS
public static final java.lang.String READ_PREFERENCE
public static final java.lang.String WRITE_CONCERN
public static final java.lang.String SKIP
public static final java.lang.String LIMIT
public static final java.lang.String BATCH_SIZE
protected boolean isLikeRegex
public void setValueInRecord(java.lang.String key, java.lang.Object value, javax.resource.cci.MappedRecord record, org.eclipse.persistence.eis.EISAccessor accessor)
setValueInRecord
in class org.eclipse.persistence.eis.EISPlatform
public boolean isLikeRegex()
public void setIsLikeRegex(boolean isLikeRegex)
public javax.resource.cci.InteractionSpec buildInteractionSpec(org.eclipse.persistence.eis.interactions.EISInteraction interaction)
buildInteractionSpec
in class org.eclipse.persistence.eis.EISPlatform
public javax.resource.cci.Record createOutputRecord(org.eclipse.persistence.eis.interactions.EISInteraction interaction, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, org.eclipse.persistence.eis.EISAccessor accessor)
createOutputRecord
in class org.eclipse.persistence.eis.EISPlatform
public void initializeDefaultQueries(org.eclipse.persistence.descriptors.DescriptorQueryManager queryManager, org.eclipse.persistence.internal.sessions.AbstractSession session)
initializeDefaultQueries
in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform
public org.eclipse.persistence.internal.databaseaccess.DatasourceCall buildCallFromStatement(org.eclipse.persistence.internal.expressions.SQLStatement statement, org.eclipse.persistence.queries.DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)
buildCallFromStatement
in class org.eclipse.persistence.eis.EISPlatform
protected void appendExpressionToQueryRow(org.eclipse.persistence.expressions.Expression expression, org.eclipse.persistence.internal.sessions.AbstractRecord row, org.eclipse.persistence.queries.DatabaseQuery query)
protected void appendExpressionToSortRow(org.eclipse.persistence.expressions.Expression expression, org.eclipse.persistence.internal.sessions.AbstractRecord row, org.eclipse.persistence.queries.DatabaseQuery query)
protected java.lang.Object extractValueFromExpression(org.eclipse.persistence.expressions.Expression expression, org.eclipse.persistence.queries.DatabaseQuery query)
public boolean shouldPrepare(org.eclipse.persistence.queries.DatabaseQuery query)
shouldPrepare
in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform
protected org.eclipse.persistence.sequencing.Sequence createPlatformDefaultSequence()
createPlatformDefaultSequence
in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform