You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(178) |
Feb
(169) |
Mar
(286) |
Apr
(117) |
May
(98) |
Jun
(68) |
Jul
(63) |
Aug
(121) |
Sep
(88) |
Oct
(124) |
Nov
(2) |
Dec
(111) |
| 2007 |
Jan
(224) |
Feb
(69) |
Mar
(10) |
Apr
(72) |
May
(7) |
Jun
(21) |
Jul
(33) |
Aug
(35) |
Sep
(12) |
Oct
(22) |
Nov
(5) |
Dec
(6) |
| 2008 |
Jan
(2) |
Feb
(10) |
Mar
(39) |
Apr
(58) |
May
(34) |
Jun
(9) |
Jul
(27) |
Aug
(10) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
|
From: Chris M. <cm...@us...> - 2007-01-19 19:36:09
|
User: cmicali Date: 07/01/19 11:36:09 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/Web/Bin - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:49
|
User: cmicali Date: 07/01/19 11:35:45 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/mda/src/uml - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:38
|
User: cmicali Date: 07/01/19 11:35:36 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/mda/conf/mappings - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:36
|
User: cmicali Date: 07/01/19 11:35:30 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/mda/conf - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:29
|
User: cmicali Date: 07/01/19 11:35:30 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/mda/src - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:18
|
User: cmicali Date: 07/01/19 11:35:13 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/Web - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:18
|
User: cmicali Date: 07/01/19 11:35:12 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/SchemaExport - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:14
|
User: cmicali Date: 07/01/19 11:35:11 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/Common - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:13
|
User: cmicali Date: 07/01/19 11:35:12 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/Core - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:13
|
User: cmicali Date: 07/01/19 11:35:12 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/Membership - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:13
|
User: cmicali Date: 07/01/19 11:35:12 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/mda - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:13
|
User: cmicali Date: 07/01/19 11:35:12 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/Lib - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:13
|
User: cmicali Date: 07/01/19 11:35:12 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files/Tests - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:04
|
User: cmicali Date: 07/01/19 11:35:02 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Solution Wizard Files - New directory |
|
From: Chris M. <cm...@us...> - 2007-01-19 19:35:04
|
User: cmicali Date: 07/01/19 11:35:03 plugins/etc/andromda-dotnet/AndroMDA.VS80AddIn/AndroMDA.VS80AddIn/Welcome Wizard Files - New directory |
|
From: Vance K. <va...@us...> - 2007-01-19 14:35:55
|
User: vancek
Date: 07/01/19 06:35:54
Modified: andromda-ejb3/src/site/axdoc howto6.xml howto18.xml
howto11.xml howto1.xml howto8.xml howto17.xml
howto7.xml howto13.xml howto10.xml howto5.xml
howto9.xml howto16.xml howto19.xml howto4.xml
howto3.xml howto2.xml howto12.xml howto20.xml
andromda-ejb3 pom.xml .cvsignore
. pom.xml
Added: andromda-ejb3/src/site/resources/howto/org/andromda/test/howto17/a
RentalServiceException.java PersonDaoBase.java
RentalException.java CarDao.java Car.java
RentalServiceBean.java PersonDao.java
RentalServiceBase.java andromda.xml
ServiceDelegateBase.java Person.java
CarDaoBase.java CarEmbeddable.java persistence.xml
CarType.java CarDaoImpl.java jboss.xml
ejb3-entity-cache-service.xml
PersonDaoException.java CarDaoException.java
ejb-jar.xml RentalServiceDelegate.java
RentalServiceRemote.java PersonDaoImpl.java
andromda-ejb3/src/site/resources/howto/org/andromda/test/howto6/a
CarListItem.java CarDetails.java
andromda-ejb3/src/site/resources/howto/org/andromda/test/howto16/a/crud
ManagePerson.java PersonForm.java ManageCar.java
car-crud.jsp person_help.jsp person-crud.jsp
car_help.jsp CarForm.java
andromda-ejb3/src/site/resources/howto HowToModel-src.zip
HowToPictures.zip HowToModel.xml.zip
andromda-ejb3/conf/howto andromda.xml
andromda-ejb3/src/site/resources/howto/org/andromda/test/howto8/b
howtomodel-login-config.xml jboss-app.xml
howtomodel-login-service.xml auth.conf
Removed: andromda-ejb3/src/site/resources/images/org/andromda/test/1/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/1/d
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/19/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/1/f
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/1/h
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/6/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/8/b
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/8/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/1/g
uml.gif
andromda-ejb3/src/site/resources HowToModel-src.zip
HowToModel.xmi
andromda-ejb3/src/site/resources/images/org/andromda/test/16/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/2/e
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/2/c
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/1/b
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/1/c
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/18/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/10/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/20/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/2/d
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/13/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/2/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/17/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/5/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/9/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/9/b
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/11/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/3/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/7/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/1/e
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/4/a
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/3/b
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/2/b
uml.gif
andromda-ejb3/src/site/resources/images/org/andromda/test/4/b
uml.gif
Log:
restructure docs to use generate-cartridge-howto-artifacts to extract images and run andromda over howto model
Revision Changes Path
1.1 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto17/a/RentalServiceException.java
Index: RentalServiceException.java
===================================================================
// license-header java merge-point
//
// Attention: Generated code! Do not modify by hand!
// Generated by: DefaultServiceException.vsl in andromda-ejb3-cartridge.
//
package org.andromda.howto2.rental;
import org.apache.commons.beanutils.PropertyUtils;
/**
* The default exception thrown for unexpected errors occurring
* within {@link org.andromda.howto2.rental.RentalService}.
*/
public class RentalServiceException
extends java.lang.RuntimeException
{
/**
* The serial version UID of this class. Needed for serialization.
*/
private static final long serialVersionUID = 7590515959674003678L;
/**
* The default constructor for <code>RentalServiceException</code>.
*/
public RentalServiceException()
{}
/**
* Constructs a new instance of <code>RentalServiceException</code>.
*
* @param throwable the parent Throwable
*/
public RentalServiceException(Throwable throwable)
{
super(findRootCause(throwable));
}
/**
* Constructs a new instance of <code>RentalServiceException</code>.
*
* @param message the throwable message.
*/
public RentalServiceException(String message)
{
super(message);
}
/**
* Constructs a new instance of <code>RentalServiceException</code>.
*
* @param message the throwable message.
* @param throwable the parent of this Throwable.
*/
public RentalServiceException(String message, Throwable throwable)
{
super(message, findRootCause(throwable));
}
/**
* Finds the root cause of the parent exception
* by traveling up the exception tree
*/
private static Throwable findRootCause(Throwable th)
{
if (th != null)
{
// Reflectively get any exception causes.
try
{
Throwable targetException = null;
// java.lang.reflect.InvocationTargetException
String exceptionProperty = "targetException";
if (PropertyUtils.isReadable(th, exceptionProperty))
{
targetException = (Throwable)PropertyUtils.getProperty(th, exceptionProperty);
}
else
{
exceptionProperty = "causedByException";
//javax.ejb.EJBException
if (PropertyUtils.isReadable(th, exceptionProperty))
{
targetException = (Throwable)PropertyUtils.getProperty(th, exceptionProperty);
}
}
if (targetException != null)
{
th = targetException;
}
}
catch (Exception ex)
{
// just print the exception and continue
ex.printStackTrace();
}
if (th.getCause() != null)
{
th = th.getCause();
th = findRootCause(th);
}
}
return th;
}
}
1.1 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto17/a/PersonDaoBase.java
Index: PersonDaoBase.java
===================================================================
// license-header java merge-point
//
// Attention: Generated code! Do not modify by hand!
// Generated by: SessionDaoBase.vsl in andromda-ejb3-cartridge.
//
package org.andromda.howto2.rental;
/**
* <p>
* Base EJB3 DAO Class: is able to create, update, remove, load, and find
* objects of type <code>org.andromda.howto2.rental.Person</code>.
* </p>
*
* @see org.andromda.howto2.rental.PersonDao
*/
@javax.ejb.TransactionAttribute(javax.ejb.TransactionAttributeType.REQUIRED)
@javax.ejb.Local({org.andromda.howto2.rental.PersonDao.class})
public abstract class PersonDaoBase
implements org.andromda.howto2.rental.PersonDao
{
// ------ Session Context Injection ------
@javax.annotation.Resource
protected javax.ejb.SessionContext context;
// ------ Persistence Context Injection --------
/**
* Inject persistence context howtomodelcaching
*/
@javax.persistence.PersistenceContext(unitName = "howtomodelcaching")
protected javax.persistence.EntityManager emanager;
/**
* @see org.andromda.howto2.rental.PersonDao#load(int,)
*/
public Object load(final int transform, final java.lang.Long id)
throws org.andromda.howto2.rental.PersonDaoException
{
if (id == null)
{
throw new IllegalArgumentException(
"Person.load - 'id' can not be null");
}
try
{
final Object entity = (org.andromda.howto2.rental.Person)emanager.find(org.andromda.howto2.rental.Person.class, id);
return transformEntity(transform, (org.andromda.howto2.rental.Person)entity);
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#load()
*/
public org.andromda.howto2.rental.Person load( final java.lang.Long id)
throws org.andromda.howto2.rental.PersonDaoException
{
return (org.andromda.howto2.rental.Person)this.load(TRANSFORM_NONE, id);
}
/**
* @see org.andromda.howto2.rental.PersonDao#loadAll()
*/
@SuppressWarnings({"unchecked"})
public java.util.Collection<org.andromda.howto2.rental.Person> loadAll()
throws org.andromda.howto2.rental.PersonDaoException
{
return (java.util.Collection<org.andromda.howto2.rental.Person>)this.loadAll(TRANSFORM_NONE);
}
/**
* @see org.andromda.howto2.rental.PersonDao#loadAll(int)
*/
public java.util.Collection loadAll(final int transform)
throws org.andromda.howto2.rental.PersonDaoException
{
try
{
javax.persistence.Query query = emanager.createNamedQuery("Person.findAll");
java.util.List<org.andromda.howto2.rental.Person> results = query.getResultList();
this.transformEntities(transform, results);
return results;
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#create(org.andromda.howto2.rental.Person)
*/
public org.andromda.howto2.rental.Person create(org.andromda.howto2.rental.Person person)
throws org.andromda.howto2.rental.PersonDaoException
{
return (org.andromda.howto2.rental.Person)this.create(TRANSFORM_NONE, person);
}
/**
* @see org.andromda.howto2.rental.PersonDao#create(int transform, org.andromda.howto2.rental.Person)
*/
public Object create(final int transform, final org.andromda.howto2.rental.Person person)
throws org.andromda.howto2.rental.PersonDaoException
{
if (person == null)
{
throw new IllegalArgumentException(
"Person.create - 'person' can not be null");
}
try
{
emanager.persist(person);
emanager.flush();
return this.transformEntity(transform, person);
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#create(java.util.Collection<org.andromda.howto2.rental.Person>)
*/
@SuppressWarnings({"unchecked"})
public java.util.Collection<org.andromda.howto2.rental.Person> create(final java.util.Collection<org.andromda.howto2.rental.Person> entities)
throws org.andromda.howto2.rental.PersonDaoException
{
return create(TRANSFORM_NONE, entities);
}
/**
* @see org.andromda.howto2.rental.PersonDao#create(int, java.util.Collection<org.andromda.howto2.rental.Person>)
*/
@SuppressWarnings({"unchecked"})
public java.util.Collection create(final int transform, final java.util.Collection<org.andromda.howto2.rental.Person> entities)
throws org.andromda.howto2.rental.PersonDaoException
{
if (entities == null)
{
throw new IllegalArgumentException(
"Person.create - 'entities' can not be null");
}
java.util.Collection results = new java.util.ArrayList();
try
{
for (final java.util.Iterator entityIterator = entities.iterator(); entityIterator.hasNext();)
{
results.add(create(transform, (org.andromda.howto2.rental.Person)entityIterator.next()));
}
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
return results;
}
/**
* @see org.andromda.howto2.rental.PersonDao#create(java.lang.String, java.util.Date)
*/
public org.andromda.howto2.rental.Person create(
java.lang.String name,
java.util.Date birthDate)
throws org.andromda.howto2.rental.PersonDaoException
{
return (org.andromda.howto2.rental.Person)this.create(TRANSFORM_NONE, name, birthDate);
}
/**
* @see org.andromda.howto2.rental.PersonDao#create(int, java.lang.String, java.util.Date)
*/
public Object create(
final int transform,
java.lang.String name,
java.util.Date birthDate)
throws org.andromda.howto2.rental.PersonDaoException
{
org.andromda.howto2.rental.Person entity = new org.andromda.howto2.rental.Person();
entity.setName(name);
entity.setBirthDate(birthDate);
return this.create(transform, entity);
}
/**
* @see org.andromda.howto2.rental.PersonDao#update(org.andromda.howto2.rental.Person)
*/
public void update(org.andromda.howto2.rental.Person person)
throws org.andromda.howto2.rental.PersonDaoException
{
if (person == null)
{
throw new IllegalArgumentException(
"Person.update - 'person' can not be null");
}
try
{
emanager.merge(person);
emanager.flush();
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#update(java.util.Collection<org.andromda.howto2.rental.Person>)
*/
public void update(final java.util.Collection<org.andromda.howto2.rental.Person> entities)
throws org.andromda.howto2.rental.PersonDaoException
{
if (entities == null)
{
throw new IllegalArgumentException(
"Person.update - 'entities' can not be null");
}
try
{
for (final java.util.Iterator entityIterator = entities.iterator(); entityIterator.hasNext();)
{
update((org.andromda.howto2.rental.Person)entityIterator.next());
}
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#remove(org.andromda.howto2.rental.Person)
*/
public void remove(org.andromda.howto2.rental.Person person)
throws org.andromda.howto2.rental.PersonDaoException
{
if (person == null)
{
throw new IllegalArgumentException(
"Person.remove - 'person' can not be null");
}
try
{
emanager.remove(person);
emanager.flush();
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#remove(java.lang.Long)
*/
public void remove(java.lang.Long id)
throws org.andromda.howto2.rental.PersonDaoException
{
if (id == null)
{
throw new IllegalArgumentException(
"Person.remove - 'id' can not be null");
}
try
{
final org.andromda.howto2.rental.Person entity = this.load(id);
if (entity != null)
{
this.remove(entity);
}
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#remove(java.util.Collection<org.andromda.howto2.rental.Person>)
*/
public void remove(java.util.Collection<org.andromda.howto2.rental.Person> entities)
throws org.andromda.howto2.rental.PersonDaoException
{
if (entities == null)
{
throw new IllegalArgumentException(
"Person.remove - 'entities' can not be null");
}
try
{
for (final java.util.Iterator entityIterator = entities.iterator(); entityIterator.hasNext();)
{
remove((org.andromda.howto2.rental.Person)entityIterator.next());
}
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#findAll()
*/
public java.util.List findAll()
throws org.andromda.howto2.rental.PersonDaoException
{
return this.findAll(TRANSFORM_NONE);
}
/**
* @see org.andromda.howto2.rental.PersonDao#findAll(java.lang.String)
*/
public java.util.List findAll(final java.lang.String queryString)
throws org.andromda.howto2.rental.PersonDaoException
{
return this.findAll(TRANSFORM_NONE, queryString);
}
/**
* @see org.andromda.howto2.rental.PersonDao#findAll(int)
*/
public java.util.List findAll(final int transform)
throws org.andromda.howto2.rental.PersonDaoException
{
try
{
javax.persistence.Query queryObject = emanager.createNamedQuery("Person.findAll");
java.util.List results = queryObject.getResultList();
transformEntities(transform, results);
return results;
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#findAll(int, java.lang.String)
*/
public java.util.List findAll(final int transform, final java.lang.String queryString)
throws org.andromda.howto2.rental.PersonDaoException
{
try
{
javax.persistence.Query queryObject = emanager.createQuery(queryString);
java.util.List results = queryObject.getResultList();
transformEntities(transform, results);
return results;
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#findByName(java.lang.String)
*/
public java.lang.String findByName(java.lang.String name)
throws org.andromda.howto2.rental.PersonDaoException
{
return (java.lang.String)this.findByName(TRANSFORM_NONE, name);
}
/**
* @see org.andromda.howto2.rental.PersonDao#findByName(java.lang.String, java.lang.String)
*/
public java.lang.String findByName(final java.lang.String queryString, final java.lang.String name)
throws org.andromda.howto2.rental.PersonDaoException
{
return (java.lang.String)this.findByName(TRANSFORM_NONE, queryString, name);
}
/**
* @see org.andromda.howto2.rental.PersonDao#findByName(int, java.lang.String)
*/
public Object findByName(final int transform, final java.lang.String name)
throws org.andromda.howto2.rental.PersonDaoException
{
try
{
javax.persistence.Query queryObject = emanager.createNamedQuery("Person.findByName");
queryObject.setParameter("name", name);
Object result = queryObject.getSingleResult();
result = transformEntity(transform, (org.andromda.howto2.rental.Person)result);
return result;
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#findByName(int, java.lang.String, java.lang.String)
*/
public Object findByName(final int transform, final java.lang.String queryString, final java.lang.String name)
throws org.andromda.howto2.rental.PersonDaoException
{
try
{
javax.persistence.Query queryObject = emanager.createQuery(queryString);
queryObject.setParameter("name", name);
Object result = queryObject.getSingleResult();
result = transformEntity(transform, (org.andromda.howto2.rental.Person)result);
return result;
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#findByNameOrBirthDate(java.lang.String, java.util.Date)
*/
public java.util.Collection findByNameOrBirthDate(java.lang.String name, java.util.Date birthDate)
throws org.andromda.howto2.rental.PersonDaoException
{
return this.findByNameOrBirthDate(TRANSFORM_NONE, name, birthDate);
}
/**
* @see org.andromda.howto2.rental.PersonDao#findByNameOrBirthDate(java.lang.String, java.lang.String, java.util.Date)
*/
public java.util.Collection findByNameOrBirthDate(final java.lang.String queryString, final java.lang.String name, final java.util.Date birthDate)
throws org.andromda.howto2.rental.PersonDaoException
{
return this.findByNameOrBirthDate(TRANSFORM_NONE, queryString, name, birthDate);
}
/**
* @see org.andromda.howto2.rental.PersonDao#findByNameOrBirthDate(int, java.lang.String, java.util.Date)
*/
public java.util.Collection findByNameOrBirthDate(final int transform, final java.lang.String name, final java.util.Date birthDate)
throws org.andromda.howto2.rental.PersonDaoException
{
try
{
javax.persistence.Query queryObject = emanager.createNamedQuery("Person.findByNameOrBirthDate");
queryObject.setParameter("name", name);
queryObject.setParameter("birthDate", birthDate, javax.persistence.TemporalType.DATE);
java.util.List results = queryObject.getResultList();
transformEntities(transform, results);
return results;
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* @see org.andromda.howto2.rental.PersonDao#findByNameOrBirthDate(int, java.lang.String, java.lang.String, java.util.Date)
*/
public java.util.Collection findByNameOrBirthDate(final int transform, final java.lang.String queryString, final java.lang.String name, final java.util.Date birthDate)
throws org.andromda.howto2.rental.PersonDaoException
{
try
{
javax.persistence.Query queryObject = emanager.createQuery(queryString);
queryObject.setParameter("name", name);
queryObject.setParameter("birthDate", birthDate, javax.persistence.TemporalType.DATE);
java.util.List results = queryObject.getResultList();
transformEntities(transform, results);
return results;
}
catch (Exception ex)
{
throw new org.andromda.howto2.rental.PersonDaoException(ex);
}
}
/**
* Allows transformation of entities into value objects
* (or something else for that matter), when the <code>transform</code>
* flag is set to one of the constants defined in <code>org.andromda.howto2.rental.PersonDao</code>, please note
* that the {@link #TRANSFORM_NONE} constant denotes no transformation, so the entity itself
* will be returned.
*
* If the integer argument value is unknown {@link #TRANSFORM_NONE} is assumed.
*
* @param transform one of the constants declared in {@link org.andromda.howto2.rental.PersonDao}
* @param entity an entity that was found
* @return the transformed entity (i.e. new value object, etc)
* @see #transformEntities(int,java.util.Collection)
*/
protected Object transformEntity(final int transform, final org.andromda.howto2.rental.Person entity)
{
Object target = null;
if (entity != null)
{
switch (transform)
{
case TRANSFORM_NONE : // fall-through
default:
target = entity;
}
}
return target;
}
/**
* Transforms a collection of entities using the
* {@link #transformEntity(int,org.andromda.howto2.rental.Person)}
* method. This method does not instantiate a new collection.
* <p/>
* This method is to be used internally only.
*
* @param transform one of the constants declared in <code>org.andromda.howto2.rental.PersonDao</code>
* @param entities the collection of entities to transform
* @return the same collection as the argument, but this time containing the transformed entities
* @see #transformEntity(int,org.andromda.howto2.rental.Person)
*/
protected void transformEntities(final int transform, final java.util.Collection entities)
{
switch (transform)
{
case TRANSFORM_NONE : // fall-through
default:
// do nothing;
}
}
}
1.1 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto17/a/RentalException.java
Index: RentalException.java
===================================================================
// license-header java merge-point
//
// Attention: Generated code! Do not modify by hand!!
// Generated by: ApplicationException.vsl in andromda-java-cartridge.
//
package org.andromda.howto2.rental;
import org.apache.commons.beanutils.PropertyUtils;
/**
*
*/
public class RentalException
extends java.lang.Exception
{
/**
* The default constructor.
*/
public RentalException()
{}
/**
* Constructs a new instance of RentalException
*
* @param throwable the parent Throwable
*/
public RentalException(Throwable throwable)
{
super(findRootCause(throwable));
}
/**
* Constructs a new instance of RentalException
*
* @param message the throwable message.
*/
public RentalException(String message)
{
super(message);
}
/**
* Constructs a new instance of RentalException
*
* @param message the throwable message.
* @param throwable the parent of this Throwable.
*/
public RentalException(String message, Throwable throwable)
{
super(message, findRootCause(throwable));
}
/**
* Finds the root cause of the parent exception
* by traveling up the exception tree
*/
private static Throwable findRootCause(Throwable th)
{
if (th != null)
{
// Lets reflectively get any JMX or EJB exception causes.
try
{
Throwable targetException = null;
// java.lang.reflect.InvocationTargetException
// or javax.management.ReflectionException
String exceptionProperty = "targetException";
if (PropertyUtils.isReadable(th, exceptionProperty))
{
targetException = (Throwable)PropertyUtils.getProperty(th, exceptionProperty);
}
else
{
exceptionProperty = "causedByException";
//javax.ejb.EJBException
if (PropertyUtils.isReadable(th, exceptionProperty))
{
targetException = (Throwable)PropertyUtils.getProperty(th, exceptionProperty);
}
}
if (targetException != null)
{
th = targetException;
}
}
catch (Exception ex)
{
// just print the exception and continue
ex.printStackTrace();
}
if (th.getCause() != null)
{
th = th.getCause();
th = findRootCause(th);
}
}
return th;
}
}
1.1 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto17/a/CarDao.java
Index: CarDao.java
===================================================================
// license-header java merge-point
//
// Attention: Generated code! Do not modify by hand!
// Generated by: SessionDaoLocal.vsl in andromda-ejb3-cartridge.
//
package org.andromda.howto2.rental;
/**
* @see org.andromda.howto2.rental.Car
*/
public interface CarDao
{
/**
* This constant is used as a transformation flag; entities can be converted automatically into value objects
* or other types, different methods in a class implementing this interface support this feature: look for
* an <code>int</code> parameter called <code>transform</code>.
* <p/>
* This specific flag denotes no transformation will occur.
*/
public final static int TRANSFORM_NONE = 0;
/**
* Loads an instance of org.andromda.howto2.rental.Car from the persistent store.
* @param id the identifier of the entity to load.
* @throws org.andromda.howto2.rental.CarDaoException
*/
public org.andromda.howto2.rental.Car load(java.lang.Long id)
throws org.andromda.howto2.rental.CarDaoException;
/**
* <p>
* Does the same thing as {@link #load(java.lang.Long)} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* the returned entity will <strong>NOT</strong> be transformed. If this flag is any of the other constants
* defined in this class then the result <strong>WILL BE</strong> passed through an operation which can
* optionally transform the entity (into a value object for example). By default, transformation does
* not occur.
* </p>
*
* @param id the identifier of the entity to load.
* @return either the entity or the object transformed from the entity.
* @throws org.andromda.howto2.rental.CarDaoException
*/
public Object load(int transform, java.lang.Long id)
throws org.andromda.howto2.rental.CarDaoException;
/**
* Loads all entities of type {@link org.andromda.howto2.rental.Car}.
*
* @return the loaded entities.
* @throws org.andromda.howto2.rental.CarDaoException
*/
public java.util.Collection<org.andromda.howto2.rental.Car> loadAll()
throws org.andromda.howto2.rental.CarDaoException;
/**
* <p>
* Does the same thing as {@link #loadAll()} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* the returned entity will <strong>NOT</strong> be transformed. If this flag is any of the other constants
* defined here then the result <strong>WILL BE</strong> passed through an operation which can optionally
* transform the entity (into a value object for example). By default, transformation does
* not occur.
* </p>
*
* @param transform the flag indicating what transformation to use.
* @return the loaded entities.
* @throws org.andromda.howto2.rental.CarDaoException
*/
public java.util.Collection loadAll(final int transform)
throws org.andromda.howto2.rental.CarDaoException;
/**
* Creates an instance of org.andromda.howto2.rental.Car and adds it to the persistent store.
* @throws org.andromda.howto2.rental.CarDaoException
*/
public org.andromda.howto2.rental.Car create(org.andromda.howto2.rental.Car car)
throws org.andromda.howto2.rental.CarDaoException;
/**
* <p>
* Does the same thing as {@link #create(org.andromda.howto2.rental.Car)} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* the returned entity will <strong>NOT</strong> be transformed. If this flag is any of the other constants
* defined here then the result <strong>WILL BE</strong> passed through an operation which can optionally
* transform the entity (into a value object for example). By default, transformation does
* not occur.
* </p>
*
* @throws org.andromda.howto2.rental.CarDaoException
*/
public Object create(int transform, org.andromda.howto2.rental.Car car)
throws org.andromda.howto2.rental.CarDaoException;
/**
* Creates a new instance of org.andromda.howto2.rental.Car and adds
* from the passed in <code>entities</code> collection
*
* @param entities the collection of org.andromda.howto2.rental.Car
* instances to create.
*
* @return the created instances.
* @throws org.andromda.howto2.rental.CarDaoException
*/
public java.util.Collection<org.andromda.howto2.rental.Car> create(java.util.Collection<org.andromda.howto2.rental.Car> entities)
throws org.andromda.howto2.rental.CarDaoException;
/**
* <p>
* Does the same thing as {@link #create(org.andromda.howto2.rental.Car)} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* the returned entity will <strong>NOT</strong> be transformed. If this flag is any of the other constants
* defined here then the result <strong>WILL BE</strong> passed through an operation which can optionally
* transform the entities (into value objects for example). By default, transformation does
* not occur.
* </p>
*
* @throws org.andromda.howto2.rental.CarDaoException
*/
public java.util.Collection create(int transform, java.util.Collection<org.andromda.howto2.rental.Car> entities)
throws org.andromda.howto2.rental.CarDaoException;
/**
* <p>
* Creates a new <code>org.andromda.howto2.rental.Car</code>
* instance from <strong>all</strong> attributes and adds it to
* the persistent store.
* </p>
*/
public org.andromda.howto2.rental.Car create(
java.lang.String serial,
java.lang.String name,
org.andromda.howto2.rental.CarType type)
throws org.andromda.howto2.rental.CarDaoException;
/**
* <p>
* Does the same thing as {@link #create(java.lang.String, java.lang.String, org.andromda.howto2.rental.CarType)} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* the returned entity will <strong>NOT</strong> be transformed. If this flag is any of the other constants
* defined here then the result <strong>WILL BE</strong> passed through an operation which can optionally
* transform the entity (into a value object for example). By default, transformation does
* not occur.
* </p>
*
* @throws org.andromda.howto2.rental.CarDaoException
*/
public Object create(
int transform,
java.lang.String serial,
java.lang.String name,
org.andromda.howto2.rental.CarType type)
throws org.andromda.howto2.rental.CarDaoException;
/**
* <p>
* Creates a new <code>org.andromda.howto2.rental.Car</code>
* instance from only <strong>required</strong> properties (attributes
* and association ends) and adds it to the persistent store.
* </p>
*
* @throws org.andromda.howto2.rental.CarDaoException
*/
public org.andromda.howto2.rental.Car create(
java.lang.String name,
org.andromda.howto2.rental.Person owner,
java.lang.String serial,
org.andromda.howto2.rental.CarType type)
throws org.andromda.howto2.rental.CarDaoException;
/**
* <p>
* Does the same thing as {@link #create(java.lang.String, java.lang.String, org.andromda.howto2.rental.CarType)} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* the returned entity will <strong>NOT</strong be transformed. If this flag is any of the other constants
* defined here then the result <strong>WILL BE</strong> passed through an operation which can optionally
* transform the entity (into a value object for example). By default, transformation does
* not occur.
* </p>
*
* @throws org.andromda.howto2.rental.CarDaoException
*/
public Object create(
int transform,
java.lang.String name,
org.andromda.howto2.rental.Person owner,
java.lang.String serial,
org.andromda.howto2.rental.CarType type)
throws org.andromda.howto2.rental.CarDaoException;
/**
* Updates the <code>car</code> instance in the persistent store.
* @throws org.andromda.howto2.rental.CarDaoException
*/
public void update(org.andromda.howto2.rental.Car car)
throws org.andromda.howto2.rental.CarDaoException;
/**
* Updates all instances in the <code>entities</code> collection in the persistent store.
* @throws org.andromda.howto2.rental.CarDaoException
*/
public void update(java.util.Collection<org.andromda.howto2.rental.Car> entities)
throws org.andromda.howto2.rental.CarDaoException;
/**
* Removes the instance of org.andromda.howto2.rental.Car from the persistent store.
* @throws org.andromda.howto2.rental.CarDaoException
*/
public void remove(org.andromda.howto2.rental.Car car)
throws org.andromda.howto2.rental.CarDaoException;
/**
* Removes the instance of org.andromda.howto2.rental.Car having the given
* <code>identifier</code> from the persistent store.
* @throws org.andromda.howto2.rental.CarDaoException
*/
public void remove(java.lang.Long id)
throws org.andromda.howto2.rental.CarDaoException;
/**
* Removes all entities in the given <code>entities<code> collection.
* @throws org.andromda.howto2.rental.CarDaoException
*/
public void remove(java.util.Collection<org.andromda.howto2.rental.Car> entities)
throws org.andromda.howto2.rental.CarDaoException;
/**
*
*/
public java.util.List findByType(org.andromda.howto2.rental.CarType type)
throws org.andromda.howto2.rental.CarDaoException;
/**
* <p>
* Does the same thing as {@link #findByType(org.andromda.howto2.rental.CarType)} with an
* additional argument called <code>queryString</code>. This <code>queryString</code>
* argument allows you to override the query string defined in {@link #findByType(org.andromda.howto2.rental.CarType)}.
* </p>
*/
public java.util.List findByType(String queryString, org.andromda.howto2.rental.CarType type)
throws org.andromda.howto2.rental.CarDaoException;
/**
* <p>
* Does the same thing as {@link #findByType(org.andromda.howto2.rental.CarType)} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* finder results will <strong>NOT</strong> be transformed during retrieval.
* If this flag is any of the other constants defined here
* then finder results <strong>WILL BE</strong> passed through an operation which can optionally
* transform the entities (into value objects for example). By default, transformation does
* not occur.
* </p>
*/
public java.util.List findByType(int transform, org.andromda.howto2.rental.CarType type)
throws org.andromda.howto2.rental.CarDaoException;
/**
* <p>
* Does the same thing as {@link #findByType(boolean, org.andromda.howto2.rental.CarType)} with an
* additional argument called <code>queryString</code>. This <code>queryString</code>
* argument allows you to override the query string defined in {@link #findByType(int, org.andromda.howto2.rental.CarType type)}.
* </p>
*/
public java.util.List findByType(int transform, String queryString, org.andromda.howto2.rental.CarType type)
throws org.andromda.howto2.rental.CarDaoException;
/**
*
*/
public boolean allCarsAreRented();
}
1.1 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto17/a/Car.java
Index: Car.java
===================================================================
// license-header java merge-point
//
// Attention: Generated code! Do not modify by hand!
// Generated by: Entity.vsl in andromda-ejb3-cartridge.
//
package org.andromda.howto2.rental;
/**
* Autogenerated POJO EJB3 implementation class for Car.
*
* Add any manual implementation within this class. This class will NOT
* be overwritten with incremental changes.
*
*
*
*/
@javax.persistence.Entity
// Uncomment to enable seam component name
// @org.jboss.seam.annotations.Name("car")
// Uncomment to set specific component scope type
//@org.jboss.seam.annotations.Scope(org.jboss.seam.ScopeType.CONVERSATION)
@javax.persistence.Table(name = "CAR")
// Uncomment to enable entity listener for Car
// @javax.persistence.EntityListeners({org.andromda.howto2.rental.CarListener.class})
@org.hibernate.annotations.Cache(usage = org.hibernate.annotations.CacheConcurrencyStrategy.TRANSACTIONAL)
@javax.persistence.NamedQueries
({
@javax.persistence.NamedQuery(name = "Car.findAll", query = "select car from Car AS car"),
@javax.persistence.NamedQuery(name = "Car.findByType", query = "from Car as car where car.type = :type")
})
public class Car
extends org.andromda.howto2.rental.CarEmbeddable
implements java.io.Serializable
{
/**
* The serial version UID of this class required for serialization.
*/
private static final long serialVersionUID = 8776337268494473937L;
// --------------- constructors -----------------
/**
* Default Car constructor
*/
public Car()
{
super();
}
/**
* Implementation for the constructor with all POJO attributes except auto incremented identifiers.
* This method sets all POJO fields defined in this/super class to the
* values provided by the parameters.
*
*/
public Car(java.lang.String serial, java.lang.String name, org.andromda.howto2.rental.CarType type)
{
super(serial, name, type);
}
/**
* Constructor with all POJO attribute values and CMR relations.
*
* @param serial Value for the serial property
* @param name Value for the name property
* @param type Value for the type property
* @param owner Value for the owner relation role
*/
public Car(java.lang.String serial, java.lang.String name, org.andromda.howto2.rental.CarType type, org.andromda.howto2.rental.Person owner)
{
super(serial, name, type, owner);
}
// -------------- Entity Methods -----------------
/**
*
*/
@javax.persistence.Transient
public boolean isRented()
{
// TODO put your implementation here.
return false;
}
/**
*
*/
@javax.persistence.Transient
public static boolean allCarsAreRented()
{
// TODO put your implementation here.
return false;
}
// --------------- Lifecycle callbacks -----------------
}
1.1 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto17/a/RentalServiceBean.java
Index: RentalServiceBean.java
===================================================================
// license-header java merge-point
//
// Generated by: SessionBeanImpl.vsl in andromda-ejb3-cartridge.
//
package org.andromda.howto2.rental;
/**
* @see org.andromda.howto2.rental.RentalServiceBean
*/
/**
* Do not specify the javax.ejb.Stateless annotation
* Instead, define the session bean in the ejb-jar.xml descriptor
* @javax.ejb.Stateless
*/
/**
* Uncomment to enable webservices for RentalServiceBean
*@javax.jws.WebService(endpointInterface = "org.andromda.howto2.rental.RentalServiceWSInterface")
*/
public class RentalServiceBean
extends org.andromda.howto2.rental.RentalServiceBase
{
// --------------- Constructors ---------------
public RentalServiceBean()
{
super();
}
// -------- Business Methods Impl --------------
/**
* @see org.andromda.howto2.rental.RentalServiceBase#getAllCars()
*/
protected java.util.List handleGetAllCars()
throws java.lang.Exception
{
//TODO: put your implementation here.
// Dummy return value, just that the file compiles
return null;
}
/**
* @see org.andromda.howto2.rental.RentalServiceBase#getCustomersByName(java.lang.String)
*/
protected java.util.List handleGetCustomersByName(java.lang.String name)
throws java.lang.Exception
{
//TODO: put your implementation here.
// Dummy return value, just that the file compiles
return null;
}
// -------- Lifecycle Callback Impl --------------
}
1.1 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto17/a/PersonDao.java
Index: PersonDao.java
===================================================================
// license-header java merge-point
//
// Attention: Generated code! Do not modify by hand!
// Generated by: SessionDaoLocal.vsl in andromda-ejb3-cartridge.
//
package org.andromda.howto2.rental;
/**
* @see org.andromda.howto2.rental.Person
*/
public interface PersonDao
{
/**
* This constant is used as a transformation flag; entities can be converted automatically into value objects
* or other types, different methods in a class implementing this interface support this feature: look for
* an <code>int</code> parameter called <code>transform</code>.
* <p/>
* This specific flag denotes no transformation will occur.
*/
public final static int TRANSFORM_NONE = 0;
/**
* Loads an instance of org.andromda.howto2.rental.Person from the persistent store.
* @param id the identifier of the entity to load.
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public org.andromda.howto2.rental.Person load(java.lang.Long id)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* <p>
* Does the same thing as {@link #load(java.lang.Long)} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* the returned entity will <strong>NOT</strong> be transformed. If this flag is any of the other constants
* defined in this class then the result <strong>WILL BE</strong> passed through an operation which can
* optionally transform the entity (into a value object for example). By default, transformation does
* not occur.
* </p>
*
* @param id the identifier of the entity to load.
* @return either the entity or the object transformed from the entity.
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public Object load(int transform, java.lang.Long id)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* Loads all entities of type {@link org.andromda.howto2.rental.Person}.
*
* @return the loaded entities.
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public java.util.Collection<org.andromda.howto2.rental.Person> loadAll()
throws org.andromda.howto2.rental.PersonDaoException;
/**
* <p>
* Does the same thing as {@link #loadAll()} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* the returned entity will <strong>NOT</strong> be transformed. If this flag is any of the other constants
* defined here then the result <strong>WILL BE</strong> passed through an operation which can optionally
* transform the entity (into a value object for example). By default, transformation does
* not occur.
* </p>
*
* @param transform the flag indicating what transformation to use.
* @return the loaded entities.
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public java.util.Collection loadAll(final int transform)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* Creates an instance of org.andromda.howto2.rental.Person and adds it to the persistent store.
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public org.andromda.howto2.rental.Person create(org.andromda.howto2.rental.Person person)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* <p>
* Does the same thing as {@link #create(org.andromda.howto2.rental.Person)} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* the returned entity will <strong>NOT</strong> be transformed. If this flag is any of the other constants
* defined here then the result <strong>WILL BE</strong> passed through an operation which can optionally
* transform the entity (into a value object for example). By default, transformation does
* not occur.
* </p>
*
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public Object create(int transform, org.andromda.howto2.rental.Person person)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* Creates a new instance of org.andromda.howto2.rental.Person and adds
* from the passed in <code>entities</code> collection
*
* @param entities the collection of org.andromda.howto2.rental.Person
* instances to create.
*
* @return the created instances.
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public java.util.Collection<org.andromda.howto2.rental.Person> create(java.util.Collection<org.andromda.howto2.rental.Person> entities)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* <p>
* Does the same thing as {@link #create(org.andromda.howto2.rental.Person)} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* the returned entity will <strong>NOT</strong> be transformed. If this flag is any of the other constants
* defined here then the result <strong>WILL BE</strong> passed through an operation which can optionally
* transform the entities (into value objects for example). By default, transformation does
* not occur.
* </p>
*
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public java.util.Collection create(int transform, java.util.Collection<org.andromda.howto2.rental.Person> entities)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* <p>
* Creates a new <code>org.andromda.howto2.rental.Person</code>
* instance from <strong>all</strong> attributes and adds it to
* the persistent store.
* </p>
*/
public org.andromda.howto2.rental.Person create(
java.lang.String name,
java.util.Date birthDate)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* <p>
* Does the same thing as {@link #create(java.lang.String, java.util.Date)} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* the returned entity will <strong>NOT</strong> be transformed. If this flag is any of the other constants
* defined here then the result <strong>WILL BE</strong> passed through an operation which can optionally
* transform the entity (into a value object for example). By default, transformation does
* not occur.
* </p>
*
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public Object create(
int transform,
java.lang.String name,
java.util.Date birthDate)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* Updates the <code>person</code> instance in the persistent store.
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public void update(org.andromda.howto2.rental.Person person)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* Updates all instances in the <code>entities</code> collection in the persistent store.
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public void update(java.util.Collection<org.andromda.howto2.rental.Person> entities)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* Removes the instance of org.andromda.howto2.rental.Person from the persistent store.
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public void remove(org.andromda.howto2.rental.Person person)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* Removes the instance of org.andromda.howto2.rental.Person having the given
* <code>identifier</code> from the persistent store.
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public void remove(java.lang.Long id)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* Removes all entities in the given <code>entities<code> collection.
* @throws org.andromda.howto2.rental.PersonDaoException
*/
public void remove(java.util.Collection<org.andromda.howto2.rental.Person> entities)
throws org.andromda.howto2.rental.PersonDaoException;
/**
*
*/
public java.util.List findAll()
throws org.andromda.howto2.rental.PersonDaoException;
/**
* <p>
* Does the same thing as {@link #findAll()} with an
* additional argument called <code>queryString</code>. This <code>queryString</code>
* argument allows you to override the query string defined in {@link #findAll()}.
* </p>
*/
public java.util.List findAll(String queryString)
throws org.andromda.howto2.rental.PersonDaoException;
/**
* <p>
* Does the same thing as {@link #findAll()} with an
* additional flag called <code>transform</code>. If this flag is set to <code>TRANSFORM_NONE</code> then
* finder results will <strong>NOT</strong> be transformed during retrieval.
* If this flag is any of the other constants defined here
* then finder results <strong>WILL BE</strong> passed through an operation which can optionally
* transform the entities (into value objects for example). By default, transformation does
* not occur.
* </p>
*/
public java.util.List findAll(int tran...
[truncated message content] |
|
From: Vance K. <va...@us...> - 2007-01-19 14:33:22
|
User: vancek Date: 07/01/19 06:33:18 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto8/b - New directory |
|
From: Vance K. <va...@us...> - 2007-01-19 14:33:19
|
User: vancek Date: 07/01/19 06:33:17 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto16/a/crud - New directory |
|
From: Vance K. <va...@us...> - 2007-01-19 14:33:17
|
User: vancek Date: 07/01/19 06:33:18 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto8 - New directory |
|
From: Vance K. <va...@us...> - 2007-01-19 14:33:17
|
User: vancek Date: 07/01/19 06:33:17 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto6 - New directory |
|
From: Vance K. <va...@us...> - 2007-01-19 14:33:17
|
User: vancek Date: 07/01/19 06:33:17 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto6/a - New directory |
|
From: Vance K. <va...@us...> - 2007-01-19 14:33:17
|
User: vancek Date: 07/01/19 06:33:17 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto17 - New directory |
|
From: Vance K. <va...@us...> - 2007-01-19 14:33:17
|
User: vancek Date: 07/01/19 06:33:17 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto17/a - New directory |
|
From: Vance K. <va...@us...> - 2007-01-19 14:33:13
|
User: vancek Date: 07/01/19 06:33:14 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto16/a - New directory |
|
From: Vance K. <va...@us...> - 2007-01-19 14:33:12
|
User: vancek Date: 07/01/19 06:33:14 cartridges/andromda-ejb3/src/site/resources/howto/org/andromda/test/howto16 - New directory |