edu.internet2.middleware.grouper.hibernate.HibernateHandlerBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grouper Show documentation
Show all versions of grouper Show documentation
Internet2 Groups Management Toolkit
/**
* Copyright 2014 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* @author mchyzer
* $Id: HibernateHandlerBean.java,v 1.1 2009-02-06 16:33:18 mchyzer Exp $
*/
package edu.internet2.middleware.grouper.hibernate;
/**
*
*/
public class HibernateHandlerBean {
/** if this is a new context, or using one that already existed */
private boolean newContext = false;
/** if the caller will audit the transaction, if not, then you might want to */
private boolean callerWillCreateAudit = false;
/** grouper session */
private HibernateSession hibernateSession;
/**
* get grouper session
* @return grouper session
*/
public HibernateSession getHibernateSession() {
return this.hibernateSession;
}
/**
*
* @param hibernateSession1
*/
public void setHibernateSession(HibernateSession hibernateSession1) {
this.hibernateSession = hibernateSession1;
}
/**
* if this is a new context, or using one that already existed
* @return if new context
*/
public boolean isNewContext() {
return this.newContext;
}
/**
* if this is a new context, or using one that already existed
* @param newContext1
*/
public void setNewContext(boolean newContext1) {
this.newContext = newContext1;
}
/**
* if this is a new context, or using one that already existed
* @return true if caller will audit transaction
*/
public boolean isCallerWillCreateAudit() {
return this.callerWillCreateAudit;
}
/**
* if this is a new context, or using one that already existed
* @param callerWillAuditTransaction1
*/
public void setCallerWillCreateAudit(boolean callerWillAuditTransaction1) {
this.callerWillCreateAudit = callerWillAuditTransaction1;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy