|
Betty v1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchristophedelory.betty.EntityToXml
public class EntityToXml
EJB to XML binding.
Field Summary | |
---|---|
static SimpleDateFormat |
ISO8601_DATETIMEZ_FORMAT
The ISO8601 date-time formatter with explicit (Zulu) time zone. |
static EntityToXml |
SINGLETON
A ready-to-use instance of this class. |
Constructor Summary | |
---|---|
EntityToXml()
|
Method Summary | |
---|---|
protected void |
fillCountryDetails(DbCountryEntity dbEntity,
CountryDetails xml,
Locale[] locales)
Builds an XML representation of the specified EJB object. |
ChampionshipDetails |
toXml(LocalChampionship dbEntity,
Locale[] locales)
Returns an XML representation of the specified EJB object. |
EventDetails |
toXml(LocalEvent dbEntity,
Locale[] locales)
Returns an XML representation of the specified EJB object. |
LocationDetails |
toXml(LocalLocation dbEntity,
Locale[] locales)
Returns an XML representation of the specified EJB object. |
void |
toXml(LocalMetadata dbEntity,
AbstractMetadataDetails xml,
Locale[] locales)
Builds an XML representation of the specified EJB object. |
void |
toXml(LocalModel dbEntity,
ModelDetails xml,
Locale[] locales)
Builds an XML representation of the specified EJB object. |
PhaseDetails |
toXml(LocalPhase dbEntity,
Locale[] locales)
Returns an XML representation of the specified EJB object. |
PlayerDetails |
toXml(LocalPlayer dbEntity,
Locale[] locales)
Returns an XML representation of the specified EJB object. |
PlayerIdDetails |
toXml(LocalPlayerScore dbEntity,
Locale[] locales)
Returns an XML representation of the specified EJB object. |
PropertyDetails |
toXml(LocalProperty dbEntity,
Locale[] locales)
Returns an XML representation of the specified EJB object. |
ResourceDetails |
toXml(LocalResource dbEntity,
Locale[] locales)
Returns an XML representation of the specified EJB object. |
UserDetails |
toXml(LocalUser dbEntity,
Locale[] locales)
Returns an XML representation of the specified EJB object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final EntityToXml SINGLETON
public static final SimpleDateFormat ISO8601_DATETIMEZ_FORMAT
date-time
formatter with explicit (Zulu) time zone.
Constructor Detail |
---|
public EntityToXml()
Method Detail |
---|
public ChampionshipDetails toXml(LocalChampionship dbEntity, Locale[] locales) throws Exception
dbEntity
- the input EJB object. Shall not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if locales
is null
.
Exception
- if any exception or error occurs.public PhaseDetails toXml(LocalPhase dbEntity, Locale[] locales) throws Exception
dbEntity
- the input EJB object. Shall not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NamingException
- if a naming exception is encountered.
FinderException
- in case of failure to find any requested EJB object(s).
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if locales
is null
.
Exception
- if any exception or error occurs.public EventDetails toXml(LocalEvent dbEntity, Locale[] locales) throws Exception
dbEntity
- the input EJB object. Shall not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NamingException
- if a naming exception is encountered.
FinderException
- in case of failure to find any requested EJB object(s).
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if locales
is null
.
Exception
- if any exception or error occurs.public void toXml(LocalModel dbEntity, ModelDetails xml, Locale[] locales) throws Exception
dbEntity
- the input EJB object. Shall not be null
.xml
- the target XML object. Should not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NamingException
- if a naming exception is encountered.
FinderException
- in case of failure to find any requested EJB object(s).
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if xml
is null
.
NullPointerException
- if locales
is null
.
Exception
- if any exception or error occurs.public LocationDetails toXml(LocalLocation dbEntity, Locale[] locales) throws Exception
dbEntity
- the input EJB object. Shall not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NamingException
- if a naming exception is encountered.
FinderException
- in case of failure to find any requested EJB object(s).
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if locales
is null
.
Exception
- if any exception or error occurs.fillCountryDetails(DbCountryEntity,CountryDetails,Locale[])
public PlayerDetails toXml(LocalPlayer dbEntity, Locale[] locales) throws Exception
dbEntity
- the input EJB object. Shall not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NamingException
- if a naming exception is encountered.
FinderException
- in case of failure to find any requested EJB object(s).
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if locales
is null
.
Exception
- if any exception or error occurs.fillCountryDetails(DbCountryEntity,CountryDetails,Locale[])
protected void fillCountryDetails(DbCountryEntity dbEntity, CountryDetails xml, Locale[] locales) throws Exception
dbEntity
- the input EJB object. Shall not be null
.xml
- the target XML object. Shall not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NamingException
- if a naming exception is encountered.
FinderException
- in case of failure to find any requested EJB object(s).
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if xml
is null
.
NullPointerException
- if locales
is null
.
Exception
- if any exception or error occurs.public PlayerIdDetails toXml(LocalPlayerScore dbEntity, Locale[] locales)
dbEntity
- the input EJB object. Shall not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if locales
is null
.public UserDetails toXml(LocalUser dbEntity, Locale[] locales) throws Exception
dbEntity
- the input EJB object. Shall not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NamingException
- if a naming exception is encountered.
FinderException
- in case of failure to find any requested EJB object(s).
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if locales
is null
.
Exception
- if any exception or error occurs.public ResourceDetails toXml(LocalResource dbEntity, Locale[] locales) throws Exception
dbEntity
- the input EJB object. Shall not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if locales
is null
.
Exception
- if any exception or error occurs.public PropertyDetails toXml(LocalProperty dbEntity, Locale[] locales)
dbEntity
- the input EJB object. Shall not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if locales
is null
.public void toXml(LocalMetadata dbEntity, AbstractMetadataDetails xml, Locale[] locales)
dbEntity
- the input EJB object. Shall not be null
.xml
- the target XML object. Shall not be null
.locales
- the preferred locales that the caller will accept content in. Should not be null
.
EJBException
- if any exception occured during the execution of this method.
NullPointerException
- if dbEntity
is null
.
NullPointerException
- if xml
is null
.
NullPointerException
- if locales
is null
.
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |