Session and StatelessSession.
| Modifier and Type | Method and Description |
|---|---|
| public Transaction | Returns: aTransaction instanceBegin a unit of work and return the associated |
| public void | close()
Redeclares java. |
| public <T> RootGraph | createEntityGraph(Class<T>
the root entity class of the graph rootType)Create a new mutable |
| public RootGraph | createEntityGraph(String
the name of the graph graphName)Create a new mutable copy of the named |
| public <T> RootGraph | createEntityGraph(Class<T>
the root entity class of the graph rootType, String the name of the graph graphName)Create a new mutable copy of the named |
| public ProcedureCall | Returns: The ProcedureCallThe name given to the template name)Obtain a |
| public ProcedureCall | Returns: The representation of the procedure call.The name of the procedure. procedureName)Create a |
| public ProcedureCall | Returns: The representation of the procedure call.The name of the procedure. procedureName, Class<?>... The entity(s) to map the result on to. resultClasses)Create a |
| public ProcedureCall | Returns: The representation of the procedure call.The name of the procedure. procedureName, String... The explicit result set mapping(s) to use for mapping the results resultSetMappings)Create a |
| public ProcedureCall | Returns: The representation of the procedure call.The name of the procedure. procedureName)Create a |
| public ProcedureCall | Returns: The representation of the procedure call.The name of the procedure. procedureName, Class<?>... The entity(s) to map the result on to. resultClasses)Create a |
| public ProcedureCall | Returns: The representation of the procedure call.The name of the procedure. procedureName, String... The explicit result set mapping(s) to use for mapping the results resultSetMappings)Create a |
| public default < The type of the result returned from the work T> T | Returns: the result of callingReturningWork#execute.The work to be performed. work)Perform work using the |
| public default void | doWork(Work
The work to be performed. work)Perform work using the |
| public HibernateCriteriaBuilder | Returns: an instance ofHibernateCriteriaBuilderObtain a |
| public RootGraph | getEntityGraph(String
the name of the graph graphName)Retrieve the named |
| public <T> List | |
| public SessionFactory | |
| public Integer | Returns: the current session-level JDBC batch sizeGet the session-level JDBC batch size for the current session. |
| public ProcedureCall | Returns: The ProcedureCallThe name given to the template name)Obtain a |
| public String | Returns: The tenant identifier associated with this session, ornullObtain the tenant identifier associated with this session. |
| public Object | Returns: The tenant identifier associated with this session, ornullObtain the tenant identifier associated with this session. |
| public Transaction | Returns: a Transaction instanceGet the |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | setJdbcBatchSize(Integer
the new session-level JDBC batch size jdbcBatchSize)Set the session-level JDBC batch size. |
| beginTransaction | back to summary |
|---|---|
| public Transaction beginTransaction() Begin a unit of work and return the associated
| |
| close | back to summary |
|---|---|
| public void close() throws HibernateException Redeclares java. End the session by releasing the JDBC connection and cleaning up.
| |
| createEntityGraph | back to summary |
|---|---|
| public <T> RootGraph Create a new mutable
| |
| createEntityGraph | back to summary |
|---|---|
| public RootGraph Create a new mutable copy of the named
| |
| createEntityGraph | back to summary |
|---|---|
| public <T> RootGraph Create a new mutable copy of the named
| |
| createNamedStoredProcedureQuery | back to summary |
|---|---|
| public ProcedureCall createNamedStoredProcedureQuery(String name) Obtain a
| |
| createStoredProcedureCall | back to summary |
|---|---|
| public ProcedureCall createStoredProcedureCall(String procedureName) Create a
| |
| createStoredProcedureCall | back to summary |
|---|---|
| public ProcedureCall createStoredProcedureCall(String procedureName, Class<?>... resultClasses) Create a
| |
| createStoredProcedureCall | back to summary |
|---|---|
| public ProcedureCall createStoredProcedureCall(String procedureName, String... resultSetMappings) Create a
| |
| createStoredProcedureQuery | back to summary |
|---|---|
| public ProcedureCall createStoredProcedureQuery(String procedureName) Create a
| |
| createStoredProcedureQuery | back to summary |
|---|---|
| public ProcedureCall createStoredProcedureQuery(String procedureName, Class<?>... resultClasses) Create a
| |
| createStoredProcedureQuery | back to summary |
|---|---|
| public ProcedureCall createStoredProcedureQuery(String procedureName, String... resultSetMappings) Create a
| |
| doReturningWork | back to summary |
|---|---|
| public default <T> T doReturningWork(ReturningWork<T> work) throws HibernateException Perform work using the
| |
| doWork | back to summary |
|---|---|
| public default void doWork(Work work) throws HibernateException Perform work using the
| |
| getCriteriaBuilder | back to summary |
|---|---|
| public HibernateCriteriaBuilder getCriteriaBuilder() Obtain a
| |
| getEntityGraph | back to summary |
|---|---|
| public RootGraph Retrieve the named
| |
| getEntityGraphs | back to summary |
|---|---|
| public <T> List Retrieve all named | |
| getFactory | back to summary |
|---|---|
| public SessionFactory getFactory() The factory which created this session. | |
| getJdbcBatchSize | back to summary |
|---|---|
| public Integer getJdbcBatchSize() Get the session-level JDBC batch size for the current session.
| |
| getNamedProcedureCall | back to summary |
|---|---|
| public ProcedureCall getNamedProcedureCall(String name) Obtain a
| |
| getTenantIdentifier | back to summary |
|---|---|
| public String getTenantIdentifier() Obtain the tenant identifier associated with this session.
| |
| getTenantIdentifierValue | back to summary |
|---|---|
| public Object getTenantIdentifierValue() Obtain the tenant identifier associated with this session.
| |
| getTransaction | back to summary |
|---|---|
| public Transaction getTransaction() Get the
| |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Check if the session is currently connected.
| |
| isJoinedToTransaction | back to summary |
|---|---|
| public boolean isJoinedToTransaction() Check if the session is joined to the current transaction.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Check if the session is still open.
| |
| joinTransaction | back to summary |
|---|---|
| public void joinTransaction() Join the currently-active JTA transaction.
| |
| setJdbcBatchSize | back to summary |
|---|---|
| public void setJdbcBatchSize(Integer jdbcBatchSize) Set the session-level JDBC batch size. Override the factory-level JDBC batch size controlled by the configuration property hibernate.jdbc.batch_size.
| |