Class BundleInfoJpa

java.lang.Object
org.opencastproject.kernel.bundleinfo.BundleInfoJpa

@Entity(name="BundleInfo") public class BundleInfoJpa extends Object
  • Field Details

    • id

      protected long id
    • host

      protected String host
    • bundleSymbolicName

      protected String bundleSymbolicName
    • bundleId

      protected long bundleId
    • bundleVersion

      protected String bundleVersion
    • buildNumber

      protected String buildNumber
    • dbSchemaVersion

      protected String dbSchemaVersion
    • findAll

      public static final Function<javax.persistence.EntityManager,List<BundleInfoJpa>> findAll
      Find all in database.
    • deleteAll

      public static final Function<javax.persistence.EntityManager,Integer> deleteAll
      Delete all entities of BundleInfo from the database.
  • Constructor Details

    • BundleInfoJpa

      public BundleInfoJpa()
  • Method Details

    • create

      public static BundleInfoJpa create(BundleInfo a)
    • toBundleInfo

      public BundleInfo toBundleInfo()
    • findAll

      public static Function<javax.persistence.EntityManager,List<BundleInfoJpa>> findAll(String... prefixes)
      Find all bundles whose symbolic names start with one of the given prefixes.
    • deleteByHost

      public static Function<javax.persistence.EntityManager,Integer> deleteByHost(String host)
      Delete all entities of BundleInfo of a certain host from the database.
    • delete

      public static Function<javax.persistence.EntityManager,Integer> delete(String host, long bundleId)
      Delete a bundle info.