Purpose: Used for inserting or updating objects WriteObjectQuery determines whether to perform a insert or an update on the database.
Responsibilities:
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | executeCommit()
INTERNAL: Perform a does exist check to decide whether to perform an insert or update and delegate the work to the mechanism. |
| public void | executeCommitWithChangeSet()
INTERNAL: Perform a does exist check to decide whether to perform an insert or update and delegate the work to the mechanism. |
| public Object | Returns: object - the object being written.Implements abstract org. |
| protected QueryRedirector | getDefaultRedirector()
Overrides org. |
| public boolean | isWriteObjectQuery()
Overrides org. |
| public void | prepareForExecution()
Overrides org. |
| WriteObjectQuery | back to summary |
|---|---|
| public WriteObjectQuery() | |
| WriteObjectQuery | back to summary |
|---|---|
| public WriteObjectQuery(Object objectToWrite) | |
| WriteObjectQuery | back to summary |
|---|---|
| public WriteObjectQuery(Call call) | |
| executeCommit | back to summary |
|---|---|
| public void executeCommit() throws DatabaseException, OptimisticLockException INTERNAL: Perform a does exist check to decide whether to perform an insert or update and delegate the work to the mechanism. | |
| executeCommitWithChangeSet | back to summary |
|---|---|
| public void executeCommitWithChangeSet() throws DatabaseException, OptimisticLockException INTERNAL: Perform a does exist check to decide whether to perform an insert or update and delegate the work to the mechanism. | |
| executeDatabaseQuery | back to summary |
|---|---|
| public Object executeDatabaseQuery() throws DatabaseException, OptimisticLockException Implements abstract org. INTERNAL: Perform a does exist check to decide whether to perform an insert or update and delegate the work to the mechanism. Does exists check will also perform an optimistic lock check if required.
| |
| getDefaultRedirector | back to summary |
|---|---|
| protected QueryRedirector getDefaultRedirector() Overrides org. INTERNAL: Returns the specific default redirector for this query type. There are numerous default query redirectors. See ClassDescriptor for their types.
| |
| isWriteObjectQuery | back to summary |
|---|---|
| public boolean isWriteObjectQuery() Overrides org. PUBLIC: Return if this is a write object query.
| |
| prepareForExecution | back to summary |
|---|---|
| public void prepareForExecution() throws QueryException Overrides org. INTERNAL: Prepare the receiver for execution in a session.
| |