Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/impl
In directory usw-pr-cvs1:/tmp/cvs-serv12927/cirrus/hibernate/impl
Modified Files:
SessionImpl.java
Log Message:
removed deprecated methods in preparation for version 1.2
Index: SessionImpl.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/impl/SessionImpl.java,v
retrieving revision 1.148
retrieving revision 1.149
diff -C2 -d -r1.148 -r1.149
*** SessionImpl.java 5 Nov 2002 15:24:35 -0000 1.148
--- SessionImpl.java 5 Nov 2002 16:58:14 -0000 1.149
***************
*** 40,44 ****
import cirrus.hibernate.Validatable;
import cirrus.hibernate.helpers.*;
- import cirrus.hibernate.id.IdentifierGenerator;
import cirrus.hibernate.type.AbstractComponentType;
import cirrus.hibernate.type.EntityType;
--- 40,43 ----
***************
*** 474,497 ****
/**
- * Create a persistent object with a generated id.
- */
- public Object create(Class theClass) throws SQLException, HibernateException {
- IdentifierGenerator idGen = getPersister(theClass).getIdentifierGenerator();
- return create( theClass, idGen.generate(this, null) );
- }
-
- /**
- * Create a Object object with the given id.
- */
- public Object create(Class theClass, Serializable id) throws SQLException, HibernateException {
-
- if ( log.isTraceEnabled() ) log.trace( "creating " + theClass.getName() + '#' + id );
-
- Object object = getPersister(theClass).instantiate(id);
- doSave(object, id);
- return object;
- }
-
- /**
* Save a transient object ... an id and is generated, assigned to the given
* object and returned.
--- 473,476 ----
***************
*** 503,527 ****
Serializable id = getPersister(object).getIdentifierGenerator().generate(this, object);
return doSave(object, id);
- }
-
- /**
- * Save a transient object with a manually assigned ID.
- */
- public void insert(Object object) throws SQLException, HibernateException {
-
- if (object==null) throw new NullPointerException("attempted to insert null");
-
- Serializable id = getPersister(object).getIdentifier(object);
-
- if (id==null) throw new NullPointerException("the object passed to insert() had a null identifier");
-
- doSave(object, id);
- }
-
- /**
- * Save a transient object with a manually assigned ID.
- */
- public void insert(Object object, Serializable id) throws SQLException, HibernateException {
- save(object, id);
}
--- 482,485 ----
|