Record Class RepositoryMetadata
java.lang.Object
java.lang.Record
dimstyl.orm.metadata.RepositoryMetadata
- Record Components:
databaseName- The name of the database.databaseEngine- TheDatabaseEngineused (e.g., H2, SQLite, Derby).tableName- The name of the table associated with this repository.entityClass- The entity class linked to this repository.supportedOperations- The set ofSqlOperationsupported by this repository.
- All Implemented Interfaces:
Metadata
public record RepositoryMetadata(String databaseName, DatabaseEngine databaseEngine, String tableName, Class<? extends Entity> entityClass, Set<SqlOperation> supportedOperations)
extends Record
implements Metadata
Represents metadata for a repository, including database details, table name,
associated entity class, and supported SQL operations.
This record provides metadata for a repository, containing information about the database name, database engine, table name, entity class, and the set of supported SQL operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DatabaseEngineThe field for thedatabaseEnginerecord component.private final StringThe field for thedatabaseNamerecord component.The field for theentityClassrecord component.private final Set<SqlOperation> The field for thesupportedOperationsrecord component.private final StringThe field for thetableNamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryMetadata(String databaseName, DatabaseEngine databaseEngine, String tableName, Class<? extends Entity> entityClass, Set<SqlOperation> supportedOperations) Creates an instance of aRepositoryMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedatabaseEnginerecord component.Returns the value of thedatabaseNamerecord component.Returns the value of theentityClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesupportedOperationsrecord component.Returns the value of thetableNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
databaseName
The field for thedatabaseNamerecord component. -
databaseEngine
The field for thedatabaseEnginerecord component. -
tableName
-
entityClass
The field for theentityClassrecord component. -
supportedOperations
The field for thesupportedOperationsrecord component.
-
-
Constructor Details
-
RepositoryMetadata
public RepositoryMetadata(String databaseName, DatabaseEngine databaseEngine, String tableName, Class<? extends Entity> entityClass, Set<SqlOperation> supportedOperations) Creates an instance of aRepositoryMetadatarecord class.- Parameters:
databaseName- the value for thedatabaseNamerecord componentdatabaseEngine- the value for thedatabaseEnginerecord componenttableName- the value for thetableNamerecord componententityClass- the value for theentityClassrecord componentsupportedOperations- the value for thesupportedOperationsrecord component
-
-
Method Details
-
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). -
databaseName
Returns the value of thedatabaseNamerecord component.- Returns:
- the value of the
databaseNamerecord component
-
databaseEngine
Returns the value of thedatabaseEnginerecord component.- Returns:
- the value of the
databaseEnginerecord component
-
tableName
-
entityClass
Returns the value of theentityClassrecord component.- Returns:
- the value of the
entityClassrecord component
-
supportedOperations
Returns the value of thesupportedOperationsrecord component.- Returns:
- the value of the
supportedOperationsrecord component
-