public interface BinaryPropertyDao
BinaryProperty
Modifier and Type | Field and Description |
---|---|
static int |
TRANSFORM_NONE
This constant is used as a transformation flag; entities can be converted automatically into
value objects or other types, different methods in a class implementing this interface
support this feature: look for an
int parameter called transform . |
Modifier and Type | Method and Description |
---|---|
BinaryProperty |
create(BinaryProperty binaryProperty)
Creates an instance of BinaryProperty and adds it to the persistent store.
|
Collection<BinaryProperty> |
create(Collection<BinaryProperty> entities)
Creates a new instance of BinaryProperty and adds from the passed in
entities
collection |
Object |
create(int transform,
BinaryProperty binaryProperty)
Does the same thing as
create(BinaryProperty) with an additional flag called
transform . |
Collection<?> |
create(int transform,
Collection<BinaryProperty> entities)
Does the same thing as
create(BinaryProperty) with an additional flag called
transform . |
void |
evict(BinaryProperty entity)
Evicts (removes) the entity from the hibernate cache
|
IdDateTO |
findIdByKey(String keyGroup,
String key)
Retrieve the ID of the property that has the given group and key.
|
Object |
load(int transform,
Long id)
Does the same thing as
load(Long) with an additional flag called
transform . |
BinaryProperty |
load(Long id)
Loads an instance of BinaryProperty from the persistent store.
|
Collection<BinaryProperty> |
loadAll()
Loads all entities of type
BinaryProperty . |
Collection<?> |
loadAll(int transform)
Does the same thing as
loadAll() with an additional flag called
transform . |
void |
remove(BinaryProperty binaryProperty)
Removes the instance of BinaryProperty from the persistent store.
|
void |
remove(Collection<BinaryProperty> entities)
Removes all entities in the given
entities |
void |
remove(Long id)
Removes the instance of BinaryProperty having the given
identifier from the
persistent store. |
void |
update(BinaryProperty binaryProperty)
Updates the
binaryProperty instance in the persistent store. |
void |
update(Collection<BinaryProperty> entities)
Updates all instances in the
entities collection in the persistent store. |
static final int TRANSFORM_NONE
int
parameter called transform
.
This specific flag denotes no transformation will occur.BinaryProperty create(BinaryProperty binaryProperty)
Collection<BinaryProperty> create(Collection<BinaryProperty> entities)
entities
collectionentities
- the collection of BinaryProperty instances to create.Object create(int transform, BinaryProperty binaryProperty)
Does the same thing as create(BinaryProperty)
with an additional flag called
transform
. If this flag is set to TRANSFORM_NONE
then the returned
entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can
optionally transform the entity (into a value object for example). By default, transformation
does not occur.
Collection<?> create(int transform, Collection<BinaryProperty> entities)
Does the same thing as create(BinaryProperty)
with an additional flag called
transform
. If this flag is set to TRANSFORM_NONE
then the returned
entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can
optionally transform the entities (into value objects for example). By default,
transformation does not occur.
void evict(BinaryProperty entity)
entity
- the entity to evictIdDateTO findIdByKey(String keyGroup, String key)
keyGroup
- the group of the property to findkey
- the key of the property to findObject load(int transform, Long id)
Does the same thing as load(Long)
with an additional flag called
transform
. If this flag is set to TRANSFORM_NONE
then the returned
entity will NOT be transformed. If this flag is any of the other constants
defined in this class then the result WILL BE passed through an operation
which can optionally transform the entity (into a value object for example). By default,
transformation does not occur.
id
- the identifier of the entity to load.BinaryProperty load(Long id)
Collection<BinaryProperty> loadAll()
BinaryProperty
.Collection<?> loadAll(int transform)
Does the same thing as loadAll()
with an additional flag called
transform
. If this flag is set to TRANSFORM_NONE
then the returned
entity will NOT be transformed. If this flag is any of the other constants
defined here then the result WILL BE passed through an operation which can
optionally transform the entity (into a value object for example). By default, transformation
does not occur.
transform
- the flag indicating what transformation to use.void remove(BinaryProperty binaryProperty)
void remove(Collection<BinaryProperty> entities)
entities collection.
void remove(Long id)
identifier
from the
persistent store.void update(BinaryProperty binaryProperty)
binaryProperty
instance in the persistent store.void update(Collection<BinaryProperty> entities)
entities
collection in the persistent store.Copyright © 2019 Communote team. All rights reserved.