|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.globalization.MessageCatalog
MessageCatalog DomainObject comprised of:
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
versionId
|
Constructor Summary | |
MessageCatalog(String name)
Constructor for a new root MessageCatalog. |
|
MessageCatalog(String name,
Locale locale)
Constructor for a new MessageCatalog associated with a particular Locale. |
Method Summary | |
protected void |
beforeSave()
|
String |
getBaseDataObjectType()
Returns the appropriate object type for a MessageCatalog so that the proper type validation can take place when retrieving MessageCatalogs by OID. |
BigDecimal |
getID()
Return ID. |
Date |
getLastModified()
Get the date that this MessageCatalog was last modified. |
Locale |
getLocale()
Get the locale associated with this MessageCatalog. |
Map |
getMap()
De-serialize the MessageCatalog from the database into a Map object. |
String |
getName()
Get the name of this MessageCatalog. |
protected void |
initialize()
Called from all of the DomainObject constructors
to initalize or validate the new domain object or its
encapsulated data object. |
boolean |
isReadOnly()
Check whether or not this MessageCatalog is read-only or not. |
static MessageCatalog |
retrieve(String name)
Retrieve the MessageCatalog from persistent storage. |
static MessageCatalog |
retrieve(String name,
Locale locale)
Retrieve the MessageCatalog from persistent storage. |
static MessageCatalog |
retrieveForEdit(String name)
Retrieve the MessageCatalog from persistent storage for edit. |
static MessageCatalog |
retrieveForEdit(String name,
Locale locale)
Retrieve the MessageCatalog from persistent storage for edit. |
void |
setLocale(Locale locale)
Set the locale associated with this MessageCatalog. |
void |
setLocale(Locale locale)
Set the locale associated with this MessageCatalog. |
void |
setMap(Map catalog)
Serialize the MessageCatalog to the database from a Map object. |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String versionId
public static final String BASE_DATA_OBJECT_TYPE
Constructor Detail |
public MessageCatalog(String name)
Constructor for a new root MessageCatalog.
name
- The name for this new MessageCatalogpublic MessageCatalog(String name, Locale locale) throws GlobalizationException
Constructor for a new MessageCatalog associated with a particular Locale.
name
- The name for this new MessageCataloglocale
- The locale associated with this MessageCatalogMethod Detail |
protected void initialize()
DomainObject
DomainObject
constructors
to initalize or validate the new domain object or its
encapsulated data object. This was introduced in order to
support efficient validation of the encapsualted data object's
type. If the validation is typically performed in class
constructors, then redundant validation is performed in
superclass constructors. This validation now occurs here.
initialize
in class DomainObject
public String getBaseDataObjectType()
Returns the appropriate object type for a MessageCatalog so that the proper type validation can take place when retrieving MessageCatalogs by OID.
getBaseDataObjectType
in class DomainObject
public BigDecimal getID()
Return ID.
public Date getLastModified()
Get the date that this MessageCatalog was last modified.
public Locale getLocale()
Get the locale associated with this MessageCatalog.
public void setLocale(Locale locale) throws GlobalizationException
Set the locale associated with this MessageCatalog.
locale
- java.util.Locale representing the language, country,
and variant associated with this MessageCatalog.
GlobalizationException
public void setLocale(Locale locale)
Set the locale associated with this MessageCatalog.
locale
- representing the language, country, and variant
associated with this MessageCatalog.public Map getMap()
De-serialize the MessageCatalog from the database into a Map object.
public void setMap(Map catalog) throws GlobalizationException
Serialize the MessageCatalog to the database from a Map object.
catalog
- representing the MessageCatalog
GlobalizationException
public String getName()
Get the name of this MessageCatalog.
public boolean isReadOnly()
Check whether or not this MessageCatalog is read-only or not.
public static MessageCatalog retrieve(String name) throws GlobalizationException
Retrieve the MessageCatalog from persistent storage.
name
- The name of the MessageCatalog to retrieve.
GlobalizationException
public static MessageCatalog retrieve(String name, Locale locale) throws GlobalizationException
Retrieve the MessageCatalog from persistent storage.
name
- The name of the MessageCatalog to retrieve.locale
- The locale of the MessageCatalog to retrieve.
GlobalizationException
public static MessageCatalog retrieveForEdit(String name) throws GlobalizationException
Retrieve the MessageCatalog from persistent storage for edit.
name
- The name of the MessageCatalog to retrieve.
GlobalizationException
public static MessageCatalog retrieveForEdit(String name, Locale locale) throws GlobalizationException
Retrieve the MessageCatalog from persistent storage for edit.
name
- The name of the MessageCatalog to retrieve.locale
- The locale of the MessageCatalog to retrieve.
GlobalizationException
protected void beforeSave()
beforeSave
in class DomainObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |