Betty v1.1.0

christophedelory.betty
Class EntityToString

java.lang.Object
  extended by christophedelory.betty.EntityToString
Direct Known Subclasses:
EntityToRSSDescription, EntityToRSSTitle

public class EntityToString
extends Object

EJB string representations.

Since:
0.9.2
Version:
$Revision: 52 $
Author:
Christophe Delory

Field Summary
static EntityToString SINGLETON
          A ready-to-use instance of this class.
 
Constructor Summary
EntityToString()
           
 
Method Summary
 String toEntityString(DbEntity dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalBet dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalChampionship dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalEvent dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalLocation dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalMetadata dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalModel dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalPhase dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalPlayer dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalPlayerScore dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalProperty dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalResource dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalUser dbEntity, Locale locale)
          Returns a string representation of the specified EJB object.
 String toString(LocalUserRole dbEntity, Locale locale)
          Returns a string 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

SINGLETON

public static final EntityToString SINGLETON
A ready-to-use instance of this class.

Constructor Detail

EntityToString

public EntityToString()
Method Detail

toEntityString

public String toEntityString(DbEntity dbEntity,
                             Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalBet dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalPlayerScore dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalChampionship dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalPhase dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalEvent dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalLocation dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalPlayer dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalUser dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalUserRole dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalModel dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalResource dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalProperty dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

toString

public String toString(LocalMetadata dbEntity,
                       Locale locale)
Returns a string representation of the specified EJB object. This is a one-line text including key identifiers of this object.

Parameters:
dbEntity - the input EJB object. Shall not be null.
locale - the target locale. May be null.
Returns:
a string representing the EJB object. Shall not be null.
Throws:
NullPointerException - if dbEntity is null.
EJBException - if any exception occured during the execution of this method.

© 2008-2009 Christophe Delory

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