java.lang.Object
org.litebridge.orm.persistence.DtoInspector
Provides metadata about the state of an entity/mapped DTO.
-
Constructor Summary
ConstructorsConstructorDescriptionDtoInspector(TableRegistry tableRegistry) Creates a newDtoInspectorinstance. -
Method Summary
Modifier and TypeMethodDescription<PkType> @Nullable PkTypegetPrimaryKey(Object dto) <PkType> @Nullable PkTypegetPrimaryKey(Object dto, Class<PkType> pkType) Class<?> getPrimaryKeyType(Class<?> dtoClass) Class<?> getPrimaryKeyType(Object dto) booleanisPrimaryKeySet(Object dto) Checks whether the primary key of the given entity/mapped DTO is set.
-
Constructor Details
-
DtoInspector
Creates a newDtoInspectorinstance.- Parameters:
tableRegistry- The Litebridge ORM table registry to use.
-
-
Method Details
-
isPrimaryKeySet
Checks whether the primary key of the given entity/mapped DTO is set.- Parameters:
dto- The entity/mapped DTO to check.- Returns:
trueif the primary key is set,falseotherwise.
-
getPrimaryKeyType
-
getPrimaryKeyType
-
getPrimaryKey
-
getPrimaryKey
-