public class Language extends java.lang.Object implements LanguageIf
| Constructor and Description |
|---|
Language()
Constructor
|
Language(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Language object from a Record object
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCode()
Examples of the code are en, es, de etc.
|
int |
getDataLanguageId()
For languages that are not display-only this id will be the same as the language Id.
|
java.lang.String |
getDirectory()
Examples of the directory are english, german, espanol etc.
|
int |
getId() |
java.lang.String |
getImage()
Normally a flag of the country where the language is spoken, stored in the directory of
images specific to this language.
|
java.lang.String |
getLocale() |
java.lang.String |
getName() |
int |
getSortOrder() |
boolean |
isDisplayOnly()
If a language is marked as display-only it is not used as a language for providing
translations for the various KonaKart entities that need translations for each language -
such as products and categories etc.
|
void |
setCode(java.lang.String code)
Examples of the code are en, es, de etc.
|
void |
setDataLanguageId(int dataLanguageId) |
void |
setDirectory(java.lang.String directory)
Examples of the directory are english, german, espanol etc.
|
void |
setDisplayOnly(boolean displayOnly) |
void |
setId(int id) |
void |
setImage(java.lang.String image)
Normally a flag of the country where the language is spoken, stored in the directory of
images specific to this language.
|
void |
setLocale(java.lang.String locale) |
void |
setName(java.lang.String name) |
void |
setSortOrder(int sortOrder) |
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
public Language()
public Language(com.workingdogs.village.Record vr,
KKCriteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column namescom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringBrief()
public java.lang.String getCode()
LanguageIfgetCode in interface LanguageIfpublic void setCode(java.lang.String code)
LanguageIfsetCode in interface LanguageIfcode - The code to set.public java.lang.String getDirectory()
LanguageIfgetDirectory in interface LanguageIfpublic void setDirectory(java.lang.String directory)
LanguageIfsetDirectory in interface LanguageIfdirectory - The directory to set.public int getId()
getId in interface LanguageIfpublic void setId(int id)
setId in interface LanguageIfid - The id to set.public java.lang.String getImage()
LanguageIfgetImage in interface LanguageIfpublic void setImage(java.lang.String image)
LanguageIfsetImage in interface LanguageIfimage - The image to set.public java.lang.String getName()
getName in interface LanguageIfpublic void setName(java.lang.String name)
setName in interface LanguageIfname - The name to set.public int getSortOrder()
getSortOrder in interface LanguageIfpublic void setSortOrder(int sortOrder)
setSortOrder in interface LanguageIfsortOrder - The sortOrder to set.public java.lang.String getLocale()
getLocale in interface LanguageIfpublic void setLocale(java.lang.String locale)
setLocale in interface LanguageIflocale - the locale to setpublic boolean isDisplayOnly()
LanguageIfisDisplayOnly in interface LanguageIfpublic void setDisplayOnly(boolean displayOnly)
setDisplayOnly in interface LanguageIfdisplayOnly - the displayOnly to setpublic int getDataLanguageId()
LanguageIfgetDataLanguageId in interface LanguageIfpublic void setDataLanguageId(int dataLanguageId)
setDataLanguageId in interface LanguageIfdataLanguageId - the dataLanguageId to setCopyright © 2018 DS Data Systems UK Ltd.