org.alfresco.repo.domain.hibernate
Class LocaleEntityImpl

java.lang.Object
  extended by org.alfresco.repo.domain.hibernate.LocaleEntityImpl
All Implemented Interfaces:
java.io.Serializable, LocaleEntity

public class LocaleEntityImpl
extends java.lang.Object
implements LocaleEntity, java.io.Serializable

Hibernate-specific implementation of the domain entity LocaleEntity.

Since:
2.2.1
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_LOCALE_SUBSTITUTE
           
 
Constructor Summary
LocaleEntityImpl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Long getId()
           
 java.util.Locale getLocale()
          Lazily constructs a Locale instance referencing this entity
 java.lang.String getLocaleStr()
           
 java.lang.Long getVersion()
           
 int hashCode()
           
 void setLocale(java.util.Locale locale)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_LOCALE_SUBSTITUTE

public static final java.lang.String DEFAULT_LOCALE_SUBSTITUTE
See Also:
Constant Field Values
Constructor Detail

LocaleEntityImpl

public LocaleEntityImpl()
Method Detail

getLocale

public java.util.Locale getLocale()
Lazily constructs a Locale instance referencing this entity

Specified by:
getLocale in interface LocaleEntity

setLocale

public void setLocale(java.util.Locale locale)
Specified by:
setLocale in interface LocaleEntity
Parameters:
locale - the locale to set or null to represent the default locale

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
#getStoreRef()()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
#getKey()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
#getKey()

getId

public java.lang.Long getId()
Specified by:
getId in interface LocaleEntity

getVersion

public java.lang.Long getVersion()

getLocaleStr

public java.lang.String getLocaleStr()
Specified by:
getLocaleStr in interface LocaleEntity


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.