Package com.onec.query
Record Class EntityMeta
java.lang.Object
java.lang.Record
com.onec.query.EntityMeta
public record EntityMeta(EntityMeta.Kind kind, Class<?> type, String table, String pk, Map<String,String> systemColumns, List<AttributeDescriptor> attributes)
extends Record
A query-layer view over a single queryable entity (catalog / document / register),
unifying the per-kind descriptors behind one shape: table name, primary-key column,
the built-in system columns, and the user attributes.
The systemColumns map keys are bean-property names (as resolved from getter
references) and values are physical column names — mirroring the framework's
naming convention (description -> _description, number -> _number, …).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEntityMeta(EntityMeta.Kind kind, Class<?> type, String table, String pk, Map<String, String> systemColumns, List<AttributeDescriptor> attributes) Creates an instance of aEntityMetarecord class. -
Method Summary
Modifier and TypeMethodDescriptionAttribute descriptor for a property name, ornullfor system / unknown fields.Returns the value of theattributesrecord component.Physical column for a bean-property name, ornullif unknown.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.pk()Returns the value of thepkrecord component.Returns the value of thesystemColumnsrecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.Class<?> type()Returns the value of thetyperecord component.
-
Constructor Details
-
EntityMeta
public EntityMeta(EntityMeta.Kind kind, Class<?> type, String table, String pk, Map<String, String> systemColumns, List<AttributeDescriptor> attributes) Creates an instance of aEntityMetarecord class.- Parameters:
kind- the value for thekindrecord componenttype- the value for thetyperecord componenttable- the value for thetablerecord componentpk- the value for thepkrecord componentsystemColumns- the value for thesystemColumnsrecord componentattributes- the value for theattributesrecord component
-
-
Method Details
-
column
Physical column for a bean-property name, ornullif unknown. -
attribute
Attribute descriptor for a property name, ornullfor system / unknown fields. -
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
pk
Returns the value of thepkrecord component.- Returns:
- the value of the
pkrecord component
-
systemColumns
Returns the value of thesystemColumnsrecord component.- Returns:
- the value of the
systemColumnsrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-