Class Oracle11SagaSqlSchema
java.lang.Object
org.axonframework.modelling.saga.repository.jdbc.GenericSagaSqlSchema
org.axonframework.modelling.saga.repository.jdbc.Oracle11SagaSqlSchema
- All Implemented Interfaces:
SagaSqlSchema
Oracle 11 does not support AUTO_INCREMENT. A workaround is used in this class in order to create the same behavior.
Oracle 11 does not like semicolons at the end of a CREATE TABLE statement. These semicolons are dropped in this
class.
-
Field Summary
Fields inherited from class org.axonframework.modelling.saga.repository.jdbc.GenericSagaSqlSchema
sagaSchema -
Constructor Summary
ConstructorsConstructorDescriptionOracle11SagaSqlSchema(SagaSchema sagaSchema) Initialize a Oracle11SagaSqlSchema using the givensagaSchema. -
Method Summary
Modifier and TypeMethodDescriptionCreates a PreparedStatement that creates the table for storing Association Values for Sagas.Creates a PreparedStatement that creates the table for storing Sagas.Methods inherited from class org.axonframework.modelling.saga.repository.jdbc.GenericSagaSqlSchema
readAssociationValues, readSerializedSaga, readToken, sagaSchema, sql_deleteAssociationEntries, sql_deleteSagaEntry, sql_findAssociations, sql_findAssocSagaIdentifiers, sql_loadSaga, sql_removeAssocValue, sql_storeAssocValue, sql_storeSaga, sql_updateSaga
-
Constructor Details
-
Oracle11SagaSqlSchema
Initialize a Oracle11SagaSqlSchema using the givensagaSchema.- Parameters:
sagaSchema- the saga schema configuration
-
-
Method Details
-
sql_createTableAssocValueEntry
Description copied from interface:SagaSqlSchemaCreates a PreparedStatement that creates the table for storing Association Values for Sagas.- Specified by:
sql_createTableAssocValueEntryin interfaceSagaSqlSchema- Overrides:
sql_createTableAssocValueEntryin classGenericSagaSqlSchema- Parameters:
conn- The connection to create the PreparedStatement for- Returns:
- a Prepared statement that created the Association Value table, when executed
- Throws:
SQLException- when an error occurs creating the PreparedStatement
-
sql_createTableSagaEntry
Description copied from interface:SagaSqlSchemaCreates a PreparedStatement that creates the table for storing Sagas.- Specified by:
sql_createTableSagaEntryin interfaceSagaSqlSchema- Overrides:
sql_createTableSagaEntryin classGenericSagaSqlSchema- Parameters:
conn- The connection to create the PreparedStatement for- Returns:
- a Prepared statement that created the Saga table, when executed
- Throws:
SQLException- when an error occurs creating the PreparedStatement
-