com.h3c.util.persistence.cassandra.query

## Class TransWriteWithSelStarDecorator<T extends TransportObject<? super T,?>>

- java.lang.Object
- - com.h3c.util.persistence.cassandra.query.WriteQueryDecorator<T,DataStoreContext>
  - - com.h3c.util.persistence.cassandra.query.TransWriteWithSelStarDecorator<T>

- Type Parameters:
    `T` - Type of the TransportObject object
  All Implemented Interfaces:
    WriteQuery<T,DataStoreContext>

      public class TransWriteWithSelStarDecorator<T extends TransportObject<? super T,?>>
      extends WriteQueryDecorator<T,DataStoreContext>

  TransWriteWithSelectStar is a concrete decorator that provides a write query with locks and taking into account a select * operation on the database.
  If there is a read all operation in progress, this write operation will wait for the completion of the read operation.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `execute(DataStoreContext context)` This is the single execute method provided by the WriteQuery interface.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### execute

          public T execute(DataStoreContext context)
                                                         throws Exception

      Description copied from interface: `WriteQuery`
      This is the single execute method provided by the WriteQuery interface. The application/business logic prepares a write query and as the last step, calls this method to transmit data to the underlying tiers. This data is persisted using DAO and Entity Manager.
      Parameters:
        `context` - - The DataStore context. Provides the context to the query.
      Returns:
        Transport object that has been persisted/deleted.
      Throws:
        `Exception`

Copyright © 2014. All Rights Reserved.