com.your_domain.your_product.address.dao
Class AddressDaoImpl

java.lang.Object
  extended by com.jdbaccess.dao.DataAccessObjectImpl
      extended by com.your_domain.your_product.address.dao.AddressDaoImpl
All Implemented Interfaces:
DataAccessObject, AddressDao

public class AddressDaoImpl
extends DataAccessObjectImpl
implements AddressDao

Persistence layer: dao class of entity address


Field Summary
 
Fields inherited from class com.jdbaccess.dao.DataAccessObjectImpl
daReader, transaction
 
Constructor Summary
AddressDaoImpl()
           
AddressDaoImpl(Transaction t)
           
 
Method Summary
 void createSequence()
           
 void createTable()
           
 java.lang.Long deleteAll()
           
 void dropSequence()
           
 void dropTable()
           
 Result findAll(java.util.ArrayList orderBy)
           
 com.your_domain.your_product.address.transfer.Address findById(java.lang.Number id)
           
 com.your_domain.your_product.address.transfer.Address insert(com.your_domain.your_product.address.transfer.Address adr)
           
 java.util.ArrayList insert(java.util.ArrayList transferObjects)
          insert these transfer objects
 com.your_domain.your_product.address.transfer.Address insert(java.lang.String street, java.lang.String streetNumber, java.lang.String country, java.lang.String zipCode, java.lang.String city, java.util.Date creation, java.util.Date modification)
           
 
Methods inherited from class com.jdbaccess.dao.DataAccessObjectImpl
createSequence, createTable, delete, deleteAll, dropSequence, dropTable, executeFunction, executeProcedure, find, find, findAll, findByFieldName, getSequenceNextVal, getSequenceNextValues, insert, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jdbaccess.dao.DataAccessObject
createSequence, createTable, delete, deleteAll, dropSequence, dropTable, executeFunction, executeProcedure, find, find, getSequenceNextVal, getSequenceNextValues, insert, update
 

Constructor Detail

AddressDaoImpl

public AddressDaoImpl()

AddressDaoImpl

public AddressDaoImpl(Transaction t)
Method Detail

dropTable

public void dropTable()
               throws ApplicationException
Specified by:
dropTable in interface AddressDao
Throws:
ApplicationException

dropSequence

public void dropSequence()
                  throws ApplicationException
Specified by:
dropSequence in interface AddressDao
Throws:
ApplicationException

createSequence

public void createSequence()
                    throws ApplicationException
Specified by:
createSequence in interface AddressDao
Throws:
ApplicationException

createTable

public void createTable()
                 throws ApplicationException
Specified by:
createTable in interface AddressDao
Throws:
ApplicationException

insert

public com.your_domain.your_product.address.transfer.Address insert(com.your_domain.your_product.address.transfer.Address adr)
                                                             throws ApplicationException
Specified by:
insert in interface AddressDao
Throws:
ApplicationException

insert

public java.util.ArrayList insert(java.util.ArrayList transferObjects)
                           throws ApplicationException
Description copied from class: DataAccessObjectImpl
insert these transfer objects

Specified by:
insert in interface DataAccessObject
Specified by:
insert in interface AddressDao
Overrides:
insert in class DataAccessObjectImpl
Returns:
ArrayList of new inserted transfer objects (with new sequence id if transfer object is id object)
Throws:
ApplicationException

insert

public com.your_domain.your_product.address.transfer.Address insert(java.lang.String street,
                                                                    java.lang.String streetNumber,
                                                                    java.lang.String country,
                                                                    java.lang.String zipCode,
                                                                    java.lang.String city,
                                                                    java.util.Date creation,
                                                                    java.util.Date modification)
                                                             throws ApplicationException
Specified by:
insert in interface AddressDao
Throws:
ApplicationException

deleteAll

public java.lang.Long deleteAll()
                         throws ApplicationException
Specified by:
deleteAll in interface AddressDao
Throws:
ApplicationException

findAll

public Result findAll(java.util.ArrayList orderBy)
               throws ApplicationException
Specified by:
findAll in interface AddressDao
Throws:
ApplicationException

findById

public com.your_domain.your_product.address.transfer.Address findById(java.lang.Number id)
                                                               throws ApplicationException
Specified by:
findById in interface AddressDao
Throws:
ApplicationException