Record Class GraphSchema
java.lang.Object
java.lang.Record
org.impulsegraph.api.schema.GraphSchema
public record GraphSchema(List<GraphSchema.EntityDef> entities, List<GraphSchema.RelationDef> relations)
extends Record
Schema definition model defining entities, relations, and attribute metadata
for CodeGen.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionGraphSchema(List<GraphSchema.EntityDef> entities, List<GraphSchema.RelationDef> relations) Creates an instance of aGraphSchemarecord class. -
Method Summary
Modifier and TypeMethodDescriptionentities()Returns the value of theentitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.getOutgoingRelations(String sourceEntity) final inthashCode()Returns a hash code value for this object.Returns the value of therelationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GraphSchema
Creates an instance of aGraphSchemarecord class.- Parameters:
entities- the value for theentitiesrecord componentrelations- the value for therelationsrecord component
-
-
Method Details
-
getEntity
-
getOutgoingRelations
-
toString
-
hashCode
-
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). -
entities
Returns the value of theentitiesrecord component.- Returns:
- the value of the
entitiesrecord component
-
relations
Returns the value of therelationsrecord component.- Returns:
- the value of the
relationsrecord component
-