polishing

This commit is contained in:
Juergen Hoeller
2009-11-27 01:34:56 +00:00
parent bc06ffb6b8
commit cc0bd730eb
9 changed files with 129 additions and 105 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2008 the original author or authors.
* Copyright 2002-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,7 +19,6 @@ package org.springframework.orm.hibernate3;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Properties;
import javax.sql.DataSource;
import org.hibernate.HibernateException;
@@ -70,7 +69,7 @@ public class LocalDataSourceConnectionProvider implements ConnectionProvider {
* Return the DataSource that this ConnectionProvider wraps.
*/
public DataSource getDataSource() {
return dataSource;
return this.dataSource;
}
/**

View File

@@ -194,7 +194,7 @@ public abstract class SessionFactoryUtils {
* @see HibernateTemplate
*/
public static Session getSession(SessionFactory sessionFactory, boolean allowCreate)
throws DataAccessResourceFailureException, IllegalStateException {
throws DataAccessResourceFailureException, IllegalStateException {
try {
return doGetSession(sessionFactory, null, null, allowCreate);
@@ -251,7 +251,7 @@ public abstract class SessionFactoryUtils {
* @throws IllegalStateException if no thread-bound Session found and allowCreate false
*/
public static Session doGetSession(SessionFactory sessionFactory, boolean allowCreate)
throws HibernateException, IllegalStateException {
throws HibernateException, IllegalStateException {
return doGetSession(sessionFactory, null, null, allowCreate);
}