In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what are the methods of Hibernate status, I hope you have something to gain after reading this article, let's discuss it together!
Method SummaryTransactionbeginTransaction ()
Starts a unit of work and returns the associated transaction (Transaction) object. VoidcancelQuery ()
Terminates the execution of the current query. Voidclear ()
Clean up the session completely. Connectionclose ()
Stop the Session by interrupting the JDBC connection and cleaning up it. Connectionconnection ()
Get the JDBC connection for this Session.
If the session uses an active collection release strategy (such as in an environment where the CMT- container controls transactions), the responsibility for closing the connection to this call rests with the current application. Booleancontains (Object object)
Check whether this object instance is associated with the current Session (that is, whether it is in the Persistent state). CriteriacreateCriteria (Class persistentClass)
Creates a new Criteria instance for a given entity class or its superclass. CriteriacreateCriteria (Class persistentClass, String alias)
Create a new Criteria instance based on the given entity class or its superclass and give it an alias. CriteriacreateCriteria (String entityName)
Creates a new Criteria instance based on the name of the given entity (name). CriteriacreateCriteria (String entityName, String alias)
Create a new Criteria instance based on the given entity name (name) and give it (entity class) an alias QuerycreateFilter (Object collection, String queryString)
Creates a new Query instance based on the given collection and filter string (query criteria). QuerycreateQuery (String queryString)
Creates a new HQL instance based on the given Query query criteria. SQLQuerycreateSQLQuery (String queryString)
Creates a new SQL instance based on the given SQLQuery query criteria. Voiddelete (Object object)
Removes an instance of a persistent (persistent) object from the database. Voiddelete (String entityName, Object object)
Removes an instance of a persistent (persistent) object from the database. VoiddisableFilter (String filterName)
Disable the name filter for the current session. Connectiondisconnect ()
Disconnect Session from the current JDBC. FilterenableFilter (String filterName)
Opens the name filter for the current session. Voidevict (Object object)
Clears the current object instance from the session cache. Voidflush ()
Force commit cleanup (flush) Session. Objectget (Class clazz, Serializable id)
Returns an instance of the persistent object based on the given identity and entity class, or null if there is no qualified instance of the persistent object. Objectget (Class clazz, Serializable id, LockMode lockMode)
Returns an instance of the persistent object based on the given identity and entity class, or null if there is no qualified instance of the persistent object. Objectget (String entityName, Serializable id)
Returns a persistent instance that matches the given entity name and identity, or null if there is no corresponding persistent instance. Objectget (String entityName, Serializable id, LockMode lockMode)
Returns the persistence instance that matches the given entity class and identity, or null if there is no corresponding persistence instance. CacheModegetCacheMode ()
Get the current cache mode. LockModegetCurrentLockMode (Object object)
Detects the current locking level of a given object. FiltergetEnabledFilter (String filterName)
Gets a currently allowed filter (filter) based on the name. EntityModegetEntityMode ()
Get the entity schema that is valid for this session. StringgetEntityName (Object object)
Returns the entity name of a persistent object. FlushModegetFlushMode ()
Gets the current refresh commit (flush) mode. SerializablegetIdentifier (Object object)
Gets the identity of the given entity object instance in the Session cache, and throws an exception if the instance is Transient or associated with another Session. QuerygetNamedQuery (String queryName)
Gets an instance of Query (query) from the mapping file based on the name string of the given query. SessiongetSession (EntityMode entityMode)
Start a new valid Session based on the given entity schema (Entity Mode). SessionFactorygetSessionFactory ()
Get the SessionFactory instance that created this session. SessionStatisticsgetStatistics ()
Get the statistics for this session. TransactiongetTransaction ()
Gets the Transaction (transaction) instance associated with this session. Instance associated with this session. After reading this article, I believe you have a certain understanding of "what are the methods of Hibernate status". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.