org.gcube.contentmanagement.codelistmanager.entities
Class CodeList

java.lang.Object
  extended by org.gcube.common.dbinterface.persistence.ObjectStateControl
      extended by org.gcube.contentmanagement.codelistmanager.entities.CodeList

public class CodeList
extends org.gcube.common.dbinterface.persistence.ObjectStateControl


Constructor Summary
CodeList()
           
CodeList(String agencyId, String name, String description, boolean isFinal)
           
 
Method Summary
 boolean addLine()
           
static CodeList get(String id)
           
 String getAgency()
           
static Iterator<CodeList> getAll()
           
static Iterator<CodeList> getByName(String name)
           
static Iterator<CodeList> getByType(CodeListType type)
           
 String getCodeColumnId()
           
 CodeListType getCodelistType()
           
 int getCount()
           
 Calendar getCreationDate()
           
 String getDescription()
           
 String getId()
           
static Map<String,String> getInfo()
           
 Hashtable<String,TableField> getLabelFieldMapping()
           
 Calendar getModificationDate()
           
 String getName()
           
 String getParentCodeListId()
           
 String getRelatedTableName()
           
 org.gcube.common.dbinterface.tables.SimpleTable getTable()
           
static String getTableName()
           
 float getVersion()
           
 boolean initialize(CodeListCuration mapper)
           
 boolean isApproved()
           
 boolean isFinal()
           
 void remove()
           
 boolean removeLine()
           
 void setAgency(String agency)
           
 void setApproved(boolean approved)
           
 void setDescription(String description)
           
 void setFinal(boolean isFinal)
           
 void setId(String id)
           
 void setModificationDate(Calendar modificationDate)
           
 void setName(String name)
           
 void setVersion(float version)
           
 boolean store()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeList

public CodeList()

CodeList

public CodeList(String agencyId,
                String name,
                String description,
                boolean isFinal)
Method Detail

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.