- All Known Implementing Classes:
DefaultSequenceColumnValueGenerator,OracleSequenceColumnValueGenerator,PostgresSequenceColumnValueGenerator,SequenceColumnValueGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface for generating values for a specific database column. Implementations
of this interface should provide a mechanism to compute or fetch the value to be assigned to
the column, potentially based on the column's metadata information.
The ColumnValueGenerator interface is typically used in scenarios where
custom or dynamic values need to be generated for database expressions during operations like
data insertion or updates.
This interface enforces the implementation of a single method generate, which is expected
to return the computed value for the column.
-
Method Summary
Modifier and TypeMethodDescriptiongenerate(ColumnMetaData columnMetaData) Generates a value for a given database column based on its metadata.
-
Method Details
-
generate
Generates a value for a given database column based on its metadata.- Parameters:
columnMetaData- metadata information for the database column, such as its name, data type, size, and other attributes- Returns:
- the generated value for the column, which could be dynamically computed or fetched based on the column's metadata
-