com.javelin.fpml.fx
Interface AddressSession


public interface AddressSession

AddressSession.java

null

Author:
Javelin Software
See Also:
Address, AddressHome, AddressValidator

Method Summary
 int countByQuery(java.lang.String query)
          Count the Beans using a String.
 java.util.Iterator findByAll()
          Find All the beans.
 Address findByCountry(java.lang.Object countryKey)
          Find the Address By Country
 Address findByPrimaryKey(java.lang.Object addressKey)
          Find the Address By PrimaryKey
 java.util.Iterator findByQuery(java.lang.String query)
          Find the Beans using a String.
 java.util.Iterator findByQuery(java.lang.String query, int maxRows)
          Find the Beans using a String, with a max row count.
 Address findByStreetAddress(java.lang.Object streetAddressKey)
          Find the Address By StreetAddress
 void load(Address address)
          Reload the bean, and any dependent beans from the store.
 void remove(Address address)
          Remove the bean, and any dependent beans from the store.
 void save(Address address)
          Create or Save the bean, and any dependent beans to the store.
 

Method Detail

findByAll

public java.util.Iterator findByAll()
                             throws FinderException,
                                    ValidationException
Find All the beans.

Returns:
Iterator The Beans that were found.
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

findByPrimaryKey

public Address findByPrimaryKey(java.lang.Object addressKey)
                         throws FinderException,
                                ValidationException
Find the Address By PrimaryKey

Parameters:
addressKey -
Returns:
Address The Bean/s that was found.
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

findByStreetAddress

public Address findByStreetAddress(java.lang.Object streetAddressKey)
                            throws FinderException,
                                   ValidationException
Find the Address By StreetAddress

Parameters:
streetAddressKey -
Returns:
Address The Bean/s that was found.
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

findByCountry

public Address findByCountry(java.lang.Object countryKey)
                      throws FinderException,
                             ValidationException
Find the Address By Country

Parameters:
countryKey -
Returns:
Address The Bean/s that was found.
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

findByQuery

public java.util.Iterator findByQuery(java.lang.String query)
                               throws FinderException,
                                      ValidationException
Find the Beans using a String.

Parameters:
query - A Query String
Returns:
Iterator The Beans that were found.
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

findByQuery

public java.util.Iterator findByQuery(java.lang.String query,
                                      int maxRows)
                               throws FinderException,
                                      ValidationException
Find the Beans using a String, with a max row count.

Parameters:
query - A Query String
maxRows - The maximum number of rows to return.
Returns:
Iterator The Beans that were found.
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

countByQuery

public int countByQuery(java.lang.String query)
                 throws FinderException,
                        ValidationException
Count the Beans using a String.

Parameters:
query - A Query String
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

load

public void load(Address address)
          throws LoadException,
                 ValidationException
Reload the bean, and any dependent beans from the store.

Throws:
LoadException - If there was a problem loading any of the beans.
ValidationException - If there was a problem validating any of the beans.

save

public void save(Address address)
          throws CreateException,
                 StoreException,
                 ValidationException
Create or Save the bean, and any dependent beans to the store.

Throws:
CreateException - If there was a problem creating any of the beans.
StoreException - If there was a problem storing any of the beans.
ValidationException - If there was a problem validating any of the beans.

remove

public void remove(Address address)
            throws RemoveException,
                   ValidationException
Remove the bean, and any dependent beans from the store.

Throws:
RemoveException - If there was a problem removing any of the beans.
ValidationException - If there was a problem validating any of the beans.