com.arsdigita.globalization
Class Charset

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.globalization.Charset

public class Charset
extends DomainObject

Charset DomainObject implements a persistent Charset object. A charset, or character set, is ...

Version:
$Revision: #10 $ $Date: 2004/04/07 $
Author:
Yon Feldman

Field Summary
static String BASE_DATA_OBJECT_TYPE
           
static String versionId
           
 
Constructor Summary
Charset()
           Constructor.
Charset(DataObject dataObject)
           Constructor.
Charset(OID oid)
           Constructor.
 
Method Summary
protected  void afterDelete()
           
protected  void afterSave()
           
 String getBaseDataObjectType()
           Returns the appropriate object type for a Charset so that the proper type validation can take place when retrieving Charset by OID.
 String getCharset()
           Returns the charset.
 BigDecimal getID()
           Return ID.
protected  void initialize()
          Called from all of the DomainObject constructors to initalize or validate the new domain object or its encapsulated data object.
 void setCharset(String charset)
           Set the charset
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, beforeDelete, beforeSave, 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

versionId

public static final String versionId
See Also:
Constant Field Values

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
See Also:
Constant Field Values
Constructor Detail

Charset

public Charset()

Constructor. Retrieves an instance for a new Charset


Charset

public Charset(OID oid)
        throws DataObjectNotFoundException

Constructor. Retrieves a persistent Charset object from the database.

Parameters:
oid - Object ID of the Charset to retrieve.
Throws:
DataObjectNotFoundException - Thrown if we cannot retrieve a DataObject for the specified OID.

Charset

public Charset(DataObject dataObject)

Constructor. Retrieves a persistent Charset object from the database.

Parameters:
dataObject - DataObject of the Charset to retrieve.
Method Detail

initialize

protected void initialize()
Description copied from class: DomainObject
Called from all of the 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.

Overrides:
initialize in class DomainObject

getBaseDataObjectType

public String getBaseDataObjectType()

Returns the appropriate object type for a Charset so that the proper type validation can take place when retrieving Charset by OID.

Overrides:
getBaseDataObjectType in class DomainObject
Returns:
String The fully qualified name of the base data object type for the Charset DataObject.

getID

public BigDecimal getID()

Return ID.

Returns:
BigDecimal The ID of this DataObject

getCharset

public String getCharset()

Returns the charset.

Returns:
String charset

setCharset

public void setCharset(String charset)

Set the charset


afterSave

protected void afterSave()
Overrides:
afterSave in class DomainObject

afterDelete

protected void afterDelete()
Overrides:
afterDelete in class DomainObject


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC