Annotation Interface SpaceClass


@Target(TYPE) @Retention(RUNTIME) public @interface SpaceClass
 Defines a class annotation of Entry/POJO
 objects. This class is annotations class describe the fields we are using for
 convert POJO to entry and entry to POJO with out gs xml file The annotation
 indicate POJO to entry attribute
 

Since:
5.0
Author:
Lior Ben Yizhak
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    When cache policy is "BLOB_STORE" only the indices + minimal administrative information will be kept in cache per entry, while the data will be kept as blobs.
    boolean
    When broadcast is false, entries will distributed across partitions when true entries will be replicated to each partition
    Determines FIFO operations support for this class.
    When 'get' field method is not declared with SpaceProperty annotation it is taking into account as space field only if fieldInclusion is IncludeProperties.IMPLICIT.
    boolean
    Deprecated.
    Since 8.0 - To disable an index from the super class, override the relevant property with @SpaceIndex(SpaceIndexType.NONE).
    boolean
    When space defined as persistent true value for this annotation will persist object of this type.
    boolean
    When running in partial replication mode, a true value for this field will replicate the all object of this type to target space(s)
     
  • Element Details

    • fifoSupport

      FifoSupport fifoSupport
      Determines FIFO operations support for this class.
      See Also:
      Default:
      DEFAULT
    • replicate

      boolean replicate
      When running in partial replication mode, a true value for this field will replicate the all object of this type to target space(s)
      Default:
      true
    • persist

      boolean persist
      When space defined as persistent true value for this annotation will persist object of this type. See more at the database cache and persistency section.
      Default:
      true
    • inheritIndexes

      @Deprecated boolean inheritIndexes
      Deprecated.
      Since 8.0 - To disable an index from the super class, override the relevant property with @SpaceIndex(SpaceIndexType.NONE).
      The index level indicate if to take into account the indexes which declared into superclasses or only in the instance itself
      Returns:
      boolean true for inherit.
      Default:
      true
    • includeProperties

      SpaceClass.IncludeProperties includeProperties
      When 'get' field method is not declared with SpaceProperty annotation it is taking into account as space field only if fieldInclusion is IncludeProperties.IMPLICIT. The default is IncludeProperties.IMPLICIT to take into account all the POJO fields.
      Default:
      IMPLICIT
    • storageType

      StorageType storageType
      Since:
      9.0.0
      Default:
      DEFAULT
    • blobstoreEnabled

      boolean blobstoreEnabled
      When cache policy is "BLOB_STORE" only the indices + minimal administrative information will be kept in cache per entry, while the data will be kept as blobs. This attribute when set to "false" disables blob-store of classes and keeping the entries entirely cached.
      Returns:
      true if blobStore will be enabled
      Default:
      true
    • broadcast

      boolean broadcast
      When broadcast is false, entries will distributed across partitions when true entries will be replicated to each partition
      Returns:
      boolean true for broadcast.
      Default:
      false