程序包 org.hibernate.id

接口 PersistentIdentifierGenerator

    • 字段详细资料

      • SCHEMA

        static final String SCHEMA
        The configuration parameter holding the schema name
        另请参阅:
        常量字段值
      • TABLE

        static final String TABLE
        The configuration parameter holding the table name for the generated id
        另请参阅:
        常量字段值
      • TABLES

        static final String TABLES
        The configuration parameter holding the table names for all tables for which the id must be unique
        另请参阅:
        常量字段值
      • PK

        static final String PK
        The configuration parameter holding the primary key column name of the generated id
        另请参阅:
        常量字段值
      • CATALOG

        static final String CATALOG
        The configuration parameter holding the catalog name
        另请参阅:
        常量字段值
    • 方法详细资料

      • sqlCreateStrings

        @Deprecated
        String[] sqlCreateStrings​(Dialect dialect)
                           throws HibernateException
        已过时。
        Utilize the ExportableProducer contract instead
        The SQL required to create the underlying database objects.
        参数:
        dialect - The dialect against which to generate the create command(s)
        返回:
        The create command(s)
        抛出:
        HibernateException - problem creating the create command(s)
      • sqlDropStrings

        @Deprecated
        String[] sqlDropStrings​(Dialect dialect)
                         throws HibernateException
        已过时。
        Utilize the ExportableProducer contract instead
        The SQL required to remove the underlying database objects.
        参数:
        dialect - The dialect against which to generate the drop command(s)
        返回:
        The drop command(s)
        抛出:
        HibernateException - problem creating the drop command(s)
      • generatorKey

        Object generatorKey()
        Return a key unique to the underlying database objects. Prevents us from trying to create/remove them multiple times.
        返回:
        Object an identifying key for this generator