|
EclipseLink 2.4.0, build 'v20120608-r11652' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform org.eclipse.persistence.eis.EISPlatform org.eclipse.persistence.nosql.adapters.mongo.MongoPlatform
public class MongoPlatform
Platform for Mongo database.
Field Summary | |
---|---|
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
|
Fields inherited from class org.eclipse.persistence.eis.EISPlatform |
---|
domMethod, isDOMRecordSupported, isIndexedRecordSupported, isMappedRecordSupported, recordConverter, requiresAutoCommit, shouldConvertDataToStrings, supportsLocalTransactions, xmlConversionManager |
Fields inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform |
---|
conversionManager, dataTypesConvertedFromAClass, dataTypesConvertedToAClass, defaultSequence, endDelimiter, platformOperators, sequences, sequencesLock, startDelimiter, tableQualifier, timestampQuery |
Constructor Summary | |
---|---|
MongoPlatform()
Default constructor. |
Method Summary | |
---|---|
protected void |
appendExpressionToQueryRow(Expression expression,
org.eclipse.persistence.internal.sessions.AbstractRecord row,
DatabaseQuery query)
Append the expression and recursively to the query row. |
protected void |
appendExpressionToSortRow(Expression expression,
org.eclipse.persistence.internal.sessions.AbstractRecord row,
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,
DatabaseQuery query,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Override this method to throw an exception by default. |
javax.resource.cci.InteractionSpec |
buildInteractionSpec(EISInteraction interaction)
Allow the platform to build the interaction spec based on properties defined in the interaction. |
javax.resource.cci.Record |
createOutputRecord(EISInteraction interaction,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
EISAccessor accessor)
For updates a separate translation record is required. |
protected Sequence |
createPlatformDefaultSequence()
INTERNAL: Create platform-default Sequence |
protected java.lang.Object |
extractValueFromExpression(Expression expression,
DatabaseQuery query)
Extract the field or constant value from the comparison expression. |
void |
initializeDefaultQueries(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,
EISAccessor accessor)
Mongo does not support all Java types. |
boolean |
shouldPrepare(DatabaseQuery query)
Do not prepare dynamic queries, as the translation row is required. |
Methods inherited from class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform |
---|
addOperator, addSequence, addSequence, buildSelectQueryForIdentity, buildSelectQueryForIdentity, buildSelectQueryForSequenceObject, buildSelectQueryForSequenceObject, clone, convertObject, copyInto, createConnectionCustomizer, getCustomModifyValueForCall, getDataTypesConvertedFrom, getDataTypesConvertedTo, getDefaultSequence, getDefaultSequenceToWrite, getEndDelimiter, getIdentifierQuoteCharacter, getOperator, getPlatformOperators, getSelectSequenceQuery, getSequence, getSequencePreallocationSize, getSequences, getSequencesToWrite, getStartDelimiter, getTableQualifier, getTimestampFromServer, getTimestampQuery, getUpdateSequenceQuery, hasDefaultSequence, initialize, initializePlatformOperators, isAccess, isAttunity, isCloudscape, isDB2, isDBase, isDerby, isFirebird, isH2, isHSQL, isInformix, isMaxDB, isMySQL, isODBC, isOracle, isOracle9, isPointBase, isPostgreSQL, isSQLAnywhere, isSQLServer, isSybase, isSymfoware, isTimesTen, isTimesTen7, removeAllSequences, removeSequence, sequencesAfterCloneCleanup, setConversionManager, setDefaultSequence, setEndDelimiter, setSelectSequenceNumberQuery, setSequencePreallocationSize, setSequences, setStartDelimiter, setTableQualifier, setTimestampQuery, setUpdateSequenceQuery, shouldNativeSequenceUseTransaction, shouldSelectDistinctIncludeOrderBy, shouldSelectIncludeOrderBy, shouldUseCustomModifyForCall, supportsIdentity, supportsNativeSequenceNumbers, supportsSequenceObjects, toString, usesPlatformDefaultSequence |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String OPERATION
public static java.lang.String COLLECTION
public static java.lang.String OPTIONS
public static java.lang.String READ_PREFERENCE
public static java.lang.String WRITE_CONCERN
public static java.lang.String SKIP
public static java.lang.String LIMIT
public static java.lang.String BATCH_SIZE
protected boolean isLikeRegex
Constructor Detail |
---|
public MongoPlatform()
Method Detail |
---|
public void setValueInRecord(java.lang.String key, java.lang.Object value, javax.resource.cci.MappedRecord record, EISAccessor accessor)
setValueInRecord
in class EISPlatform
public boolean isLikeRegex()
public void setIsLikeRegex(boolean isLikeRegex)
public javax.resource.cci.InteractionSpec buildInteractionSpec(EISInteraction interaction)
buildInteractionSpec
in class EISPlatform
public javax.resource.cci.Record createOutputRecord(EISInteraction interaction, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, EISAccessor accessor)
createOutputRecord
in class EISPlatform
public void initializeDefaultQueries(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, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractSession session)
buildCallFromStatement
in class EISPlatform
protected void appendExpressionToQueryRow(Expression expression, org.eclipse.persistence.internal.sessions.AbstractRecord row, DatabaseQuery query)
protected void appendExpressionToSortRow(Expression expression, org.eclipse.persistence.internal.sessions.AbstractRecord row, DatabaseQuery query)
protected java.lang.Object extractValueFromExpression(Expression expression, DatabaseQuery query)
public boolean shouldPrepare(DatabaseQuery query)
shouldPrepare
in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform
protected Sequence createPlatformDefaultSequence()
createPlatformDefaultSequence
in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform
|
EclipseLink 2.4.0, build 'v20120608-r11652' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |