Package org.apache.gravitino.dto.rel
Class RepresentationDTO
java.lang.Object
org.apache.gravitino.dto.rel.RepresentationDTO
- All Implemented Interfaces:
Representation
- Direct Known Subclasses:
SQLRepresentationDTO
A DTO mirroring
Representation. Representation DTOs are
serialized with a type discriminator so Jackson can deserialize into the correct subtype.-
Field Summary
Fields inherited from interface org.apache.gravitino.rel.Representation
TYPE_SQL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RepresentationDTOfromRepresentation(Representation representation) Creates aRepresentationDTOfrom aRepresentationdomain object.abstract voidvalidate()Validates the fields of this representation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.gravitino.rel.Representation
type
-
Constructor Details
-
RepresentationDTO
protected RepresentationDTO()Constructor for Jackson.
-
-
Method Details
-
validate
Validates the fields of this representation.- Throws:
IllegalArgumentException- If the representation is invalid.
-
fromRepresentation
Creates aRepresentationDTOfrom aRepresentationdomain object.- Parameters:
representation- The representation domain object.- Returns:
- The representation DTO.
-