eu.etaxonomy.cdm.model.common
Class PersistentMultiLanguageText

java.lang.Object
  extended by org.hibernate.collection.AbstractPersistentCollection
      extended by org.hibernate.collection.PersistentMap
          extended by eu.etaxonomy.cdm.model.common.PersistentMultiLanguageText
All Implemented Interfaces:
IMultiLanguageText, Serializable, Map, org.hibernate.collection.PersistentCollection

public class PersistentMultiLanguageText
extends org.hibernate.collection.PersistentMap
implements IMultiLanguageText

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.hibernate.collection.AbstractPersistentCollection
org.hibernate.collection.AbstractPersistentCollection.DelayedOperation
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.hibernate.collection.PersistentMap
map
 
Fields inherited from class org.hibernate.collection.AbstractPersistentCollection
UNKNOWN
 
Constructor Summary
PersistentMultiLanguageText()
           
PersistentMultiLanguageText(org.hibernate.engine.SessionImplementor sessionImplementor, MultilanguageText collection)
           
 
Method Summary
 LanguageString add(LanguageString languageString)
          Deprecated. 
 LanguageString getPreferredLanguageString(List<Language> languages)
          Iterates on the languages.
 String getText(Language language)
           
 LanguageString put(LanguageString languageString)
           
 
Methods inherited from class org.hibernate.collection.PersistentMap
beforeInitialize, clear, containsKey, containsValue, disassemble, empty, entries, entryExists, entrySet, equals, equalsSnapshot, get, getDeletes, getElement, getIndex, getOrphans, getSnapshot, getSnapshotElement, hashCode, initializeFromCache, isEmpty, isSnapshotEmpty, isWrapper, keySet, needsInserting, needsUpdating, put, putAll, readFrom, remove, size, toString, values
 
Methods inherited from class org.hibernate.collection.AbstractPersistentCollection
afterInitialize, afterRowInsert, beginRead, clearDirty, dirty, endRead, forceInitialization, getCachedSize, getIdentifier, getKey, getOrphans, getOwner, getQueuedOrphans, getRole, getSession, getSnapshot, getStoredSnapshot, getValue, hasQueuedOperations, initialize, isClearQueueEnabled, isDirectlyAccessible, isDirty, isOperationQueueEnabled, isPutQueueEnabled, isRowUpdatePossible, isUnreferenced, needsRecreate, performQueuedOperations, postAction, preInsert, queuedAdditionIterator, queueOperation, read, readElementByIndex, readElementExistence, readIndexExistence, readSize, setCurrentSession, setDirectlyAccessible, setInitialized, setOwner, setSnapshot, unsetSession, wasInitialized, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistentMultiLanguageText

public PersistentMultiLanguageText(org.hibernate.engine.SessionImplementor sessionImplementor,
                                   MultilanguageText collection)

PersistentMultiLanguageText

public PersistentMultiLanguageText()
Method Detail

add

@Deprecated
public LanguageString add(LanguageString languageString)
Deprecated. 

Specified by:
add in interface IMultiLanguageText
Returns:
String the previous text in the MultilanguageSet that was associated with the language defined in languageString, or null if there was no such text before. (A null return can also indicate that the text was previously null.)

put

public LanguageString put(LanguageString languageString)
Specified by:
put in interface IMultiLanguageText
Returns:
String the previous text in the MultilanguageSet that was associated with the language defined in languageString, or null if there was no such text before. (A null return can also indicate that the text was previously null.)

getPreferredLanguageString

public LanguageString getPreferredLanguageString(List<Language> languages)
Description copied from interface: IMultiLanguageText
Iterates on the languages. As soon as there exists a language string for this language in this multilanguage text it is returned.

Specified by:
getPreferredLanguageString in interface IMultiLanguageText
Returns:

getText

public String getText(Language language)
Specified by:
getText in interface IMultiLanguageText
Returns:


Copyright © 2007-2012 EDIT. All Rights Reserved.