类 UpdateTimestampGeneration

    • 构造器详细资料

      • UpdateTimestampGeneration

        public UpdateTimestampGeneration()
    • 方法详细资料

      • initialize

        public void initialize​(UpdateTimestamp annotation,
                               Class<?> propertyType)
        从接口复制的说明: AnnotationValueGeneration
        Initializes this generation strategy for the given annotation instance.
        指定者:
        initialize 在接口中 AnnotationValueGeneration<UpdateTimestamp>
        参数:
        annotation - an instance of the strategy's annotation type. Typically implementations will retrieve the annotation's attribute values and store them in fields.
        propertyType - the type of the property annotated with the generator annotation. Implementations may use the type to determine the right ValueGenerator to be applied.
      • getValueGenerator

        public ValueGenerator<?> getValueGenerator()
        从接口复制的说明: ValueGeneration
        Obtain the in-VM value generator.

        May return null. In fact for values that are generated "in the database" via execution of the INSERT/UPDATE statement, the expectation is that null be returned here

        指定者:
        getValueGenerator 在接口中 ValueGeneration
        返回:
        The strategy for performing in-VM value generation
      • referenceColumnInSql

        public boolean referenceColumnInSql()
        从接口复制的说明: ValueGeneration
        For values which are generated in the database (ValueGeneration.getValueGenerator() == null), should the column be referenced in the INSERT / UPDATE SQL?

        This will be false most often to have a DDL-defined DEFAULT value be applied on INSERT

        指定者:
        referenceColumnInSql 在接口中 ValueGeneration
        返回:
        true indicates the column should be included in the SQL.