Record Class VirtualTableRecordField
java.lang.Object
java.lang.Record
no.sikt.graphitron.definitions.fields.VirtualTableRecordField
- All Implemented Interfaces:
GenerationTarget
Virtual field representing a table record, used when code generation needs a table reference
without a corresponding GraphQL field definition.
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualTableRecordField(String tableName) Creates an instance of aVirtualTableRecordFieldrecord 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 thetableNamerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface no.sikt.graphitron.definitions.interfaces.GenerationTarget
createsDataFetcher, createsDataFetchersForFields, isExplicitlyNotGenerated, isGenerated, isGeneratedWithResolver
-
Constructor Details
-
VirtualTableRecordField
Creates an instance of aVirtualTableRecordFieldrecord class.- Parameters:
tableName- the value for thetableNamerecord 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). -
tableName
Returns the value of thetableNamerecord component.- Returns:
- the value of the
tableNamerecord component
-