public interface TupleSnapshot
This interface is to be implemented by dialects to avoid data duplication in memory (if possible), typically wrapping a store-specific representation of the tuple data. This snapshot will never be modified by the Hibernate OGM engine.
Note that in the case of embeddables (e.g. composite ids), column names are given using dot notation, e.g.
"id.countryCode" or "address.city.zipCode". The column names of the physical JPA model will be used, as e.g. given
via @Column .
In some special cases implementations may chose to persist different names than mandated by this model, e.g. always
_id will be used as id column name by MongoDB. It is the responsibility of such implementation in this case
to do the required translation of column names internally.
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String column)
Get the value of a column in the tuple
|
Set<String> |
getColumnNames()
Get columns names composing the tuple
|
boolean |
isEmpty()
Check if the tuple contains some values
|
Object get(String column)
column - the name of the columnnull if the value is not setboolean isEmpty()
true is there is at lease one value in the tuple, false otherwise.Copyright © 2010-2017 Red Hat, Inc., Emmanuel Bernard and various contributors. All Rights Reserved.