Class PredefinedUUIDGenerator

java.lang.Object
org.hibernate.id.UUIDGenerator
org.dspace.content.PredefinedUUIDGenerator
All Implemented Interfaces:
org.hibernate.boot.model.relational.ExportableProducer, org.hibernate.id.Configurable, org.hibernate.id.IdentifierGenerator

public class PredefinedUUIDGenerator extends org.hibernate.id.UUIDGenerator
Allows DSpaceObjects to provide a pre-determined UUID
Author:
April Herron
  • Field Summary

    Fields inherited from class org.hibernate.id.UUIDGenerator

    UUID_GEN_STRATEGY, UUID_GEN_STRATEGY_CLASS

    Fields inherited from interface org.hibernate.id.IdentifierGenerator

    ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object)
     

    Methods inherited from class org.hibernate.id.UUIDGenerator

    buildSessionFactoryUniqueIdentifierGenerator, configure

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hibernate.id.IdentifierGenerator

    initialize, registerExportables, supportsJdbcBatchInserts
  • Constructor Details

    • PredefinedUUIDGenerator

      public PredefinedUUIDGenerator()
  • Method Details

    • generate

      public Serializable generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object)
      Specified by:
      generate in interface org.hibernate.id.IdentifierGenerator
      Overrides:
      generate in class org.hibernate.id.UUIDGenerator