Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Throws: SOSHibernateInvalidSessionException, SOSHibernateLockAcquisitionException, SOSHibernateQueryException

 

Execute


public

...

int executeUpdateNativeQuery(String sql)      

The method executes statements as UPDATE, INSERT, DELETE..

Implement a wrapper method for the Hibernate executeUpdate.

Returns: The number of entities updated or deleted.

Throws: SOSHibernateInvalidSessionException,SOSHibernateLockAcquisitionException, SOSHibernateQueryException

 

public

...

int executeUpdate(Query<?> query)      

The method executes statements as UPDATE, INSERT, DELETE..

...

To execute the native statements Query param must be a NativeQuery.

Returns: The number of entities updated or deleted.

Throws: SOSHibernateInvalidSessionException, SOSHibernateLockAcquisitionException, SOSHibernateQueryException

...

Throws: SOSHibernateInvalidSessionException, SOSHibernateLockAcquisitionException, SOSHibernateQueryException

 

public void executeUpdate(Query<?> query)      

The method executes statements as UPDATE, INSERT, DELETE..

...