Betty v1.1.0

christophedelory.betty.interfaces
Interface DbCountryEntity

All Superinterfaces:
DbEntity, DbIdEntity
All Known Subinterfaces:
LocalLocation, LocalPlayer
All Known Implementing Classes:
LocationBean, PlayerBean

public interface DbCountryEntity
extends DbIdEntity

All objects that define a country shall implement this interface.

Version:
$Revision$
Author:
Christophe Delory
See Also:
CountryDetails

Method Summary
 String getCountry()
          Returns the 2-letter country code identifier defined in ISO 3166.
 boolean getIsCountry()
          Specifies if this object is also a country or not.
 void setCountry(String country)
          Initializes the 2-letter country code identifier defined in ISO 3166.
 void setIsCountry(boolean isCountry)
          Specifies if this object is also a country or not.
 
Methods inherited from interface christophedelory.betty.interfaces.DbIdEntity
getId, setId
 
Methods inherited from interface christophedelory.interfaces.DbEntity
getBase, getCreationDate, getCreationUserId, getUpdateDate, getUpdateUserId, setBase, setUpdateDate, setUpdateUserId
 

Method Detail

getCountry

String getCountry()
Returns the 2-letter country code identifier defined in ISO 3166.

Returns:
the country code. May be null.
Throws:
EJBException - if any exception occured during the execution of this method.
See Also:
setCountry(String)

setCountry

void setCountry(String country)
Initializes the 2-letter country code identifier defined in ISO 3166.

Parameters:
country - the country code. May be null.
Throws:
EJBException - if any exception occured during the execution of this method.
See Also:
getCountry()

getIsCountry

boolean getIsCountry()
Specifies if this object is also a country or not.

Returns:
true if this EJB object refers to a country, false otherwise.
Throws:
EJBException - if any exception occured during the execution of this method.
See Also:
setIsCountry(boolean)

setIsCountry

void setIsCountry(boolean isCountry)
Specifies if this object is also a country or not.

Parameters:
isCountry - true if this EJB object refers to a country, false otherwise.
Throws:
EJBException - if any exception occured during the execution of this method.
See Also:
getIsCountry()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.