Class PersistenceMarker

java.lang.Object
io.higson.runtime.helper.PersistenceMarker

public class PersistenceMarker extends Object
Scans bundle and mark all properties persistent or transient. Here are the rules: 1. ValueProperty is transient when created by get() 2. ValueProperty is persistent when modified by set() 3. EntityProperty is persistent when any child is persistent 4. CollectionProperty is persistent 5. CollectionProperty elements are persistent
Author:
przemek hertel
  • Method Details

    • mark

      public static PersistenceMarker mark(Bundle b)
      scans bundle and mark all properties persistent or transient, transient entities are collected in [transientProperties] collection
      Parameters:
      b - bundle to mark
      Returns:
      new instance of persistence marker which marked given bundle
    • removeTransients

      public void removeTransients()