Package | Description |
---|---|
org.jboss.errai.jpa.client.local | |
org.jboss.errai.jpa.client.local.backend |
Modifier and Type | Method and Description |
---|---|
static Key<?,?> |
Key.fromJson(ErraiEntityManager em,
String key,
boolean failIfNotFound)
Returns a Key instance based on the given JSON string.
|
static Key<?,?> |
Key.fromJsonObject(ErraiEntityManager em,
com.google.gwt.json.client.JSONObject key,
boolean failIfNotFound)
Returns a Key instance based on the given JSON object.
|
static <X,T> Key<X,T> |
Key.get(ErraiEntityManager em,
Class<X> entityClass,
T id)
Returns a Key instance for the entity type of the given class.
|
<X> Key<X,?> |
ErraiEntityManager.keyFor(ErraiIdentifiableType<X> entityType,
X entity)
Creates the key that describes the given entity, generating and setting
it if it is presently unset and the given entity type's ID is configured to
be generated on demand.
|
<X> Key<X,?> |
ErraiEntityManager.keyFor(X entity)
Creates the key that describes the given entity, generating and setting
it if it is presently unset and the given entity type's ID is configured to
be generated on demand.
|
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<Key<?,?>,Object>> |
PersistenceContext.entrySet()
Returns the set of all entities in this persistence context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PersistenceContext.contains(Key<?,?> key)
Returns true if this persistence context contains an entity retrievable by
the given key.
|
<X> X |
ErraiEntityManager.find(Key<X,?> key,
Map<String,Object> properties)
Retrieves the entity instance identified by the given Key.
|
<X> X |
PersistenceContext.get(Key<X,?> key)
Looks up and returns the entity that matches the given key.
|
boolean |
ErraiEntityManager.isKeyInUse(Key<?,?> key)
Tests if this entity manager's storage backend contains an entity that
could conflict with the given key.
|
<X,Y> void |
PersistenceContext.put(Key<X,Y> key,
X object)
Stores the given object in the persistence context.
|
void |
PersistenceContext.remove(Key<?,?> key)
Removes the entity having the given key from this persistence context.
|
Modifier and Type | Method and Description |
---|---|
<X,Y> boolean |
WebStorageBackend.contains(Key<X,Y> key) |
<X,Y> boolean |
StorageBackend.contains(Key<X,Y> key)
Tests if this backend contains data for the given key.
|
<X> X |
WebStorageBackend.get(Key<X,?> requestedKey) |
<X> X |
StorageBackend.get(Key<X,?> key)
Retrieves the value most recently stored in this backend under the given
key, reconnecting referenced objects by calling back up into the owning
EntityManager.
|
<X> boolean |
WebStorageBackend.isModified(Key<X,?> key,
X value) |
<X> boolean |
StorageBackend.isModified(Key<X,?> key,
X value)
Checks if the value currently associated with
key in this backend
datastore is identical to the given one. |
<X> void |
WebStorageBackend.put(Key<X,?> key,
X value) |
<X> void |
StorageBackend.put(Key<X,?> key,
X value)
Stores the given Errai-Marshalling-Capable value under the given key.
|
<X> void |
WebStorageBackend.remove(Key<X,?> key) |
<X> void |
StorageBackend.remove(Key<X,?> key)
Removes the key and its associated value (if any) from this storage
backend.
|
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.