|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.slim3.datastore.Datastore
public final class Datastore
A class to access datastore.
| Field Summary | |
|---|---|
static String |
DELEGATE_KEY
The key of DatastoreDelegate class name. |
| Method Summary | ||
|---|---|---|
static Key |
allocateId(Class<?> modelClass)
Allocates a key within a namespace defined by the kind of the model. |
|
static Key |
allocateId(Key parentKey,
Class<?> modelClass)
Allocates a key within a namespace defined by the parent key and the kind of the model. |
|
static Key |
allocateId(Key parentKey,
ModelMeta<?> modelMeta)
Allocates a key within a namespace defined by the parent key and the kind of the model. |
|
static Key |
allocateId(Key parentKey,
String kind)
Allocates a key within a namespace defined by the parent key and the kind. |
|
static Key |
allocateId(ModelMeta<?> modelMeta)
Allocates a key within a namespace defined by the kind of the model. |
|
static Key |
allocateId(String kind)
Allocates a key within a namespace defined by the kind. |
|
static KeyRange |
allocateIds(Class<?> modelClass,
long num)
Allocates keys within a namespace defined by the kind of the model. |
|
static KeyRange |
allocateIds(Key parentKey,
Class<?> modelClass,
int num)
Allocates keys within a namespace defined by the parent key and the kind of the model. |
|
static KeyRange |
allocateIds(Key parentKey,
ModelMeta<?> modelMeta,
int num)
Allocates keys within a namespace defined by the parent key and the kind of the model. |
|
static KeyRange |
allocateIds(Key parentKey,
String kind,
int num)
Allocates keys within a namespace defined by the parent key and the kind. |
|
static KeyRange |
allocateIds(ModelMeta<?> modelMeta,
long num)
Allocates keys within a namespace defined by the kind of the model. |
|
static KeyRange |
allocateIds(String kind,
long num)
Allocates keys within a namespace defined by the kind. |
|
static Future<KeyRange> |
allocateIdsAsync(Class<?> modelClass,
long num)
Allocates keys within a namespace defined by the kind of the model asynchronously. |
|
static Future<KeyRange> |
allocateIdsAsync(Key parentKey,
Class<?> modelClass,
int num)
Allocates keys within a namespace defined by the parent key and the kind of the model asynchronously. |
|
static Future<KeyRange> |
allocateIdsAsync(Key parentKey,
ModelMeta<?> modelMeta,
int num)
Allocates keys within a namespace defined by the parent key and the kind of the model asynchronously. |
|
static Future<KeyRange> |
allocateIdsAsync(Key parentKey,
String kind,
int num)
Allocates keys within a namespace defined by the parent key and the kind asynchronously. |
|
static Future<KeyRange> |
allocateIdsAsync(ModelMeta<?> modelMeta,
long num)
Allocates keys within a namespace defined by the kind of the model asynchronously. |
|
static Future<KeyRange> |
allocateIdsAsync(String kind,
long num)
Allocates keys within a namespace defined by the kind asynchronously. |
|
static GlobalTransaction |
beginGlobalTransaction()
Begins a global transaction. |
|
static Transaction |
beginTransaction()
Begins a transaction. |
|
static void |
commit(Transaction tx)
Deprecated. |
|
static Key |
createKey(Class<?> modelClass,
long id)
Creates a key. |
|
static Key |
createKey(Class<?> modelClass,
String name)
Creates a key. |
|
static Key |
createKey(Key parentKey,
Class<?> modelClass,
long id)
Creates a key. |
|
static Key |
createKey(Key parentKey,
Class<?> modelClass,
String name)
Creates a key. |
|
static Key |
createKey(Key parentKey,
ModelMeta<?> modelMeta,
long id)
Creates a key. |
|
static Key |
createKey(Key parentKey,
ModelMeta<?> modelMeta,
String name)
Creates a key. |
|
static Key |
createKey(Key parentKey,
String kind,
long id)
Creates a key. |
|
static Key |
createKey(Key parentKey,
String kind,
String name)
Creates a key. |
|
static Key |
createKey(ModelMeta<?> modelMeta,
long id)
Creates a key. |
|
static Key |
createKey(ModelMeta<?> modelMeta,
String name)
Creates a key. |
|
static Key |
createKey(String kind,
long id)
Creates a key. |
|
static Key |
createKey(String kind,
String name)
Creates a key. |
|
static DatastoreDelegate |
deadline(Double deadline)
Returns a DatastoreDelegate. |
|
static void |
delete(Iterable<Key> keys)
Deletes entities specified by the keys. |
|
static void |
delete(Key... keys)
Deletes entities specified by the keys. |
|
static void |
delete(Transaction tx,
Iterable<Key> keys)
Deletes entities specified by the keys within the provided transaction. |
|
static void |
delete(Transaction tx,
Key... keys)
Deletes entities specified by the keys within the provided transaction. |
|
static void |
deleteAll(Key ancestorKey)
Deletes all descendant entities. |
|
static void |
deleteAll(Transaction tx,
Key ancestorKey)
Deletes all descendant entities within the provided transaction. |
|
static Future<Void> |
deleteAllAsync(Key ancestorKey)
Deletes all descendant entities asynchronously. |
|
static Future<Void> |
deleteAllAsync(Transaction tx,
Key ancestorKey)
Deletes all descendant entities within the provided transaction asynchronously. |
|
static void |
deleteAllWithoutTx(Key ancestorKey)
Deletes all descendant entities without transaction. |
|
static Future<Void> |
deleteAllWithoutTxAsync(Key ancestorKey)
Deletes all descendant entities without transaction asynchronously. |
|
static Future<Void> |
deleteAsync(Iterable<Key> keys)
Deletes entities specified by the keys asynchronously. |
|
static Future<Void> |
deleteAsync(Key... keys)
Deletes entities specified by the keys asynchronously. |
|
static Future<Void> |
deleteAsync(Transaction tx,
Iterable<Key> keys)
Deletes entities specified by the keys within the provided transaction asynchronously. |
|
static Future<Void> |
deleteAsync(Transaction tx,
Key... keys)
Deletes entities specified by the keys within the provided transaction asynchronously. |
|
static void |
deleteUniqueValue(String uniqueIndexName,
String value)
Deletes the unique value. |
|
static void |
deleteWithoutTx(Iterable<Key> keys)
Deletes entities specified by the keys without transaction. |
|
static void |
deleteWithoutTx(Key... keys)
Deletes entities specified by the keys without transaction. |
|
static Future<Void> |
deleteWithoutTxAsync(Iterable<Key> keys)
Deletes entities specified by the keys without transaction asynchronously. |
|
static Future<Void> |
deleteWithoutTxAsync(Key... keys)
Deletes entities specified by the keys without transaction asynchronously. |
|
static
|
filterInMemory(List<M> list,
InMemoryFilterCriterion... criteria)
Filters the list in memory. |
|
static
|
get(Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys. |
|
static
|
get(Class<M> modelClass,
Key... keys)
Returns models specified by the keys. |
|
static
|
get(Class<M> modelClass,
Key key)
Returns a model specified by the key. |
|
static
|
get(Class<M> modelClass,
Key key,
Long version)
Returns a model specified by the key and checks the version. |
|
static List<Entity> |
get(Iterable<Key> keys)
Returns entities specified by the keys. |
|
static List<Entity> |
get(Key... keys)
Returns entities specified by the keys. |
|
static Entity |
get(Key key)
Returns an entity specified by the key. |
|
static
|
get(ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys. |
|
static
|
get(ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys. |
|
static
|
get(ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key. |
|
static
|
get(ModelMeta<M> modelMeta,
Key key,
Long version)
Returns a model specified by the key and checks the version. |
|
static
|
get(Transaction tx,
Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys within the provided transaction. |
|
static
|
get(Transaction tx,
Class<M> modelClass,
Key... keys)
Returns models specified by the keys within the provided transaction. |
|
static
|
get(Transaction tx,
Class<M> modelClass,
Key key)
Returns a model specified by the key within the provided transaction. |
|
static
|
get(Transaction tx,
Class<M> modelClass,
Key key,
Long version)
Returns a model specified by the key within the provided transaction. |
|
static List<Entity> |
get(Transaction tx,
Iterable<Key> keys)
Returns entities specified by the keys within the provided transaction. |
|
static List<Entity> |
get(Transaction tx,
Key... keys)
Returns entities specified by the keys within the provided transaction. |
|
static Entity |
get(Transaction tx,
Key key)
Returns an entity specified by the key within the provided transaction. |
|
static
|
get(Transaction tx,
ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys within the provided transaction. |
|
static
|
get(Transaction tx,
ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys within the provided transaction. |
|
static
|
get(Transaction tx,
ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key within the provided transaction. |
|
static
|
get(Transaction tx,
ModelMeta<M> modelMeta,
Key key,
Long version)
Returns a model specified by the key within the provided transaction. |
|
static Collection<GlobalTransaction> |
getActiveGlobalTransactions()
Returns the active global transactions. |
|
static Collection<Transaction> |
getActiveTransactions()
Returns the active transactions. |
|
static
|
getAsMap(Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys. |
|
static
|
getAsMap(Class<M> modelClass,
Key... keys)
Returns models specified by the keys. |
|
static Map<Key,Entity> |
getAsMap(Iterable<Key> keys)
Returns entities specified by the keys. |
|
static Map<Key,Entity> |
getAsMap(Key... keys)
Returns entities specified by the keys. |
|
static
|
getAsMap(ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys. |
|
static
|
getAsMap(ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys. |
|
static
|
getAsMap(Transaction tx,
Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys within the provided transaction. |
|
static
|
getAsMap(Transaction tx,
Class<M> modelClass,
Key... keys)
Returns models specified by the keys within the provided transaction. |
|
static Map<Key,Entity> |
getAsMap(Transaction tx,
Iterable<Key> keys)
Returns entities specified by the keys within the provided transaction. |
|
static Map<Key,Entity> |
getAsMap(Transaction tx,
Key... keys)
Returns entities specified by the keys within the provided transaction. |
|
static
|
getAsMap(Transaction tx,
ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys within the provided transaction. |
|
static
|
getAsMap(Transaction tx,
ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys within the provided transaction. |
|
static
|
getAsMapAsync(Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys asynchronously. |
|
static
|
getAsMapAsync(Class<M> modelClass,
Key... keys)
Returns models specified by the keys asynchronously. |
|
static Future<Map<Key,Entity>> |
getAsMapAsync(Iterable<Key> keys)
Returns entities specified by the keys asynchronously. |
|
static Future<Map<Key,Entity>> |
getAsMapAsync(Key... keys)
Returns entities specified by the keys asynchronously. |
|
static
|
getAsMapAsync(ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys asynchronously. |
|
static
|
getAsMapAsync(ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys asynchronously. |
|
static
|
getAsMapAsync(Transaction tx,
Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys within the provided transaction asynchronously. |
|
static
|
getAsMapAsync(Transaction tx,
Class<M> modelClass,
Key... keys)
Returns models specified by the keys within the provided transaction asynchronously. |
|
static Future<Map<Key,Entity>> |
getAsMapAsync(Transaction tx,
Iterable<Key> keys)
Returns entities specified by the keys within the provided transaction asynchronously. |
|
static Future<Map<Key,Entity>> |
getAsMapAsync(Transaction tx,
Key... keys)
Returns entities specified by the keys within the provided transaction asynchronously. |
|
static
|
getAsMapAsync(Transaction tx,
ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys within the provided transaction asynchronously. |
|
static
|
getAsMapAsync(Transaction tx,
ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys within the provided transaction asynchronously. |
|
static
|
getAsMapWithoutTx(Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys without transaction. |
|
static
|
getAsMapWithoutTx(Class<M> modelClass,
Key... keys)
Returns models specified by the keys without transaction. |
|
static Map<Key,Entity> |
getAsMapWithoutTx(Iterable<Key> keys)
Returns entities specified by the keys without transaction. |
|
static Map<Key,Entity> |
getAsMapWithoutTx(Key... keys)
Returns entities specified by the keys without transaction. |
|
static
|
getAsMapWithoutTx(ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys without transaction. |
|
static
|
getAsMapWithoutTx(ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys without transaction. |
|
static
|
getAsMapWithoutTxAsync(Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys without transaction asynchronously. |
|
static
|
getAsMapWithoutTxAsync(Class<M> modelClass,
Key... keys)
Returns models specified by the keys without transaction asynchronously. |
|
static Future<Map<Key,Entity>> |
getAsMapWithoutTxAsync(Iterable<Key> keys)
Returns entities specified by the keys without transaction asynchronously. |
|
static Future<Map<Key,Entity>> |
getAsMapWithoutTxAsync(Key... keys)
Returns entities specified by the keys without transaction asynchronously. |
|
static
|
getAsMapWithoutTxAsync(ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys without transaction asynchronously. |
|
static
|
getAsMapWithoutTxAsync(ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys without transaction asynchronously. |
|
static
|
getAsync(Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys asynchronously. |
|
static
|
getAsync(Class<M> modelClass,
Key... keys)
Returns models specified by the keys asynchronously. |
|
static
|
getAsync(Class<M> modelClass,
Key key)
Returns a model specified by the key asynchronously. |
|
static
|
getAsync(Class<M> modelClass,
Key key,
Long version)
Returns a model specified by the key and checks the version asynchronously. |
|
static Future<List<Entity>> |
getAsync(Iterable<Key> keys)
Returns entities specified by the keys asynchronously. |
|
static Future<List<Entity>> |
getAsync(Key... keys)
Returns entities specified by the keys asynchronously. |
|
static Future<Entity> |
getAsync(Key key)
Returns an entity specified by the key asynchronously. |
|
static
|
getAsync(ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys asynchronously. |
|
static
|
getAsync(ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys asynchronously. |
|
static
|
getAsync(ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key asynchronously. |
|
static
|
getAsync(ModelMeta<M> modelMeta,
Key key,
Long version)
Returns a model specified by the key and checks the version asynchronously. |
|
static
|
getAsync(Transaction tx,
Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys within the provided transaction asynchronously. |
|
static
|
getAsync(Transaction tx,
Class<M> modelClass,
Key... keys)
Returns models specified by the keys within the provided transaction asynchronously. |
|
static
|
getAsync(Transaction tx,
Class<M> modelClass,
Key key)
Returns a model specified by the key within the provided transaction asynchronously. |
|
static
|
getAsync(Transaction tx,
Class<M> modelClass,
Key key,
Long version)
Returns a model specified by the key within the provided transaction asynchronously. |
|
static Future<List<Entity>> |
getAsync(Transaction tx,
Iterable<Key> keys)
Returns entities specified by the keys within the provided transaction asynchronously. |
|
static Future<List<Entity>> |
getAsync(Transaction tx,
Key... keys)
Returns entities specified by the keys within the provided transaction asynchronously. |
|
static Future<Entity> |
getAsync(Transaction tx,
Key key)
Returns an entity specified by the key within the provided transaction asynchronously. |
|
static
|
getAsync(Transaction tx,
ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys within the provided transaction asynchronously. |
|
static
|
getAsync(Transaction tx,
ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys within the provided transaction asynchronously. |
|
static
|
getAsync(Transaction tx,
ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key within the provided transaction asynchronously. |
|
static
|
getAsync(Transaction tx,
ModelMeta<M> modelMeta,
Key key,
Long version)
Returns a model specified by the key within the provided transaction asynchronously. |
|
static GlobalTransaction |
getCurrentGlobalTransaction()
Returns the current global transaction. |
|
static Transaction |
getCurrentTransaction()
Returns the current transaction. |
|
static
|
getModelMeta(Class<M> modelClass)
Returns a meta data of the model |
|
static
|
getOrNull(Class<M> modelClass,
Key key)
Returns a model specified by the key. |
|
static Entity |
getOrNull(Key key)
Returns an entity specified by the key. |
|
static
|
getOrNull(ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key. |
|
static
|
getOrNull(Transaction tx,
Class<M> modelClass,
Key key)
Returns a model specified by the key within the provided transaction. |
|
static Entity |
getOrNull(Transaction tx,
Key key)
Returns an entity specified by the key within the provided transaction. |
|
static
|
getOrNull(Transaction tx,
ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key within the provided transaction. |
|
static
|
getOrNullAsync(Class<M> modelClass,
Key key)
Returns a model specified by the key asynchronously. |
|
static Future<Entity> |
getOrNullAsync(Key key)
Returns an entity specified by the key asynchronously. |
|
static
|
getOrNullAsync(ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key asynchronously. |
|
static
|
getOrNullAsync(Transaction tx,
Class<M> modelClass,
Key key)
Returns a model specified by the key within the provided transaction asynchronously. |
|
static Future<Entity> |
getOrNullAsync(Transaction tx,
Key key)
Returns an entity specified by the key within the provided transaction asynchronously. |
|
static
|
getOrNullAsync(Transaction tx,
ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key within the provided transaction asynchronously. |
|
static
|
getOrNullWithoutTx(Class<M> modelClass,
Key key)
Returns a model specified by the key without transaction. |
|
static Entity |
getOrNullWithoutTx(Key key)
Returns an entity specified by the key without transaction. |
|
static
|
getOrNullWithoutTx(ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key without transaction. |
|
static
|
getOrNullWithoutTxAsync(Class<M> modelClass,
Key key)
Returns a model specified by the key without transaction asynchronously. |
|
static Future<Entity> |
getOrNullWithoutTxAsync(Key key)
Returns an entity specified by the key without transaction asynchronously. |
|
static
|
getOrNullWithoutTxAsync(ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key without transaction asynchronously. |
|
static
|
getWithoutTx(Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys without transaction. |
|
static
|
getWithoutTx(Class<M> modelClass,
Key... keys)
Returns models specified by the keys without transaction. |
|
static
|
getWithoutTx(Class<M> modelClass,
Key key)
Returns a model specified by the key without transaction. |
|
static List<Entity> |
getWithoutTx(Iterable<Key> keys)
Returns entities specified by the keys without transaction. |
|
static List<Entity> |
getWithoutTx(Key... keys)
Returns entities specified by the keys. |
|
static Entity |
getWithoutTx(Key key)
Returns an entity specified by the key without transaction. |
|
static
|
getWithoutTx(ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys without transaction. |
|
static
|
getWithoutTx(ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys without transaction. |
|
static
|
getWithoutTx(ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key without transaction. |
|
static
|
getWithoutTxAsync(Class<M> modelClass,
Iterable<Key> keys)
Returns models specified by the keys without transaction asynchronously. |
|
static
|
getWithoutTxAsync(Class<M> modelClass,
Key... keys)
Returns models specified by the keys without transaction asynchronously. |
|
static
|
getWithoutTxAsync(Class<M> modelClass,
Key key)
Returns a model specified by the key without transaction asynchronously. |
|
static Future<List<Entity>> |
getWithoutTxAsync(Iterable<Key> keys)
Returns entities specified by the keys without transaction asynchronously. |
|
static Future<List<Entity>> |
getWithoutTxAsync(Key... keys)
Returns entities specified by the keys asynchronously. |
|
static Future<Entity> |
getWithoutTxAsync(Key key)
Returns an entity specified by the key without transaction asynchronously. |
|
static
|
getWithoutTxAsync(ModelMeta<M> modelMeta,
Iterable<Key> keys)
Returns models specified by the keys without transaction asynchronously. |
|
static
|
getWithoutTxAsync(ModelMeta<M> modelMeta,
Key... keys)
Returns models specified by the keys without transaction asynchronously. |
|
static
|
getWithoutTxAsync(ModelMeta<M> modelMeta,
Key key)
Returns a model specified by the key without transaction asynchronously. |
|
static String |
keyToString(Key key)
Converts the key to an encoded string. |
|
static Key |
put(Entity entity)
Puts the entity to datastore. |
|
static List<Key> |
put(Iterable<?> models)
Puts the models or entities to datastore. |
|
static List<Key> |
put(Object... models)
Puts the models or entities to datastore. |
|
static Key |
put(Object model)
Puts the model to datastore. |
|
static Key |
put(Transaction tx,
Entity entity)
Puts the entity to datastore within the provided transaction. |
|
static List<Key> |
put(Transaction tx,
Iterable<?> models)
Puts the models or entities to datastore within the provided transaction. |
|
static List<Key> |
put(Transaction tx,
Object... models)
Puts the models or entities to datastore within the provided transaction. |
|
static Key |
put(Transaction tx,
Object model)
Puts the model to datastore within the provided transaction. |
|
static Future<Key> |
putAsync(Entity entity)
Puts the entity to datastore asynchronously. |
|
static Future<List<Key>> |
putAsync(Iterable<?> models)
Puts the models or entities to datastore asynchronously. |
|
static Future<List<Key>> |
putAsync(Object... models)
Puts the models or entities to datastore asynchronously. |
|
static Future<Key> |
putAsync(Object model)
Puts the model to datastore asynchronously. |
|
static Future<Key> |
putAsync(Transaction tx,
Entity entity)
Puts the entity to datastore within the provided transaction asynchronously. |
|
static Future<List<Key>> |
putAsync(Transaction tx,
Iterable<?> models)
Puts the models or entities to datastore within the provided transaction asynchronously. |
|
static Future<List<Key>> |
putAsync(Transaction tx,
Object... models)
Puts the models or entities to datastore within the provided transaction asynchronously. |
|
static Future<Key> |
putAsync(Transaction tx,
Object model)
Puts the model to datastore within the provided transaction asynchronously. |
|
static boolean |
putUniqueValue(String uniqueIndexName,
String value)
Puts the unique value. |
|
static Key |
putWithoutTx(Entity entity)
Puts the entity to datastore without transaction. |
|
static List<Key> |
putWithoutTx(Iterable<?> models)
Puts the models or entities to datastore without transaction. |
|
static List<Key> |
putWithoutTx(Object... models)
Puts the models or entities to datastore without transaction. |
|
static Key |
putWithoutTx(Object model)
Puts the model to datastore without transaction. |
|
static Future<Key> |
putWithoutTxAsync(Entity entity)
Puts the entity to datastore without transaction asynchronously. |
|
static Future<List<Key>> |
putWithoutTxAsync(Iterable<?> models)
Puts the models or entities to datastore without transaction asynchronously. |
|
static Future<List<Key>> |
putWithoutTxAsync(Object... models)
Puts the models or entities to datastore without transaction asynchronously. |
|
static Future<Key> |
putWithoutTxAsync(Object model)
Puts the model to datastore without transaction asynchronously. |
|
static KindlessQuery |
query()
Returns a KindlessQuery. |
|
static
|
query(Class<M> modelClass)
Returns a ModelQuery. |
|
static
|
query(Class<M> modelClass,
Key ancestorKey)
Returns a ModelQuery. |
|
static KindlessQuery |
query(Key ancestorKey)
Returns a KindlessQuery. |
|
static
|
query(ModelMeta<M> modelMeta)
Returns a ModelQuery. |
|
static
|
query(ModelMeta<M> modelMeta,
Key ancestorKey)
Returns a ModelQuery. |
|
static EntityQuery |
query(String kind)
Returns an EntityQuery. |
|
static EntityQuery |
query(String kind,
Key ancestorKey)
Returns an EntityQuery. |
|
static
|
query(Transaction tx,
Class<M> modelClass,
Key ancestorKey)
Returns a ModelQuery. |
|
static KindlessQuery |
query(Transaction tx,
Key ancestorKey)
Returns a KindlessQuery. |
|
static
|
query(Transaction tx,
ModelMeta<M> modelMeta,
Key ancestorKey)
Returns a ModelQuery. |
|
static EntityQuery |
query(Transaction tx,
String kind,
Key ancestorKey)
Returns an EntityQuery. |
|
static void |
rollback(Transaction tx)
Deprecated. |
|
static void |
setGlobalCipherKey(String key)
Sets the global key for cipher. |
|
static void |
setLimitedCipherKey(String key)
Sets the limited key for cipher to the current thread. |
|
static
|
sortInMemory(List<M> list,
InMemorySortCriterion... criteria)
Sorts the list. |
|
static Key |
stringToKey(String encodedKey)
Converts the encoded string to a key. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DELEGATE_KEY
DatastoreDelegate class name.
| Method Detail |
|---|
public static DatastoreDelegate deadline(Double deadline)
throws IllegalStateException
DatastoreDelegate.
deadline - the deadline
DatastoreDelegate
IllegalStateException - if a DatastoreDelegate cannot be instantiatedpublic static Transaction beginTransaction()
@Deprecated public static void commit(Transaction tx)
Transaction.commit() directly.
tx - the transaction@Deprecated public static void rollback(Transaction tx)
Transaction.rollback() directly.
tx - the transactionpublic static Collection<Transaction> getActiveTransactions()
public static Transaction getCurrentTransaction()
public static GlobalTransaction beginGlobalTransaction()
public static Collection<GlobalTransaction> getActiveGlobalTransactions()
public static GlobalTransaction getCurrentGlobalTransaction()
public static Key allocateId(String kind)
throws NullPointerException
kind - the kind
NullPointerException - if the kind parameter is null
public static Key allocateId(Class<?> modelClass)
throws NullPointerException
modelClass - the model class
NullPointerException - if the modelClass parameter is null
public static Key allocateId(ModelMeta<?> modelMeta)
throws NullPointerException
modelMeta - the meta data of the model
NullPointerException - if the modelMeta parameter is null
public static Key allocateId(Key parentKey,
String kind)
throws NullPointerException
parentKey - the parent keykind - the kind
NullPointerException - if the parentKey parameter is null or if the kind parameter
is null
public static Key allocateId(Key parentKey,
Class<?> modelClass)
throws NullPointerException
parentKey - the parent keymodelClass - the model class
NullPointerException - if the parentKey parameter is null or if the modelClass
parameter is null
public static Key allocateId(Key parentKey,
ModelMeta<?> modelMeta)
throws NullPointerException
parentKey - the parent keymodelMeta - the meta data of the model
NullPointerException - if the parentKey parameter is null or if the modelMeta
parameter is null
public static KeyRange allocateIds(String kind,
long num)
throws NullPointerException
kind - the kindnum - the number of allocated keys
NullPointerException - if the kind parameter is null
public static Future<KeyRange> allocateIdsAsync(String kind,
long num)
throws NullPointerException
kind - the kindnum - the number of allocated keys
Future
NullPointerException - if the kind parameter is null
public static KeyRange allocateIds(Class<?> modelClass,
long num)
throws NullPointerException
modelClass - the model classnum - the number of allocated keys
NullPointerException - if the modelClass parameter is null
public static Future<KeyRange> allocateIdsAsync(Class<?> modelClass,
long num)
throws NullPointerException
modelClass - the model classnum - the number of allocated keys
Future
NullPointerException - if the modelClass parameter is null
public static KeyRange allocateIds(ModelMeta<?> modelMeta,
long num)
modelMeta - the meta data of the modelnum - the number of allocated keys
public static Future<KeyRange> allocateIdsAsync(ModelMeta<?> modelMeta,
long num)
modelMeta - the meta data of the modelnum - the number of allocated keys
Future
public static KeyRange allocateIds(Key parentKey,
String kind,
int num)
throws NullPointerException
parentKey - the parent keykind - the kindnum -
NullPointerException - if the parentKey parameter is null or if the kind parameter
is null
public static Future<KeyRange> allocateIdsAsync(Key parentKey,
String kind,
int num)
throws NullPointerException
parentKey - the parent keykind - the kindnum -
Future
NullPointerException - if the parentKey parameter is null or if the kind parameter
is null
public static KeyRange allocateIds(Key parentKey,
Class<?> modelClass,
int num)
throws NullPointerException
parentKey - the parent keymodelClass - the model classnum -
NullPointerException - if the parentKey parameter is null or if the modelClass
parameter is null
public static Future<KeyRange> allocateIdsAsync(Key parentKey,
Class<?> modelClass,
int num)
throws NullPointerException
parentKey - the parent keymodelClass - the model classnum -
Future
NullPointerException - if the parentKey parameter is null or if the modelClass
parameter is null
public static KeyRange allocateIds(Key parentKey,
ModelMeta<?> modelMeta,
int num)
throws NullPointerException
parentKey - the parent keymodelMeta - the meta data of the modelnum -
NullPointerException - if the parentKey parameter is null or if the modelMeta
parameter is null
public static Future<KeyRange> allocateIdsAsync(Key parentKey,
ModelMeta<?> modelMeta,
int num)
throws NullPointerException
parentKey - the parent keymodelMeta - the meta data of the modelnum -
Future
NullPointerException - if the parentKey parameter is null or if the modelMeta
parameter is null
public static Key createKey(String kind,
long id)
throws NullPointerException
kind - the kind of entityid - the identifier
NullPointerException - if the kind parameter is null
public static Key createKey(Class<?> modelClass,
long id)
throws NullPointerException
modelClass - the model classid - the identifier
NullPointerException - if the modelClass parameter is null
public static Key createKey(ModelMeta<?> modelMeta,
long id)
throws NullPointerException
modelMeta - the meta data of the modelid - the identifier
NullPointerException - if the modelMeta parameter is null
public static Key createKey(String kind,
String name)
throws NullPointerException
kind - the kind of entityname - the name
NullPointerException - if the kind parameter is null or if the name parameter is
null
public static Key createKey(Class<?> modelClass,
String name)
throws NullPointerException
modelClass - the model classname - the name
NullPointerException - if the modeClass parameter is null or if the name parameter
is null
public static Key createKey(ModelMeta<?> modelMeta,
String name)
throws NullPointerException
modelMeta - the meta data of the modelname - the name
NullPointerException - if the modelMeta parameter is null or if the name parameter
is null
public static Key createKey(Key parentKey,
String kind,
long id)
throws NullPointerException
parentKey - the parent keykind - the kind of entityid - the identifier
NullPointerException - if the parentKey parameter is null or if the kind parameter
is null
public static Key createKey(Key parentKey,
Class<?> modelClass,
long id)
throws NullPointerException
parentKey - the parent keymodelClass - the model classid - the identifier
NullPointerException - if the parentKey parameter is null or if the modelClass
parameter is null
public static Key createKey(Key parentKey,
ModelMeta<?> modelMeta,
long id)
throws NullPointerException
parentKey - the parent keymodelMeta - the meta data of the modelid - the identifier
NullPointerException - if the parentKey parameter is null or if the modelMeta
parameter is null
public static Key createKey(Key parentKey,
String kind,
String name)
throws NullPointerException
parentKey - the parent keykind - the kind of entityname - the name
NullPointerException - if the parentKey parameter is null or if the kind parameter
is null or if the name parameter is null
public static Key createKey(Key parentKey,
Class<?> modelClass,
String name)
throws NullPointerException
parentKey - the parent keymodelClass - the model classname - the name
NullPointerException - if the parentKey is null or if the modelClass parameter is
null or if the name parameter is null
public static Key createKey(Key parentKey,
ModelMeta<?> modelMeta,
String name)
throws NullPointerException
parentKey - the parent keymodelMeta - the meta data of the modelname - the name
NullPointerException - if the parentKey is null or if the modelMeta parameter is
null or if the name parameter is null
public static String keyToString(Key key)
throws NullPointerException
key - the key
NullPointerException - if the key parameter is null
public static Key stringToKey(String encodedKey)
throws NullPointerException
encodedKey - the encoded string
NullPointerException - if the encodedKey parameter is null
public static boolean putUniqueValue(String uniqueIndexName,
String value)
throws NullPointerException
uniqueIndexName - the unique index namevalue - the unique value
NullPointerException - if the uniqueIndexName parameter is null or if the value
parameter is null
public static void deleteUniqueValue(String uniqueIndexName,
String value)
throws NullPointerException
uniqueIndexName - the unique index namevalue - the unique value
NullPointerException - if the uniqueIndexName parameter is null or if the value
parameter is null
public static Entity get(Key key)
throws NullPointerException,
EntityNotFoundRuntimeException
key - the key
NullPointerException - if the key parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
public static Future<Entity> getAsync(Key key)
throws NullPointerException
key - the key
Future
NullPointerException - if the key parameter is null
public static <M> M get(Class<M> modelClass,
Key key)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typemodelClass - the model classkey - the key
NullPointerException - if the modelClass parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<M> getAsync(Class<M> modelClass,
Key key)
throws NullPointerException
M - the model typemodelClass - the model classkey - the key
Future
NullPointerException - if the modelClass parameter is null
public static <M> M get(ModelMeta<M> modelMeta,
Key key)
throws NullPointerException,
EntityNotFoundRuntimeException
M - the model typemodelMeta - the meta data of modelkey - the key
NullPointerException - if the modelMeta parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
public static <M> Future<M> getAsync(ModelMeta<M> modelMeta,
Key key)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkey - the key
Future
NullPointerException - if the modelMeta parameter is null
public static Entity getOrNull(Key key)
throws NullPointerException
key - the key
NullPointerException - if the key parameter is null
public static Future<Entity> getOrNullAsync(Key key)
throws NullPointerException
key - the key
Future
NullPointerException - if the key parameter is null
public static <M> M getOrNull(Class<M> modelClass,
Key key)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelClass - the model classkey - the key
NullPointerException - if the modelClass parameter is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<M> getOrNullAsync(Class<M> modelClass,
Key key)
throws NullPointerException
M - the model typemodelClass - the model classkey - the key
Future
NullPointerException - if the modelClass parameter is null
public static <M> M getOrNull(ModelMeta<M> modelMeta,
Key key)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelMeta - the meta data of modelkey - the key
NullPointerException - if the modelMeta parameter is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<M> getOrNullAsync(ModelMeta<M> modelMeta,
Key key)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelMeta - the meta data of modelkey - the key
Future
NullPointerException - if the modelMeta parameter is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static Entity getWithoutTx(Key key)
throws NullPointerException,
EntityNotFoundRuntimeException
key - the key
NullPointerException - if the key parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
public static Future<Entity> getWithoutTxAsync(Key key)
throws NullPointerException
key - the key
Future
NullPointerException - if the key parameter is null
public static <M> M getWithoutTx(Class<M> modelClass,
Key key)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typemodelClass - the model classkey - the key
NullPointerException - if the modelClass parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<M> getWithoutTxAsync(Class<M> modelClass,
Key key)
throws NullPointerException
M - the model typemodelClass - the model classkey - the key
Future
NullPointerException - if the modelClass parameter is null
public static <M> M getWithoutTx(ModelMeta<M> modelMeta,
Key key)
throws NullPointerException,
EntityNotFoundRuntimeException
M - the model typemodelMeta - the meta data of modelkey - the key
NullPointerException - if the modelMeta parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
public static <M> Future<M> getWithoutTxAsync(ModelMeta<M> modelMeta,
Key key)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkey - the key
Future
NullPointerException - if the modelMeta parameter is null
public static Entity getOrNullWithoutTx(Key key)
throws NullPointerException
key - the key
NullPointerException - if the key parameter is null
public static Future<Entity> getOrNullWithoutTxAsync(Key key)
throws NullPointerException
key - the key
Future
NullPointerException - if the key parameter is null
public static <M> M getOrNullWithoutTx(Class<M> modelClass,
Key key)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelClass - the model classkey - the key
NullPointerException - if the modelClass parameter is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<M> getOrNullWithoutTxAsync(Class<M> modelClass,
Key key)
throws NullPointerException
M - the model typemodelClass - the model classkey - the key
Future
NullPointerException - if the modelClass parameter is null
public static <M> M getOrNullWithoutTx(ModelMeta<M> modelMeta,
Key key)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelMeta - the meta data of modelkey - the key
NullPointerException - if the modelMeta parameter is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<M> getOrNullWithoutTxAsync(ModelMeta<M> modelMeta,
Key key)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkey - the key
Future
NullPointerException - if the modelMeta parameter is null
public static <M> M get(Class<M> modelClass,
Key key,
Long version)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException,
ConcurrentModificationException
M - the model typemodelClass - the model classkey - the keyversion - the version
NullPointerException - if the modelClass parameter is null or if the key parameter
is null or if the version parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
ConcurrentModificationException - if the version of the model is updated
public static <M> Future<M> getAsync(Class<M> modelClass,
Key key,
Long version)
throws NullPointerException
M - the model typemodelClass - the model classkey - the keyversion - the version
Future
NullPointerException - if the modelClass parameter is null or if the key parameter
is null or if the version parameter is null
public static <M> M get(ModelMeta<M> modelMeta,
Key key,
Long version)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException,
ConcurrentModificationException
M - the model typemodelMeta - the meta data of modelkey - the keyversion - the version
NullPointerException - if the modelMeta parameter is null or if the key parameter is
null or if the version parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
ConcurrentModificationException - if the version of the model is updated
public static <M> Future<M> getAsync(ModelMeta<M> modelMeta,
Key key,
Long version)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkey - the keyversion - the version
Future
NullPointerException - if the modelMeta parameter is null or if the key parameter is
null or if the version parameter is null
public static Entity get(Transaction tx,
Key key)
throws NullPointerException,
IllegalStateException,
EntityNotFoundRuntimeException
tx - the transactionkey - the key
NullPointerException - if the key parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
EntityNotFoundRuntimeException - if no entity specified by the key is found
public static Future<Entity> getAsync(Transaction tx,
Key key)
throws NullPointerException,
IllegalStateException
tx - the transactionkey - the key
Future
NullPointerException - if the key parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> M get(Transaction tx,
Class<M> modelClass,
Key key)
throws NullPointerException,
IllegalStateException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typetx - the transactionmodelClass - the model classkey - the key
NullPointerException - if the modelClass parameter is null or the key parameter is
null
IllegalStateException - if the transaction is not null and the transaction is not
active
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<M> getAsync(Transaction tx,
Class<M> modelClass,
Key key)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelClass - the model classkey - the key
Future
NullPointerException - if the modelClass parameter is null or the key parameter is
null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> M get(Transaction tx,
ModelMeta<M> modelMeta,
Key key)
throws NullPointerException,
IllegalStateException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typetx - the transactionmodelMeta - the meta data of modelkey - the key
NullPointerException - if the modelMeta parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<M> getAsync(Transaction tx,
ModelMeta<M> modelMeta,
Key key)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelMeta - the meta data of modelkey - the key
Future
NullPointerException - if the modelMeta parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Entity getOrNull(Transaction tx,
Key key)
throws NullPointerException,
IllegalStateException
tx - the transactionkey - the key
NullPointerException - if the key parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Future<Entity> getOrNullAsync(Transaction tx,
Key key)
throws NullPointerException,
IllegalStateException
tx - the transactionkey - the key
Future
NullPointerException - if the key parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> M getOrNull(Transaction tx,
Class<M> modelClass,
Key key)
throws NullPointerException,
IllegalStateException,
IllegalArgumentException
M - the model typetx - the transactionmodelClass - the model classkey - the key
NullPointerException - if the modelClass parameter is null or the key parameter is
null
IllegalStateException - if the transaction is not null and the transaction is not
active
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<M> getOrNullAsync(Transaction tx,
Class<M> modelClass,
Key key)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelClass - the model classkey - the key
Future
NullPointerException - if the modelClass parameter is null or the key parameter is
null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> M getOrNull(Transaction tx,
ModelMeta<M> modelMeta,
Key key)
throws NullPointerException,
IllegalStateException,
IllegalArgumentException
M - the model typetx - the transactionmodelMeta - the meta data of modelkey - the key
NullPointerException - if the modelMeta parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<M> getOrNullAsync(Transaction tx,
ModelMeta<M> modelMeta,
Key key)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelMeta - the meta data of modelkey - the key
Future
NullPointerException - if the modelMeta parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> M get(Transaction tx,
Class<M> modelClass,
Key key,
Long version)
throws NullPointerException,
IllegalStateException,
EntityNotFoundRuntimeException,
IllegalArgumentException,
ConcurrentModificationException
M - the model typetx - the transactionmodelClass - the model classkey - the keyversion - the version
NullPointerException - if the modelClass parameter is null or if the key parameter
is null or if the version parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
ConcurrentModificationException - if the version of the model is updated
public static <M> Future<M> getAsync(Transaction tx,
Class<M> modelClass,
Key key,
Long version)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelClass - the model classkey - the keyversion - the version
Future
NullPointerException - if the modelClass parameter is null or if the key parameter
is null or if the version parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> M get(Transaction tx,
ModelMeta<M> modelMeta,
Key key,
Long version)
throws NullPointerException,
IllegalStateException,
EntityNotFoundRuntimeException,
IllegalArgumentException,
ConcurrentModificationException
M - the model typetx - the transactionmodelMeta - the meta data of modelkey - the keyversion - the version
NullPointerException - if the modelMeta parameter is null or if the key parameter is
null or if the version parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
ConcurrentModificationException - if the version of the model is updated
public static <M> Future<M> getAsync(Transaction tx,
ModelMeta<M> modelMeta,
Key key,
Long version)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelMeta - the meta data of modelkey - the keyversion - the version
Future
NullPointerException - if the modelMeta parameter is null or if the key parameter is
null or if the version parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static List<Entity> get(Iterable<Key> keys)
throws NullPointerException,
EntityNotFoundRuntimeException
keys - the keys
NullPointerException - if the keys parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
public static Future<List<Entity>> getAsync(Iterable<Key> keys)
throws NullPointerException
keys - the keys
Future
NullPointerException - if the keys parameter is null
public static List<Entity> get(Key... keys)
throws EntityNotFoundRuntimeException
keys - the keys
EntityNotFoundRuntimeException - if no entity specified by the key could be foundpublic static Future<List<Entity>> getAsync(Key... keys)
keys - the keys
Future
public static <M> List<M> get(Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typemodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null of if the keys parameter
is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getAsync(Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException
M - the model typemodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null of if the keys parameter
is null
public static <M> List<M> get(ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typemodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null of if the keys parameter
is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getAsync(ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null of if the keys parameter
is null
public static <M> List<M> get(Class<M> modelClass,
Key... keys)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typemodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getAsync(Class<M> modelClass,
Key... keys)
throws NullPointerException
M - the model typemodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null
public static <M> List<M> get(ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typemodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getAsync(ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
public static List<Entity> getWithoutTx(Iterable<Key> keys)
throws NullPointerException,
EntityNotFoundRuntimeException
keys - the keys
NullPointerException - if the keys parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
public static Future<List<Entity>> getWithoutTxAsync(Iterable<Key> keys)
throws NullPointerException
keys - the keys
Future
NullPointerException - if the keys parameter is null
public static List<Entity> getWithoutTx(Key... keys)
throws EntityNotFoundRuntimeException
keys - the keys
EntityNotFoundRuntimeException - if no entity specified by the key could be foundpublic static Future<List<Entity>> getWithoutTxAsync(Key... keys)
keys - the keys
Future
public static <M> List<M> getWithoutTx(Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typemodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null of if the keys parameter
is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getWithoutTxAsync(Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException
M - the model typemodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null of if the keys parameter
is null
public static <M> List<M> getWithoutTx(ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typemodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null of if the keys parameter
is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getWithoutTxAsync(ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null of if the keys parameter
is null
public static <M> List<M> getWithoutTx(Class<M> modelClass,
Key... keys)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typemodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getWithoutTxAsync(Class<M> modelClass,
Key... keys)
throws NullPointerException
M - the model typemodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null
public static <M> List<M> getWithoutTx(ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typemodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getWithoutTxAsync(ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
public static List<Entity> get(Transaction tx,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException,
EntityNotFoundRuntimeException
tx - the transactionkeys - the keys
NullPointerException - if the keys parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
EntityNotFoundRuntimeException - if no entity specified by the key could be found
public static Future<List<Entity>> getAsync(Transaction tx,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException
tx - the transactionkeys - the keys
Future
NullPointerException - if the keys parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static List<Entity> get(Transaction tx,
Key... keys)
throws IllegalStateException,
EntityNotFoundRuntimeException
tx - the transactionkeys - the keys
IllegalStateException - if the transaction is not null and the transaction is not
active
EntityNotFoundRuntimeException - if no entity specified by the key could be found
public static Future<List<Entity>> getAsync(Transaction tx,
Key... keys)
throws IllegalStateException
tx - the transactionkeys - the keys
Future
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> List<M> get(Transaction tx,
Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typetx - the transactionmodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getAsync(Transaction tx,
Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> List<M> get(Transaction tx,
ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typetx - the transactionmodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getAsync(Transaction tx,
ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> List<M> get(Transaction tx,
Class<M> modelClass,
Key... keys)
throws NullPointerException,
IllegalStateException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typetx - the transactionmodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getAsync(Transaction tx,
Class<M> modelClass,
Key... keys)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> List<M> get(Transaction tx,
ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException,
IllegalStateException,
EntityNotFoundRuntimeException,
IllegalArgumentException
M - the model typetx - the transactionmodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
EntityNotFoundRuntimeException - if no entity specified by the key could be found
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<List<M>> getAsync(Transaction tx,
ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Map<Key,Entity> getAsMap(Iterable<Key> keys)
throws NullPointerException
keys - the keys
NullPointerException - if the keys parameter is null
public static Future<Map<Key,Entity>> getAsMapAsync(Iterable<Key> keys)
throws NullPointerException
keys - the keys
Future
NullPointerException - if the keys parameter is nullpublic static Map<Key,Entity> getAsMap(Key... keys)
keys - the keys
public static Future<Map<Key,Entity>> getAsMapAsync(Key... keys)
keys - the keys
Future
public static <M> Map<Key,M> getAsMap(Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null or if the keys parameter
is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapAsync(Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException
M - the model typemodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null or if the keys parameter
is null
public static <M> Map<Key,M> getAsMap(ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapAsync(ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
public static <M> Map<Key,M> getAsMap(Class<M> modelClass,
Key... keys)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapAsync(Class<M> modelClass,
Key... keys)
throws NullPointerException
M - the model typemodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null
public static <M> Map<Key,M> getAsMap(ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapAsync(ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null
public static Map<Key,Entity> getAsMapWithoutTx(Iterable<Key> keys)
throws NullPointerException
keys - the keys
NullPointerException - if the keys parameter is null
public static Future<Map<Key,Entity>> getAsMapWithoutTxAsync(Iterable<Key> keys)
throws NullPointerException
keys - the keys
Future
NullPointerException - if the keys parameter is nullpublic static Map<Key,Entity> getAsMapWithoutTx(Key... keys)
keys - the keys
public static Future<Map<Key,Entity>> getAsMapWithoutTxAsync(Key... keys)
keys - the keys
Future
public static <M> Map<Key,M> getAsMapWithoutTx(Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null or if the keys parameter
is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapWithoutTxAsync(Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException
M - the model typemodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null or if the keys parameter
is null
public static <M> Map<Key,M> getAsMapWithoutTx(ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapWithoutTxAsync(ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
public static <M> Map<Key,M> getAsMapWithoutTx(Class<M> modelClass,
Key... keys)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapWithoutTxAsync(Class<M> modelClass,
Key... keys)
throws NullPointerException
M - the model typemodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null
public static <M> Map<Key,M> getAsMapWithoutTx(ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException,
IllegalArgumentException
M - the model typemodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapWithoutTxAsync(ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException
M - the model typemodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null
public static Map<Key,Entity> getAsMap(Transaction tx,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException
tx - the transactionkeys - the keys
NullPointerException - if the keys parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Future<Map<Key,Entity>> getAsMapAsync(Transaction tx,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException
tx - the transactionkeys - the keys
Future
NullPointerException - if the keys parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Map<Key,Entity> getAsMap(Transaction tx,
Key... keys)
throws IllegalStateException
tx - the transactionkeys - the keys
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Future<Map<Key,Entity>> getAsMapAsync(Transaction tx,
Key... keys)
throws IllegalStateException
tx - the transactionkeys - the keys
Future
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> Map<Key,M> getAsMap(Transaction tx,
Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException,
IllegalArgumentException
M - the model typetx - the transactionmodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null or if the keys parameter
is null
IllegalStateException - if the transaction is not null and the transaction is not
active
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapAsync(Transaction tx,
Class<M> modelClass,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null or if the keys parameter
is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> Map<Key,M> getAsMap(Transaction tx,
ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException,
IllegalArgumentException
M - the model typetx - the transactionmodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
IllegalStateException - if the transaction is not null and the transaction is not
active
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapAsync(Transaction tx,
ModelMeta<M> modelMeta,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> Map<Key,M> getAsMap(Transaction tx,
Class<M> modelClass,
Key... keys)
throws NullPointerException,
IllegalStateException,
IllegalArgumentException
M - the model typetx - the transactionmodelClass - the model classkeys - the keys
NullPointerException - if the modelClass parameter is null or if the keys parameter
is null
IllegalStateException - if the transaction is not null and the transaction is not
active
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapAsync(Transaction tx,
Class<M> modelClass,
Key... keys)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelClass - the model classkeys - the keys
Future
NullPointerException - if the modelClass parameter is null or if the keys parameter
is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static <M> Map<Key,M> getAsMap(Transaction tx,
ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException,
IllegalStateException,
IllegalArgumentException
M - the model typetx - the transactionmodelMeta - the meta data of modelkeys - the keys
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
IllegalStateException - if the transaction is not null and the transaction is not
active
IllegalArgumentException - if the kind of the key is different from the kind of the
model or if the model class is not assignable from entity
class
public static <M> Future<Map<Key,M>> getAsMapAsync(Transaction tx,
ModelMeta<M> modelMeta,
Key... keys)
throws NullPointerException,
IllegalStateException
M - the model typetx - the transactionmodelMeta - the meta data of modelkeys - the keys
Future
NullPointerException - if the modelMeta parameter is null or if the keys parameter
is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Key put(Entity entity)
throws NullPointerException
entity - the entity
NullPointerException - if the entity parameter is null
public static Future<Key> putAsync(Entity entity)
throws NullPointerException
entity - the entity
Future
NullPointerException - if the entity parameter is null
public static Key putWithoutTx(Entity entity)
throws NullPointerException
entity - the entity
NullPointerException - if the entity parameter is null
public static Future<Key> putWithoutTxAsync(Entity entity)
throws NullPointerException
entity - the entity
Future
NullPointerException - if the entity parameter is null
public static Key put(Object model)
throws NullPointerException
model - the model
NullPointerException - if the model parameter is null
public static Future<Key> putAsync(Object model)
throws NullPointerException
model - the model
Future
NullPointerException - if the model parameter is null
public static Key putWithoutTx(Object model)
throws NullPointerException
model - the model
NullPointerException - if the model parameter is null
public static Future<Key> putWithoutTxAsync(Object model)
throws NullPointerException
model - the model
Future
NullPointerException - if the model parameter is null
public static Key put(Transaction tx,
Entity entity)
throws NullPointerException,
IllegalStateException
tx - the transactionentity - the entity
NullPointerException - if the entity parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Future<Key> putAsync(Transaction tx,
Entity entity)
throws NullPointerException,
IllegalStateException
tx - the transactionentity - the entity
Future
NullPointerException - if the entity parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Key put(Transaction tx,
Object model)
throws NullPointerException,
IllegalStateException
tx - the transactionmodel - the model
NullPointerException - if the model parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Future<Key> putAsync(Transaction tx,
Object model)
throws NullPointerException,
IllegalStateException
tx - the transactionmodel - the model
Future
NullPointerException - if the model parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static List<Key> put(Iterable<?> models)
throws NullPointerException
models - the models or entities
NullPointerException - if the models parameter is null
public static Future<List<Key>> putAsync(Iterable<?> models)
throws NullPointerException
models - the models or entities
Future
NullPointerException - if the models parameter is null
public static List<Key> putWithoutTx(Iterable<?> models)
throws NullPointerException
models - the models or entities
NullPointerException - if the models parameter is null
public static Future<List<Key>> putWithoutTxAsync(Iterable<?> models)
throws NullPointerException
models - the models or entities
Future
NullPointerException - if the models parameter is nullpublic static List<Key> put(Object... models)
models - the models or entities
public static Future<List<Key>> putAsync(Object... models)
models - the models or entities
Futurepublic static List<Key> putWithoutTx(Object... models)
models - the models or entities
public static Future<List<Key>> putWithoutTxAsync(Object... models)
models - the models or entities
Future
public static List<Key> put(Transaction tx,
Iterable<?> models)
throws NullPointerException,
IllegalStateException
tx - the transactionmodels - the models or entities
NullPointerException - if the models parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Future<List<Key>> putAsync(Transaction tx,
Iterable<?> models)
throws NullPointerException,
IllegalStateException
tx - the transactionmodels - the models or entities
Future
NullPointerException - if the models parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static List<Key> put(Transaction tx,
Object... models)
throws IllegalStateException
tx - the transactionmodels - the models or entities
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Future<List<Key>> putAsync(Transaction tx,
Object... models)
throws IllegalStateException
tx - the transactionmodels - the models or entities
Future
IllegalStateException - if the transaction is not null and the transaction is not
active
public static void delete(Iterable<Key> keys)
throws NullPointerException
keys - the keys
NullPointerException - if the keys parameter is null
public static Future<Void> deleteAsync(Iterable<Key> keys)
throws NullPointerException
keys - the keys
Void represented as Future
NullPointerException - if the keys parameter is null
public static void deleteWithoutTx(Iterable<Key> keys)
throws NullPointerException
keys - the keys
NullPointerException - if the keys parameter is null
public static Future<Void> deleteWithoutTxAsync(Iterable<Key> keys)
throws NullPointerException
keys - the keys
Void represented as Future
NullPointerException - if the keys parameter is nullpublic static void delete(Key... keys)
keys - the keyspublic static Future<Void> deleteAsync(Key... keys)
keys - the keys
Void represented as Futurepublic static void deleteWithoutTx(Key... keys)
keys - the keyspublic static Future<Void> deleteWithoutTxAsync(Key... keys)
keys - the keys
Void represented as Future
public static void delete(Transaction tx,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException
tx - the transactionkeys - the keys
NullPointerException - if the keys parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Future<Void> deleteAsync(Transaction tx,
Iterable<Key> keys)
throws NullPointerException,
IllegalStateException
tx - the transactionkeys - the keys
Void represented as Future
NullPointerException - if the keys parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static void delete(Transaction tx,
Key... keys)
throws IllegalStateException
tx - the transactionkeys - the keys
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Future<Void> deleteAsync(Transaction tx,
Key... keys)
throws IllegalStateException
tx - the transactionkeys - the keys
Void represented as Future
IllegalStateException - if the transaction is not null and the transaction is not
active
public static void deleteAll(Key ancestorKey)
throws NullPointerException
ancestorKey - the ancestor key
NullPointerException - if the ancestorKey parameter is null
public static Future<Void> deleteAllAsync(Key ancestorKey)
throws NullPointerException
ancestorKey - the ancestor key
Void represented as Future
NullPointerException - if the ancestorKey parameter is null
public static void deleteAll(Transaction tx,
Key ancestorKey)
throws NullPointerException,
IllegalStateException
tx - the transactionancestorKey - the ancestor key
NullPointerException - if the ancestorKey parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static Future<Void> deleteAllAsync(Transaction tx,
Key ancestorKey)
throws NullPointerException,
IllegalStateException
tx - the transactionancestorKey - the ancestor key
Void represented as Future
NullPointerException - if the ancestorKey parameter is null
IllegalStateException - if the transaction is not null and the transaction is not
active
public static void deleteAllWithoutTx(Key ancestorKey)
throws NullPointerException
ancestorKey - the ancestor key
NullPointerException - if the ancestorKey parameter is null
public static Future<Void> deleteAllWithoutTxAsync(Key ancestorKey)
throws NullPointerException
ancestorKey - the ancestor key
Void represented as Future
NullPointerException - if the ancestorKey parameter is null
public static <M> ModelQuery<M> query(Class<M> modelClass)
throws NullPointerException
ModelQuery.
M - the model typemodelClass - the model class
ModelQuery
NullPointerException - if the modelClass parameter is null
public static <M> ModelQuery<M> query(ModelMeta<M> modelMeta)
throws NullPointerException
ModelQuery.
M - the model typemodelMeta - the meta data of model
ModelQuery
NullPointerException - if the modelMeta parameter is null
public static <M> ModelQuery<M> query(Class<M> modelClass,
Key ancestorKey)
throws NullPointerException
ModelQuery.
M - the model typemodelClass - the model classancestorKey - the ancestor key
ModelQuery
NullPointerException - if the modelClass parameter is null or if the ancestorKey
parameter is null
public static <M> ModelQuery<M> query(ModelMeta<M> modelMeta,
Key ancestorKey)
throws NullPointerException
ModelQuery.
M - the model typemodelMeta - the meta data of modelancestorKey - the ancestor key
ModelQuery
NullPointerException - if the modelMeta parameter is null or if the ancestorKey
parameter is null
public static <M> ModelQuery<M> query(Transaction tx,
Class<M> modelClass,
Key ancestorKey)
throws NullPointerException
ModelQuery.
M - the model typetx - the transactionmodelClass - the model classancestorKey - the ancestor key
ModelQuery
NullPointerException - if the modelClass parameter is null or if the ancestorKey
parameter is null
public static <M> ModelQuery<M> query(Transaction tx,
ModelMeta<M> modelMeta,
Key ancestorKey)
throws NullPointerException
ModelQuery.
M - the model typetx - the transactionmodelMeta - the meta data of modelancestorKey - the ancestor key
ModelQuery
NullPointerException - if the modelMeta parameter is null or if the ancestorKey
parameter is null
public static EntityQuery query(String kind)
throws NullPointerException
EntityQuery.
kind - the kind
EntityQuery
NullPointerException - if the kind parameter is null
public static EntityQuery query(String kind,
Key ancestorKey)
throws NullPointerException
EntityQuery.
kind - the kindancestorKey - the ancestor key
EntityQuery
NullPointerException - if the kind parameter is null or if the ancestorKey parameter
is null
public static EntityQuery query(Transaction tx,
String kind,
Key ancestorKey)
throws NullPointerException
EntityQuery.
tx - the transactionkind - the kindancestorKey - the ancestor key
EntityQuery
NullPointerException - if the kind parameter is null or if the ancestorKey parameter
is nullpublic static KindlessQuery query()
KindlessQuery.
KindlessQuery
public static KindlessQuery query(Key ancestorKey)
throws NullPointerException
KindlessQuery.
ancestorKey - the ancestor key
KindlessQuery
NullPointerException - if the ancestorKey parameter is null
public static KindlessQuery query(Transaction tx,
Key ancestorKey)
throws NullPointerException
KindlessQuery.
tx - the transactionancestorKey - the ancestor key
KindlessQuery
NullPointerException - if the ancestorKey parameter is null
public static <M> ModelMeta<M> getModelMeta(Class<M> modelClass)
throws NullPointerException
M - the model typemodelClass - the model class
NullPointerException - if the modelClass parameter is null
public static <M> List<M> filterInMemory(List<M> list,
InMemoryFilterCriterion... criteria)
throws NullPointerException
M - the model typelist - the model listcriteria - the filter criteria
NullPointerException - if the list parameter is null or if the model of the list is
null
public static <M> List<M> sortInMemory(List<M> list,
InMemorySortCriterion... criteria)
throws NullPointerException
M - the model typelist - the model listcriteria - criteria to sort
NullPointerException - if the list parameter is null or if the criteria parameter is
nullpublic static void setLimitedCipherKey(String key)
key - the keypublic static void setGlobalCipherKey(String key)
key - the key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||