Package org.unidata.mdm.system.dao
Interface BaseDAO
-
public interface BaseDAODao which contain common request to DB
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.sql.ConnectiongetBareConnection()Gets the bare connection from the data source.javax.sql.DataSourcegetDefaultDataSource()Gets the default configured datasource.org.springframework.jdbc.core.JdbcOperationsgetJdbcOperations()GetsJdbcOperationsinstance.org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperationsgetNamedParameterJdbcOperations()GetsNamedParameterJdbcOperationsinstance.voidlock(long value)Locks an arbirtary long number via advisory TX lock.voidlock(java.lang.String name)Locks a table or other DB object, having an OID with the given name via advisory TX lock.
-
-
-
Method Detail
-
getDefaultDataSource
javax.sql.DataSource getDefaultDataSource()
Gets the default configured datasource.- Returns:
- data source
-
getBareConnection
java.sql.Connection getBareConnection()
Gets the bare connection from the data source.- Returns:
- connection
-
getJdbcOperations
org.springframework.jdbc.core.JdbcOperations getJdbcOperations()
GetsJdbcOperationsinstance.- Returns:
JdbcOperationsinstance
-
getNamedParameterJdbcOperations
org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations getNamedParameterJdbcOperations()
GetsNamedParameterJdbcOperationsinstance.- Returns:
NamedParameterJdbcOperationsinstance
-
lock
void lock(java.lang.String name)
Locks a table or other DB object, having an OID with the given name via advisory TX lock. Lock is released with the end of transaction.- Parameters:
name- the table/object name
-
lock
void lock(long value)
Locks an arbirtary long number via advisory TX lock. Lock is released with the end of transaction.- Parameters:
value- the table/object name
-
-