public interface DocumentEntityConverter
DocumentEntity| Modifier and Type | Method and Description |
|---|---|
org.jnosql.diana.api.document.DocumentEntity |
toDocument(Object entityInstance)
Converts the instance entity to
DocumentEntity |
<T> T |
toEntity(Class<T> entityClass,
org.jnosql.diana.api.document.DocumentEntity entity)
Converts a
DocumentEntity to entity |
<T> T |
toEntity(org.jnosql.diana.api.document.DocumentEntity entity)
Similar to
toEntity(Class, DocumentEntity), but
search the instance type from DocumentEntity.getName() |
<T> T |
toEntity(T entityInstance,
org.jnosql.diana.api.document.DocumentEntity entity)
Converts a
DocumentEntity to entity
Instead of creating a new object is uses the instance used in this parameters |
org.jnosql.diana.api.document.DocumentEntity toDocument(Object entityInstance)
DocumentEntityentityInstance - the instnaceDocumentEntity instanceNullPointerException - when entityInstance is null<T> T toEntity(Class<T> entityClass, org.jnosql.diana.api.document.DocumentEntity entity)
DocumentEntity to entityT - the entity typeentityClass - the entity classentity - the DocumentEntity to be convertedDocumentEntityNullPointerException - when either entityClass or entity are null<T> T toEntity(T entityInstance,
org.jnosql.diana.api.document.DocumentEntity entity)
DocumentEntity to entity
Instead of creating a new object is uses the instance used in this parametersT - the entity typeentityInstance - the entity classentity - the DocumentEntity to be convertedDocumentEntityNullPointerException - when either entityInstance or entity are null<T> T toEntity(org.jnosql.diana.api.document.DocumentEntity entity)
toEntity(Class, DocumentEntity), but
search the instance type from DocumentEntity.getName()T - the entity typeentity - the DocumentEntity to be convertedDocumentEntityNullPointerException - when entity is nullCopyright © 2018. All rights reserved.