java.lang.Object
java.lang.Record
org.seasar.doma.jdbc.entity.ColumnType
- Record Components:
name- the column name in the databaseinsertable- whether the column should be included in SQL INSERT statementsupdatable- whether the column should be included in SQL UPDATE statementsquote- whether the column name should be enclosed by quotation marks in SQL statements
public record ColumnType(String name, Boolean insertable, Boolean updatable, Boolean quote)
extends Record
Represents the metadata for a database column.
This record encapsulates the configuration of a column in a database table, including its name and behavioral attributes. It is used internally by the Doma framework to manage column mappings and SQL generation.
The column type information is typically derived from Column
annotations or ColumnOverride configurations, and is used to control how
entity properties are mapped to database columns.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionColumnType(String name, Boolean insertable, Boolean updatable, Boolean quote) Creates an instance of aColumnTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinsertablerecord component.name()Returns the value of thenamerecord component.quote()Returns the value of thequoterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatablerecord component.
-
Constructor Details
-
ColumnType
Creates an instance of aColumnTyperecord class.- Parameters:
name- the value for thenamerecord componentinsertable- the value for theinsertablerecord componentupdatable- the value for theupdatablerecord componentquote- the value for thequoterecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
insertable
Returns the value of theinsertablerecord component.- Returns:
- the value of the
insertablerecord component
-
updatable
Returns the value of theupdatablerecord component.- Returns:
- the value of the
updatablerecord component
-
quote
Returns the value of thequoterecord component.- Returns:
- the value of the
quoterecord component
-