Package org.neo4j.ogm.session
Interface Session
- All Known Implementing Classes:
Neo4jSession
public interface Session
A
Methods
Methods
Session
serves as the main point of integration for the Neo4j OGM.
All the publicly-available capabilities of the framework are defined by this interface.
Instances of Session are not thread safe.
In a typical application scenario there should be a Session instance per thread.
A broader scope may be chosen, but the access to the Session must be synchronized externally.
Load methods
Methodsload(java.lang.Class, java.io.Serializable)
load single instance of class by id.Methods
loadAll(java.lang.Class, java.util.Collection)
load multiple instances of same class by ids.
Note that if an entity with id is not found it is simply omitted from the results.Methods
loadAll(java.lang.Class, org.neo4j.ogm.cypher.Filter)
queries multiple instances of class by
filterLoad and save depth parameter
The depth parameter tells OGM how many steps to follow when loading or saving entities. Each relationship counts as one step (regardless type - simple relationship orRelationshipEntity
).
When loading entities the depth parameter is reflected by the query (also see LoadStrategy
).
When saving entities the depth parameter defines a horizon from root entity for checking for modified entities.
Session cache
When loading entities already present in Session following happens:- cached instance of the entity is returned
- all property fields are set to original values - even when loaded entity is updated
- relationship fields are merged with loaded relationships - new relationships may be added to existing relationship collections
clear()
to clear current session before
reload.- Author:
- Vince Bickers, Luanne Misquitta, Mark Angrish, Frantisek Hartman
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.neo4j.ogm.transaction.Transaction
Begin a new READ_WRITE transaction.org.neo4j.ogm.transaction.Transaction
beginTransaction
(org.neo4j.ogm.transaction.Transaction.Type type) Begin a new transaction, passing in the required type (READ_ONLY, READ_WRITE).org.neo4j.ogm.transaction.Transaction
beginTransaction
(org.neo4j.ogm.transaction.Transaction.Type type, Iterable<String> bookmarks) Begin a new transaction, passing in the required type and bookmarks If an existing transaction already exists, users must decide whether to commit or rollback.void
clear()
Clears the Sessionlong
Counts all the node entities of the specified type which match the filters suppliedlong
countEntitiesOfType
(Class<?> entity) Counts all the node entities of the specified type.<T> Object
Delete all entities of type matching filter<T> void
delete
(T object) Delete entity (or entities)<T> void
Delete all entities of typeboolean
detachNodeEntity
(Long id) Detach this node entity represented by the supplied Graph ID from the session.boolean
Detach this relationship entity represented by the supplied Graph ID from the session.boolean
dispose
(EventListener eventListener) Remove an event listener from this session.boolean
Determines if events are enabled for this session.Retrieves the last bookmark used in this session when used in a Neo4j Causal Cluster.Returns current load strategyorg.neo4j.ogm.transaction.Transaction
Get the existing transaction if available<T,
ID extends Serializable>
TLoad single entity instance of type, with default depth = 1<T,
ID extends Serializable>
TLoad single entity instance of type, with depth<T> Collection<T>
Load all entities of type, with default depth = 1.<T> Collection<T>
Load all entities of type, with depth<T,
ID extends Serializable>
Collection<T>loadAll
(Class<T> type, Collection<ID> ids) Load entities of type by their ids, with default depth = 1.<T,
ID extends Serializable>
Collection<T>loadAll
(Class<T> type, Collection<ID> ids, int depth) Load entities of type by their ids.<T,
ID extends Serializable>
Collection<T>loadAll
(Class<T> type, Collection<ID> ids, Pagination pagination) Load entities of type by their ids, with default depth = 1.<T,
ID extends Serializable>
Collection<T>loadAll
(Class<T> type, Collection<ID> ids, Pagination pagination, int depth) Load entities of type by their ids.<T,
ID extends Serializable>
Collection<T>loadAll
(Class<T> type, Collection<ID> ids, SortOrder sortOrder) Load entities of type by their ids, with default depth = 1.<T,
ID extends Serializable>
Collection<T>loadAll
(Class<T> type, Collection<ID> ids, SortOrder sortOrder, int depth) Load entities of type by their ids.<T,
ID extends Serializable>
Collection<T>loadAll
(Class<T> type, Collection<ID> ids, SortOrder sortOrder, Pagination pagination) Load entities of type by their ids, with default depth = 1.<T,
ID extends Serializable>
Collection<T>loadAll
(Class<T> type, Collection<ID> ids, SortOrder sortOrder, Pagination pagination, int depth) Load entities of type by their ids.<T> Collection<T>
Load all entities of type, filtered by filter, with default depth = 1.<T> Collection<T>
Load all entities of type, filtered by filter.<T> Collection<T>
loadAll
(Class<T> type, Filter filter, Pagination pagination) Load all entities of type, filtered by filter, with default depth = 1.<T> Collection<T>
loadAll
(Class<T> type, Filter filter, Pagination pagination, int depth) Load all entities of type, filtered by filter.<T> Collection<T>
Load all entities of type, filtered by filter, with default depth = 1.<T> Collection<T>
Load all entities of type, filtered by filter.<T> Collection<T>
loadAll
(Class<T> type, Filter filter, SortOrder sortOrder, Pagination pagination) Load all entities of type, filtered by filter, with default depth = 1.<T> Collection<T>
loadAll
(Class<T> type, Filter filter, SortOrder sortOrder, Pagination pagination, int depth) Load all entities of type, filtered by filter.<T> Collection<T>
Load all entities of type, filtered by filters, with default depth = 1.<T> Collection<T>
Load all entities of type, filtered by filters.<T> Collection<T>
loadAll
(Class<T> type, Filters filters, Pagination pagination) Load all entities of type, filtered by filters, with default depth = 1.<T> Collection<T>
loadAll
(Class<T> type, Filters filters, Pagination pagination, int depth) Load all entities of type, filtered by filters.<T> Collection<T>
Load all entities of type, filtered by filters, with default depth = 1.<T> Collection<T>
Load all entities of type, filtered by filters.<T> Collection<T>
loadAll
(Class<T> type, Filters filters, SortOrder sortOrder, Pagination pagination) Load all entities of type, filtered by filters, with default depth = 1.<T> Collection<T>
loadAll
(Class<T> type, Filters filters, SortOrder sortOrder, Pagination pagination, int depth) Load all entities of type, filtered by filters.<T> Collection<T>
loadAll
(Class<T> type, Pagination pagination) Load all entities of type, with default depth = 1.<T> Collection<T>
loadAll
(Class<T> type, Pagination pagination, int depth) Load all entities of type.<T> Collection<T>
Load all entities of type, with default depth = 1<T> Collection<T>
Load all entities of type.<T> Collection<T>
loadAll
(Class<T> type, SortOrder sortOrder, Pagination pagination) Load all entities of type, with default depth = 1.<T> Collection<T>
loadAll
(Class<T> type, SortOrder sortOrder, Pagination pagination, int depth) Load all entities of type.<T> Collection<T>
loadAll
(Collection<T> objects) Load entities by themselves - uses id of the entity to load it again, with default depth = 1.<T> Collection<T>
loadAll
(Collection<T> objects, int depth) Load entities by themselves - uses id of the entity to load it again.<T> Collection<T>
loadAll
(Collection<T> objects, Pagination pagination) Load entities by themselves - uses id of the entity to load it again, with default depth = 1.<T> Collection<T>
loadAll
(Collection<T> objects, Pagination pagination, int depth) Load entities by themselves - uses id of the entity to load it again.<T> Collection<T>
loadAll
(Collection<T> objects, SortOrder sortOrder) Load entities by themselves - uses id of the entity to load it again, with default depth = 1.<T> Collection<T>
loadAll
(Collection<T> objects, SortOrder sortOrder, int depth) Load entities by themselves - uses id of the entity to load it again.<T> Collection<T>
loadAll
(Collection<T> objects, SortOrder sortOrder, Pagination pagination) Load entities by themselves - uses id of the entity to load it again, with default depth = 1.<T> Collection<T>
loadAll
(Collection<T> objects, SortOrder sortOrder, Pagination pagination, int depth) Load entities by themselves - uses id of the entity to load it again.void
notifyListeners
(Event event) Notifies listeners of this session of the suppliedEvent
.void
Delete all nodes in the database.<T> Iterable<T>
a cypher statement this method will return a collection of domain objects that is hydrated to the default level or a collection of scalars (depending on the parametrized type).org.neo4j.ogm.model.Result
a cypher statement this method will return a Result object containing a collection of Map's which represent Neo4j objects as properties, along with query statistics if applicable.org.neo4j.ogm.model.Result
a cypher statement this method will return a Result object containing a collection of Map's which represent Neo4j objects as properties, along with query statistics if applicable.<T> List<T>
Map non-entities to aList
of DTO objects.<T> T
queryForObject
(Class<T> objectType, String cypher, Map<String, ?> parameters) a cypher statement this method will return a domain object that is hydrated to the default level or a scalar (depending on the parametrized type).register
(EventListener eventListener) Register an event listener with this session.resolveGraphIdFor
(Object possibleEntity) Resolve the graph id for a possible entity.<T> void
save
(T object) Save entity(or entities) into the database, up to specified depth The entities are either created or updated.<T> void
save
(T object, int depth) Save entity(or entities) into the database, up to specified depth The objects are either created or updated.void
setLoadStrategy
(LoadStrategy loadStrategy) Sets the LoadStrategy Will be used for all subsequent queries.void
withBookmark
(String bookmark) Sets the bookmark to use on this session.
-
Method Details
-
loadAll
Load entities of type by their ids, with default depth = 1.- Parameters:
type
- type of entitiesids
- ids of entities to load- Returns:
- collection of entities
-
loadAll
Load entities of type by their ids.- Parameters:
type
- type of entitiesids
- ids of entities to loaddepth
- depth- Returns:
- collection of entities
-
loadAll
<T,ID extends Serializable> Collection<T> loadAll(Class<T> type, Collection<ID> ids, SortOrder sortOrder) Load entities of type by their ids, with default depth = 1.- Parameters:
type
- type of entitiesids
- ids of entities to loadsortOrder
- sort order- Returns:
- collection of entities
-
loadAll
<T,ID extends Serializable> Collection<T> loadAll(Class<T> type, Collection<ID> ids, SortOrder sortOrder, int depth) Load entities of type by their ids.- Parameters:
type
- type of entitiesids
- ids of entities to loadsortOrder
- sort orderdepth
- depth- Returns:
- collection of entities
-
loadAll
<T,ID extends Serializable> Collection<T> loadAll(Class<T> type, Collection<ID> ids, Pagination pagination) Load entities of type by their ids, with default depth = 1.- Parameters:
type
- type of entitiesids
- ids of entities to loadpagination
- pagination- Returns:
- collection of entities
-
loadAll
<T,ID extends Serializable> Collection<T> loadAll(Class<T> type, Collection<ID> ids, Pagination pagination, int depth) Load entities of type by their ids.- Parameters:
type
- type of entitiesids
- ids of entities to loadpagination
- paginationdepth
- depth- Returns:
- collection of entities
-
loadAll
<T,ID extends Serializable> Collection<T> loadAll(Class<T> type, Collection<ID> ids, SortOrder sortOrder, Pagination pagination) Load entities of type by their ids, with default depth = 1.- Parameters:
type
- type of entitiesids
- ids of entities to loadsortOrder
- sort orderpagination
- pagination- Returns:
- collection of entities
-
loadAll
<T,ID extends Serializable> Collection<T> loadAll(Class<T> type, Collection<ID> ids, SortOrder sortOrder, Pagination pagination, int depth) Load entities of type by their ids.- Parameters:
type
- type of entitiesids
- ids of entities to loadsortOrder
- sort orderpagination
- paginationdepth
- depth- Returns:
- collection of entities
-
loadAll
Load entities by themselves - uses id of the entity to load it again, with default depth = 1. Note that standard session behaviour regarding entity loading an reloading applies.- Parameters:
objects
- objects- Returns:
- collection of entities
-
loadAll
Load entities by themselves - uses id of the entity to load it again. Note that standard session behaviour regarding entity loading an reloading applies.- Parameters:
objects
- objects- Returns:
- collection of entities
-
loadAll
Load entities by themselves - uses id of the entity to load it again, with default depth = 1. Note that standard session behaviour regarding entity loading an reloading applies.- Parameters:
objects
- objectssortOrder
- sort order- Returns:
- collection of entities
-
loadAll
Load entities by themselves - uses id of the entity to load it again. Note that standard session behaviour regarding entity loading an reloading applies.- Parameters:
objects
- objectssortOrder
- sort orderdepth
- depth- Returns:
- collection of entities
-
loadAll
Load entities by themselves - uses id of the entity to load it again, with default depth = 1. Note that standard session behaviour regarding entity loading an reloading applies.- Parameters:
objects
- objectspagination
- pagination- Returns:
- collection of entities
-
loadAll
Load entities by themselves - uses id of the entity to load it again. Note that standard session behaviour regarding entity loading an reloading applies.- Parameters:
objects
- objectspagination
- paginationdepth
- depth- Returns:
- collection of entities
-
loadAll
Load entities by themselves - uses id of the entity to load it again, with default depth = 1. Note that standard session behaviour regarding entity loading an reloading applies.- Parameters:
objects
- objectssortOrder
- sort orderpagination
- pagination- Returns:
- collection of entities
-
loadAll
<T> Collection<T> loadAll(Collection<T> objects, SortOrder sortOrder, Pagination pagination, int depth) Load entities by themselves - uses id of the entity to load it again. Note that standard session behaviour regarding entity loading an reloading applies.- Parameters:
objects
- objectssortOrder
- sort orderpagination
- paginationdepth
- depth- Returns:
- collection of entities
-
loadAll
Load all entities of type, with default depth = 1.- Parameters:
type
- type of entities- Returns:
- collection of entities
-
loadAll
Load all entities of type, with depth- Parameters:
type
- type of entitiesdepth
- depth- Returns:
- collection of entities
-
loadAll
Load all entities of type, with default depth = 1- Parameters:
type
- type of entitiessortOrder
- sort order- Returns:
- collection of entities
-
loadAll
Load all entities of type.- Parameters:
type
- type of entitiessortOrder
- sort orderdepth
- depth- Returns:
- collection of entities
-
loadAll
Load all entities of type, with default depth = 1.- Parameters:
type
- type of entitiespagination
- pagination- Returns:
- collection of entities
-
loadAll
Load all entities of type.- Parameters:
type
- type of entitiespagination
- paginationdepth
- depth- Returns:
- collection of entities
-
loadAll
Load all entities of type, with default depth = 1.- Parameters:
type
- type of entitiessortOrder
- sort orderpagination
- pagination- Returns:
- collection of entities
-
loadAll
Load all entities of type.- Parameters:
type
- type of entitiessortOrder
- sort orderpagination
- paginationdepth
- depth- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filter, with default depth = 1.- Parameters:
type
- type of entitiesfilter
- filter- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filter.- Parameters:
type
- type of entitiesfilter
- filterdepth
- depth- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filter, with default depth = 1.- Parameters:
type
- type of entitiesfilter
- filtersortOrder
- sort order- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filter.- Parameters:
type
- type of entitiesfilter
- filtersortOrder
- sort order- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filter, with default depth = 1.- Parameters:
type
- type of entitiesfilter
- filterpagination
- pagination- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filter.- Parameters:
type
- type of entitiesfilter
- filterpagination
- paginationdepth
- depth- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filter, with default depth = 1.- Parameters:
type
- type of entitiesfilter
- filtersortOrder
- sort orderpagination
- pagination- Returns:
- collection of entities
-
loadAll
<T> Collection<T> loadAll(Class<T> type, Filter filter, SortOrder sortOrder, Pagination pagination, int depth) Load all entities of type, filtered by filter.- Parameters:
type
- type of entitiesfilter
- filtersortOrder
- sort orderpagination
- paginationdepth
- depth- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filters, with default depth = 1.- Parameters:
type
- type of entitiesfilters
- filters- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filters.- Parameters:
type
- type of entitiesfilters
- filtersdepth
- depth- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filters, with default depth = 1.- Parameters:
type
- type of entitiesfilters
- filterssortOrder
- sort order- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filters.- Parameters:
type
- type of entitiesfilters
- filterssortOrder
- sort orderdepth
- depth- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filters, with default depth = 1.- Parameters:
type
- type of entitiesfilters
- filterspagination
- pagination- Returns:
- collection of entities
-
loadAll
Load all entities of type, filtered by filters.- Parameters:
type
- type of entitiesfilters
- filterspagination
- paginationdepth
- depth- Returns:
- collection of entities
-
loadAll
<T> Collection<T> loadAll(Class<T> type, Filters filters, SortOrder sortOrder, Pagination pagination) Load all entities of type, filtered by filters, with default depth = 1.- Parameters:
type
- type of entitiesfilters
- filterssortOrder
- sort orderpagination
- pagination- Returns:
- collection of entities
-
loadAll
<T> Collection<T> loadAll(Class<T> type, Filters filters, SortOrder sortOrder, Pagination pagination, int depth) Load all entities of type, filtered by filters.- Parameters:
type
- type of entitiesfilters
- filterssortOrder
- sort orderpagination
- paginationdepth
- depth- Returns:
- collection of entities
-
load
Load single entity instance of type, with default depth = 1- Returns:
- entity instance, null if not found
-
load
Load single entity instance of type, with depth- Returns:
- entity instance, null if not found
-
save
<T> void save(T object) Save entity(or entities) into the database, up to specified depth The entities are either created or updated. When new objects are saved and the objects have a field that is mapped withId
using the internal Id-generation-strategy, those fields are modified and set to the internal graph-id.- Parameters:
object
- object to save, may be single entity, array of entities orIterable
-
save
<T> void save(T object, int depth) Save entity(or entities) into the database, up to specified depth The objects are either created or updated. When new objects are saved and the objects have a field that is mapped withId
using the internal Id-generation-strategy, those fields are modified and set to the internal graph-id.- Parameters:
object
- object to save, may be single entity, array of entities orIterable
-
delete
<T> void delete(T object) Delete entity (or entities)- Parameters:
object
- object to delete, may be single entity, array of entities orIterable
-
deleteAll
Delete all entities of type- Parameters:
type
- type of the entities to delete
-
delete
Delete all entities of type matching filter- Parameters:
type
- type of the entities to deletefilters
- filters to match entities to deletelistResults
- true if ids of deleted entities should be returned, false to return count only- Returns:
- ids or deleted entities or count of deleted entities
-
purgeDatabase
void purgeDatabase()Delete all nodes in the database. The delete is performed in a single transaction so it may not be suitable for large data sets. NOTE: This will delete all data, not only nodes/relationships with matching metadata in the domain. -
clear
void clear()Clears the Session -
getTransaction
org.neo4j.ogm.transaction.Transaction getTransaction()Get the existing transaction if available- Returns:
- an active Transaction, or null if none exists
-
beginTransaction
org.neo4j.ogm.transaction.Transaction beginTransaction()Begin a new READ_WRITE transaction. If an existing transaction already exists, users must decide whether to commit or rollback. Only one transaction can be bound to a thread at any time, so active transactions that have not been closed but are no longer bound to the thread must be handled by client code.- Returns:
- a new active Transaction
-
beginTransaction
org.neo4j.ogm.transaction.Transaction beginTransaction(org.neo4j.ogm.transaction.Transaction.Type type) Begin a new transaction, passing in the required type (READ_ONLY, READ_WRITE). If an existing transaction already exists, users must decide whether to commit or rollback. Only one transaction can be bound to a thread at any time, so active transactions that have not been closed but are no longer bound to the thread must be handled by client code.- Parameters:
type
- theTransaction.Type
required for this transaction- Returns:
- a new active Transaction
-
beginTransaction
org.neo4j.ogm.transaction.Transaction beginTransaction(org.neo4j.ogm.transaction.Transaction.Type type, Iterable<String> bookmarks) Begin a new transaction, passing in the required type and bookmarks If an existing transaction already exists, users must decide whether to commit or rollback. Only one transaction can be bound to a thread at any time, so active transactions that have not been closed but are no longer bound to the thread must be handled by client code.- Parameters:
type
- theTransaction.Type
required for this transactionbookmarks
- bookmarks that are passed to driver- Returns:
- a new active Transaction
-
queryForObject
a cypher statement this method will return a domain object that is hydrated to the default level or a scalar (depending on the parametrized type).- Type Parameters:
T
- A domain object or scalar.- Parameters:
objectType
- The type that should be returned from the query.cypher
- The parameterizable cypher to execute.parameters
- Any scalar parameters to attach to the cypher.- Returns:
- An instance of the objectType that matches the cypher and parameters. Null if no object is matched
- Throws:
RuntimeException
- If more than one object is found.
-
query
a cypher statement this method will return a collection of domain objects that is hydrated to the default level or a collection of scalars (depending on the parametrized type).- Type Parameters:
T
- A domain object or scalar.- Parameters:
objectType
- The type that should be returned from the query.cypher
- The parameterizable cypher to execute.parameters
- Any parameters to attach to the cypher.- Returns:
- A collection of domain objects or scalars as prescribed by the parametrized type.
-
query
a cypher statement this method will return a Result object containing a collection of Map's which represent Neo4j objects as properties, along with query statistics if applicable. Each element of the query result is a map which you can access by the name of the returned field TODO: Are we going to use the neo4jOperations conversion method to cast the value object to its proper class?- Parameters:
cypher
- The parameterisable cypher to execute.parameters
- Any parameters to attach to the cypher.- Returns:
- A
Result
containing anIterable
map representing query results andQueryStatistics
if applicable.
-
queryDto
Map non-entities to aList
of DTO objects.- Type Parameters:
T
- Type of the expected result.- Parameters:
cypher
- The parameterisable cypher to execute.parameters
- Any parameters to attach to the cypher.type
- The tyoe that should be returned from the query.- Returns:
- A
List
of the resulting object.
-
query
a cypher statement this method will return a Result object containing a collection of Map's which represent Neo4j objects as properties, along with query statistics if applicable. Each element of the query result is a map which you can access by the name of the returned field TODO: Are we going to use the neo4jOperations conversion method to cast the value object to its proper class?- Parameters:
cypher
- The parameterisable cypher to execute.parameters
- Any parameters to attach to the cypher.readOnly
- true if the query is readOnly, false otherwise- Returns:
- A
Result
ofIterable
s with each entry representing a neo4j object's properties.
-
countEntitiesOfType
Counts all the node entities of the specified type.- Parameters:
entity
- TheClass
denoting the type of entity to count- Returns:
- The number of entities in the database of the type
-
count
Counts all the node entities of the specified type which match the filters supplied -
resolveGraphIdFor
Resolve the graph id for a possible entity.- Parameters:
possibleEntity
- the possible entity- Returns:
- the value of the internal graph id for the possible entity. Returns null if either the object is not an entity or the id is null.
-
detachNodeEntity
Detach this node entity represented by the supplied Graph ID from the session.- Parameters:
id
- the node id to detach.- Returns:
true
if detached successfully.
-
detachRelationshipEntity
Detach this relationship entity represented by the supplied Graph ID from the session.- Parameters:
id
- the relationship id to detach.- Returns:
true
if detached successfully.
-
register
Register an event listener with this session.- Parameters:
eventListener
- The listener to register.- Returns:
- the registered event listener.
-
dispose
Remove an event listener from this session.- Parameters:
eventListener
- The listener to deregister- Returns:
true
if successfully registered.
-
notifyListeners
Notifies listeners of this session of the suppliedEvent
.- Parameters:
event
- The event to inform listeners with.
-
eventsEnabled
boolean eventsEnabled()Determines if events are enabled for this session.- Returns:
true
if this session allows events.
-
getLastBookmark
String getLastBookmark()Retrieves the last bookmark used in this session when used in a Neo4j Causal Cluster. This bookmark can be used to ensure the cluster is consistent before performing a read/write.- Returns:
- The last used bookmark String on this session.
-
withBookmark
Sets the bookmark to use on this session. Useful when resuming a user session with a causal cluster.- Parameters:
bookmark
- The last used bookmark String that this session should start from.
-
getLoadStrategy
LoadStrategy getLoadStrategy()Returns current load strategy- Returns:
- load strategy
-
setLoadStrategy
Sets the LoadStrategy Will be used for all subsequent queries.
-