|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.hibernate.BySql
public class BySql
for simple HQL, use this instead of inverse of control. this will do proper error handling and descriptive exception handling. This will by default use the transaction modes GrouperTransactionType.READONLY_OR_USE_EXISTING, and GrouperTransactionType.READ_WRITE_OR_USE_EXISTING depending on if a transaction is needed.
Field Summary | |
---|---|
static int |
queryCountQueries
query count exec queries, used for testing |
Constructor Summary | |
---|---|
BySql(HibernateSession theHibernateSession)
|
Method Summary | |
---|---|
BySql |
createQuery(java.lang.String theHqlQuery)
set the query to run |
int |
executeSql(java.lang.String sql,
java.util.List<java.lang.Object> params)
execute some sql |
boolean |
isIgnoreHooks()
if we should ignore hooks |
static void |
main(java.lang.String[] args)
|
BySql |
setGrouperTransactionType(GrouperTransactionType theGrouperTransactionType)
assign a different grouperTransactionType (e.g. for autonomous transactions) |
edu.internet2.middleware.grouper.hibernate.ByQueryBase |
setIgnoreHooks(boolean theIgnoreHooks)
if we should ignore hooks |
java.lang.String |
toString()
string value for error handling |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int queryCountQueries
Constructor Detail |
---|
public BySql(HibernateSession theHibernateSession)
theHibernateSession
- Method Detail |
---|
public BySql setGrouperTransactionType(GrouperTransactionType theGrouperTransactionType)
theGrouperTransactionType
-
public java.lang.String toString()
toString
in class java.lang.Object
public BySql createQuery(java.lang.String theHqlQuery)
theHqlQuery
-
public int executeSql(java.lang.String sql, java.util.List<java.lang.Object> params)
sql
- can be insert, update, delete, or ddlparams
- prepared statement params
public edu.internet2.middleware.grouper.hibernate.ByQueryBase setIgnoreHooks(boolean theIgnoreHooks)
theIgnoreHooks
-
public boolean isIgnoreHooks()
public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |