Summary: How to specify that some objects in a persistent space should not be saved to the persistent storage.
OverviewWhen using a persistent space there are situations where not all the space objects need to be persistent (saved within the database). You can specify a space Object to be stored only in the space, without storing it also in the persistent store, by setting its persist mode to have a false value. You should set this value at the space class level or at the object level. When setting it at the object level you should have it set to false before writing it into the space. After the space object has been written to the space you cannot change its persist mode. Transient Space objects are treated the same as persistent objects, but when you call the write operation, only persistent objects are saved to the persistent store. All space operations, including batch operations, are valid for transient space object.
Specifying Transient Object at the Class Level
@SpaceClass (persist=false) public class MyData { ... }
Specifying Transient Object at the Object Level
@SpaceClass public class MyData { ... @SpacePersist boolean getPersistMode() { return false; } }
|
![]() |
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence |