Class SimpleStorageResource

All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="execbroker:SimpleStorageResource", role=objectType) public class SimpleStorageResource extends AbstractStorageResource implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple storage resource. objectType: SimpleStorageResource
  • Field Details

    • size

      @VoDml(id="execbroker:SimpleStorageResource.size", role=attribute, type="execbroker:SimpleStorageSize", typeRole=dataType) protected SimpleStorageSize size
      . : Attribute size : multiplicity 1
  • Constructor Details

    • SimpleStorageResource

      public SimpleStorageResource()
      Creates a new SimpleStorageResource
    • SimpleStorageResource

      public SimpleStorageResource(SimpleStorageSize size, LifecyclePhase phase, LifecycleSchedule schedule, String kind, ComponentMetadata meta)
      full parameter constructor.
      Parameters:
      size - .
      phase - The lifecycle phase.
      schedule - The lifecycle schedule.
      kind - The component type identifier.
      meta - The component metadata.
    • SimpleStorageResource

      public SimpleStorageResource(SimpleStorageResource other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • SimpleStorageResource

      public SimpleStorageResource(AbstractStorageResource superinstance, SimpleStorageSize size)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      size - .
  • Method Details

    • copyMe

      public AbstractComponent copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class AbstractStorageResource
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(SimpleStorageResource other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • getSize

      public SimpleStorageSize getSize()
      Returns size Attribute.
      Returns:
      size Attribute
    • setSize

      public void setSize(SimpleStorageSize pSize)
      Set size Attribute.
      Parameters:
      pSize - value to set
    • withSize

      public SimpleStorageResource withSize(SimpleStorageSize pSize)
      fluent setter for size Attribute.
      Parameters:
      pSize - value to set
      Returns:
      SimpleStorageResource
    • createSimpleStorageResource

      create a SimpleStorageResource in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class AbstractStorageResource
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>