org.gcube.contentmanagement.codelistmanager.entities
Class CodeList
java.lang.Object
org.gcube.common.dbinterface.persistence.ObjectStateControl
org.gcube.contentmanagement.codelistmanager.entities.CodeList
public class CodeList
- extends org.gcube.common.dbinterface.persistence.ObjectStateControl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeList
public CodeList()
CodeList
public CodeList(String agencyId,
String name,
String description,
boolean isFinal)
initialize
public boolean initialize(CodeListCuration mapper)
getCodelistType
public CodeListType getCodelistType()
- Returns:
- the codelistType
getTable
public org.gcube.common.dbinterface.tables.SimpleTable getTable()
- Returns:
- the table
getVersion
public float getVersion()
- Returns:
- the version
getParentCodeListId
public String getParentCodeListId()
- Returns:
- the parentCodeListId
getId
public String getId()
setId
public void setId(String id)
getName
public String getName()
setName
public void setName(String name)
getDescription
public String getDescription()
- Returns:
- the concept
setDescription
public void setDescription(String description)
- Parameters:
concept - the concept to set
getAgency
public String getAgency()
- Returns:
- the agency
setAgency
public void setAgency(String agency)
- Parameters:
agency - the agency to set
isFinal
public boolean isFinal()
- Returns:
- the isFinal
setFinal
public void setFinal(boolean isFinal)
- Parameters:
isFinal - the isFinal to set
getRelatedTableName
public String getRelatedTableName()
getLabelFieldMapping
public Hashtable<String,TableField> getLabelFieldMapping()
- Returns:
- the labelFieldMapping
getModificationDate
public Calendar getModificationDate()
- Returns:
- the modificationDate
setModificationDate
public void setModificationDate(Calendar modificationDate)
- Parameters:
modificationDate - the modificationDate to set
isApproved
public boolean isApproved()
- Returns:
- the approved
getCreationDate
public Calendar getCreationDate()
- Returns:
- the creationDate
setVersion
public void setVersion(float version)
- Parameters:
version - the version to set
setApproved
public void setApproved(boolean approved)
- Parameters:
approved - the approved to set
getCount
public int getCount()
throws Exception
- Throws:
Exception
getCodeColumnId
public String getCodeColumnId()
addLine
public boolean addLine()
removeLine
public boolean removeLine()
remove
public void remove()
throws Exception
- Throws:
Exception
store
public boolean store()
get
public static CodeList get(String id)
throws Exception
- Throws:
Exception
getByName
public static Iterator<CodeList> getByName(String name)
throws Exception
- Throws:
Exception
getByType
public static Iterator<CodeList> getByType(CodeListType type)
throws Exception
- Throws:
Exception
getAll
public static Iterator<CodeList> getAll()
throws Exception
- Throws:
Exception
getTableName
public static String getTableName()
throws Exception
- Throws:
Exception
getInfo
public static Map<String,String> getInfo()
throws Exception
- Throws:
Exception
Copyright © 2013. All Rights Reserved.