isOracleDialect() HACK This method is necessary to determine whether code should execute based on Oracle
in use as the RDBMS repository for the platform.
Evicts the object from the Hibernate cache. Call this if you don't
believe you'll need this object in the cache. This is also good to call
if you're doing semi-mass updates.
Parameters: obj -
HACK This method is necessary to determine whether code should execute based on Oracle
in use as the RDBMS repository for the platform. Helps us work around Oracle
JDBC driver bugs.
true if Hibernate dialect for oracle is in use.
Rebuild the SessionFactory with the given Hibernate Configuration.
Parameters: cfg -
registerInterceptor
public static void registerInterceptor(Interceptor interceptor)(Code)
Register a Hibernate interceptor with the current thread.
Every Session opened is opened with this interceptor after registration.
Has no effect if the current Session of the thread is already open,
effective on next close()/getSession().
Searches an ISearchable object for a search term. The search rules are as
follows:
If the searchType is ISearchable.SEARCH_TYPE_PHRASE, then the fields in
the table are searched for the exact phrase given.
If the searchType is ISearchable.SEARCH_TYPE_WORDS_AND or ..._OR, then
the following happens: a- Each word in the searchTerm is extracted and
put into a list of search terms. b- Each search term is surrounded by the
SQL wildcard '%'. So each search term becomes %term%. c- A dynamic query
is generated searching each of the columns for each search term d- The
searchType is used to determine the connector between each search term.
e- The AND will match only if all of the terms appear in a specific
column - cross-column searching using ..._AND will NOT work. In other
words, if your search term is "East Sales", and your search type is
..._AND, a row will be returned if one of the columns contains East and
the same column contains Sales. A row will NOT be returned if one column
only contains East, and another column only contains Sales. This type of
functionality could be obtained using a view that concatenates all of the
searchable columns together into one large column, but this would be
costly and database-specific.
Parameters: searchable - ISearchable to search Parameters: searchTerm - Search Term - see above for rules Parameters: searchType - One of:ISearchable.SEARCH_TYPE_PHRASE,ISearchable.SEARCH_TYPE_WORDS_AND,ISearchable.SEARCH_TYPE_WORDS_OR A list of objects from Hibernate that met the conditionsspecified.