/**
* Example license header for Java files
*
* http://www.andromda.org/
*/
//
// Attention: Generated code! Do not modify by hand!
// Generated by: SpringDao.vsl in andromda-spring-cartridge.
//
package org.andromda.test.3;
/**
* @see org.andromda.test.3.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 int parameter called transform.
*
* Does the same thing as {@link #load(java.lang.Long)} with an
* additional flag called transform. If this flag is set to TRANSFORM_NONE then
* the returned entity will NOT be transformed. If this flag is any of the other constants
* defined in this class then the result WILL BE passed through an operation which can
* optionally transform the entity (into a value object for example). By default, transformation does
* not occur.
*
* Does the same thing as {@link #loadAll()} with an
* additional flag called transform. If this flag is set to TRANSFORM_NONE then
* the returned entity will NOT be transformed. If this flag is any of the other constants
* defined here then the result WILL BE passed through an operation which can optionally
* transform the entity (into a value object for example). By default, transformation does
* not occur.
*
* Does the same thing as {@link #create(org.andromda.test.3.Car)} with an
* additional flag called transform. If this flag is set to TRANSFORM_NONE then
* the returned entity will NOT be transformed. If this flag is any of the other constants
* defined here then the result WILL BE passed through an operation which can optionally
* transform the entity (into a value object for example). By default, transformation does
* not occur.
*
entities collection
*
* @param entities the collection of org.andromda.test.3.Car
* instances to create.
*
* @return the created instances.
*/
public java.util.Collection create(java.util.Collection entities);
/**
*
* Does the same thing as {@link #create(org.andromda.test.3.Car)} with an
* additional flag called transform. If this flag is set to TRANSFORM_NONE then
* the returned entity will NOT be transformed. If this flag is any of the other constants
* defined here then the result WILL BE passed through an operation which can optionally
* transform the entities (into value objects for example). By default, transformation does
* not occur.
*
* Creates a new org.andromda.test.3.Car
* instance from all attributes and adds it to
* the persistent store.
*
* Does the same thing as {@link #create(java.lang.String, java.lang.String, java.lang.String)} with an
* additional flag called transform. If this flag is set to TRANSFORM_NONE then
* the returned entity will NOT be transformed. If this flag is any of the other constants
* defined here then the result WILL BE passed through an operation which can optionally
* transform the entity (into a value object for example). By default, transformation does
* not occur.
*
* Creates a new org.andromda.test.3.Car
* instance from only required properties (attributes
* and association ends) and adds it to the persistent store.
*
* Does the same thing as {@link #create(java.lang.String, java.lang.String, java.lang.String)} with an
* additional flag called transform. If this flag is set to TRANSFORM_NONE then
* the returned entity will NOTWILL BE passed through an operation which can optionally
* transform the entity (into a value object for example). By default, transformation does
* not occur.
*
car instance in the persistent store.
*/
public void update(org.andromda.test.3.Car car);
/**
* Updates all instances in the entities collection in the persistent store.
*/
public void update(java.util.Collection entities);
/**
* Removes the instance of org.andromda.test.3.Car from the persistent store.
*/
public void remove(org.andromda.test.3.Car car);
/**
* Removes the instance of org.andromda.test.3.Car having the given
* identifier from the persistent store.
*/
public void remove(java.lang.Long id);
/**
* Removes all entities in the given entities collection.
*/
public void remove(java.util.Collection entities);
/**
*
* Returns true if all cars are currently rented.
*
*/
public boolean allCarsAreRented();
}