public class BySql extends Object
Modifier and Type | Field and Description |
---|---|
static int |
queryCountQueries
query count exec queries, used for testing
|
Constructor and Description |
---|
BySql(HibernateSession theHibernateSession) |
Modifier and Type | Method and Description |
---|---|
protected void |
copyFieldsTo(edu.internet2.middleware.grouper.hibernate.ByQueryBase byQueryBase)
copy fields from this to the argument
|
BySql |
createQuery(String theHqlQuery)
set the query to run
|
int |
executeSql(String sql,
List<Object> params)
execute some sql
|
protected HibernateSession |
getHibernateSession() |
boolean |
isIgnoreHooks()
if we should ignore hooks
|
static void |
main(String[] args) |
protected edu.internet2.middleware.grouper.hibernate.ByQueryBase |
set(HibernateSession theHibernateSession2)
set the hibernate session to re-use, or null for a new one
byCriteriaStatic().set(hibernateSession2).select(...)
|
BySql |
setGrouperTransactionType(GrouperTransactionType theGrouperTransactionType)
assign a different grouperTransactionType (e.g.
|
edu.internet2.middleware.grouper.hibernate.ByQueryBase |
setIgnoreHooks(boolean theIgnoreHooks)
if we should ignore hooks
|
String |
toString()
string value for error handling
|
public static int queryCountQueries
public BySql(HibernateSession theHibernateSession)
theHibernateSession
- public BySql setGrouperTransactionType(GrouperTransactionType theGrouperTransactionType)
theGrouperTransactionType
- public String toString()
public BySql createQuery(String theHqlQuery)
theHqlQuery
- public int executeSql(String sql, List<Object> params)
sql
- can be insert, update, delete, or ddlparams
- prepared statement paramspublic edu.internet2.middleware.grouper.hibernate.ByQueryBase setIgnoreHooks(boolean theIgnoreHooks)
theIgnoreHooks
- public boolean isIgnoreHooks()
protected void copyFieldsTo(edu.internet2.middleware.grouper.hibernate.ByQueryBase byQueryBase)
byQueryBase
- protected HibernateSession getHibernateSession()
protected edu.internet2.middleware.grouper.hibernate.ByQueryBase set(HibernateSession theHibernateSession2)
theHibernateSession2
- is the session to reusepublic static void main(String[] args)
args
- Copyright © 2016 Internet2. All rights reserved.