Modifier | Constructor and Description |
---|---|
protected |
KeyDao() |
Modifier and Type | Method and Description |
---|---|
protected void |
conform(KeyEntity target,
Key source)
Synchronizes the transport object and the persistent object state.
|
protected KeyEntity |
createStorableInstance(Key key)
Creates the instance of the persistent object (Entity).
|
protected Key |
doConvert(KeyEntity source)
Converts the persistent object to a transport object.
|
protected javax.persistence.criteria.Predicate |
getQueryPredicate(KeyFilter filter,
javax.persistence.criteria.CriteriaBuilder builder,
javax.persistence.criteria.Root<KeyEntity> root)
Augment the underlying database query with specifics to be included as
part of the where clause
|
protected javax.persistence.metamodel.SingularAttribute<? super KeyEntity,?> |
getSingularAttribute(EmptySortAttribute sortAttribute)
Gets the singular attribute (JPA entity attribute -Column- definition)
|
convert, create, delete, delete, delete, deleteAll, update
count, find, find, findAll, get, getQueryPredicateGenerator, updateDependents
protected KeyEntity createStorableInstance(Key key)
AbstractDao
createStorableInstance
in class AbstractDao<String,KeyEntity,Key,KeyFilter,EmptySortAttribute>
key
- transport object to get the data from.protected Key doConvert(KeyEntity source)
AbstractDao
doConvert
in class AbstractDao<String,KeyEntity,Key,KeyFilter,EmptySortAttribute>
source
- persistent object to convert.source
protected void conform(KeyEntity target, Key source)
AbstractDao
AbstractDao.update(Transportable, DataStoreContext)
,
thus if AbstractDao.update(Transportable, DataStoreContext)
is overwritten
this method could have an empty implementation.conform
in class AbstractDao<String,KeyEntity,Key,KeyFilter,EmptySortAttribute>
target
- object to update.source
- object to take the data from.protected javax.persistence.criteria.Predicate getQueryPredicate(KeyFilter filter, javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.Root<KeyEntity> root)
AbstractBaseDao
getQueryPredicate
in class AbstractBaseDao<String,KeyEntity,Key,KeyFilter,EmptySortAttribute>
filter
- The input filter from which the criteria is set.builder
- the criteria builder object for augmenting the query
objectroot
- the root object type associated with the queryprotected javax.persistence.metamodel.SingularAttribute<? super KeyEntity,?> getSingularAttribute(EmptySortAttribute sortAttribute)
AbstractBaseDao
getSingularAttribute
in class AbstractBaseDao<String,KeyEntity,Key,KeyFilter,EmptySortAttribute>
sortAttribute
- sort attribute to map a column to.Copyright © 2015. All Rights Reserved.