Package tech.ydb.yoj.repository.db
Record Class TableDescriptor<E extends Entity<E>>
java.lang.Object
java.lang.Record
tech.ydb.yoj.repository.db.TableDescriptor<E>
-
Constructor Summary
ConstructorsConstructorDescriptionTableDescriptor(Class<E> entityType, String tableName) Creates an instance of aTableDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityTyperecord component.final booleanIndicates whether some other object is "equal to" this one.static <E extends Entity<E>>
TableDescriptor<E>from(EntitySchema<E> schema) final inthashCode()Returns a hash code value for this object.Returns the value of thetableNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableDescriptor
Creates an instance of aTableDescriptorrecord class.- Parameters:
entityType- the value for theentityTyperecord componenttableName- the value for thetableNamerecord component
-
-
Method Details
-
from
-
toDebugString
-
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). -
entityType
Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-