org.orange.kicsa.integration.skill
Class SkillMemoryDAO


public class SkillMemoryDAO
implements SkillDAO

Author:
Jérôme Beau pour Orange (c) 2002
Version: $Revision: 1.1.1.1 $
Stereotype singleton
testcase test.org.orange.kicsa.integration.skill.TestSkillJDBCDAO

Field Summary
 final static StringLEVELS_SEPARATOR
           
 (package private) Loggerlog
           
 (package private) final Object[][]RELATIONSHIPS
           
 (package private) final Object[][]SKILL_LEVELS
           
 (package private) final Object[][]SKILLS
           

Method Summary
 voidcacheDestination(Skill someSourceSkill, String someRelationshipType, SkillKey someDestinationSkill)
           
 voidclearCache()
           
 Skillcreate(Skill someSkill)
          Enregistre une nouvelle compétence
 MapgetAll()
           
 SkillgetByPrimaryKey(SkillKey someSkillKey)
           
 CollectiongetChilds(Skill someParentSkill)
           
 CollectiongetDestinations(Skill someSourceSkill)
           
 CollectiongetDestinations(Skill someSourceSkill, String someRelationshipType)
           
 static SkillMemoryDAOgetInstance()
           
 SortedMapgetLevels(SkillKey someSkillKey)
           
 CollectiongetParents(Skill someChildSkill)
           
 CollectiongetSources(Skill someDestinationSkill, String someRelationshipType)
           
 StringlevelsToString(SortedMap someLevels)
           
 voidlink(Skill someSourceSkill, String someType, SkillKey someDestinationSkill)
          Crée une nouvelle relation entre deux compétences
 intremove(SkillKey someSkillKey)
           
 voidremoveRelationship(SkillKey someSkillKey, String relationshipType, SkillKey relationshipDestination)
           
 intremoveRelationships(SkillKey someSkillKey)
           
 Skillupdate(Skill someSkill)
           
 voidupdateRelationship(SkillKey someSkillKey, String relationshipType, SkillKey relationshipDestination)
           

Field Detail

LEVELS_SEPARATOR

public final static String LEVELS_SEPARATOR

log

Logger log

RELATIONSHIPS

final Object[][] RELATIONSHIPS

SKILL_LEVELS

final Object[][] SKILL_LEVELS

SKILLS

final Object[][] SKILLS
Method Detail

cacheDestination

public void cacheDestination(Skill someSourceSkill, String someRelationshipType, SkillKey someDestinationSkill)

clearCache

public void clearCache()

create

public Skill create(Skill someSkill)
throws org.orange.util.integration.DAOException
Enregistre une nouvelle compétence
Parameters:
someShortName Le nom court de la compétence
someLongName Le nom long de la compétence
someComments Les commentaires sur cette compétence
someLevelDescriptions Les descriptions de niveaux sur cette compétence
Returns: La clé primaire de la compétence enregistrée

getAll

public Map getAll()
throws org.orange.util.integration.DAOException

getByPrimaryKey

public Skill getByPrimaryKey(SkillKey someSkillKey)
throws org.orange.util.integration.DAOException,
org.orange.kicsa.SkillNotFoundException

getChilds

public Collection getChilds(Skill someParentSkill)
throws org.orange.util.integration.DAOException

getDestinations

public Collection getDestinations(Skill someSourceSkill)
throws org.orange.util.integration.DAOException

getDestinations

public Collection getDestinations(Skill someSourceSkill, String someRelationshipType)

getInstance

public static SkillMemoryDAO getInstance()
throws org.orange.util.integration.DAOException
Returns: Le singleton

getLevels

public SortedMap getLevels(SkillKey someSkillKey)
throws org.orange.util.integration.DAOException,
org.orange.kicsa.SkillNotFoundException

getParents

public Collection getParents(Skill someChildSkill)
throws org.orange.util.integration.DAOException

getSources

public Collection getSources(Skill someDestinationSkill, String someRelationshipType)

levelsToString

public String levelsToString(SortedMap someLevels)

link

public void link(Skill someSourceSkill, String someType, SkillKey someDestinationSkill)
throws org.orange.util.integration.DAOException
Crée une nouvelle relation entre deux compétences

remove

public int remove(SkillKey someSkillKey)
throws org.orange.util.integration.DAOException

removeRelationship

public void removeRelationship(SkillKey someSkillKey, String relationshipType, SkillKey relationshipDestination)
throws org.orange.util.integration.DAOException

removeRelationships

public int removeRelationships(SkillKey someSkillKey)
throws org.orange.util.integration.DAOException

update

public Skill update(Skill someSkill)
throws org.orange.util.integration.DAOException

updateRelationship

public void updateRelationship(SkillKey someSkillKey, String relationshipType, SkillKey relationshipDestination)
throws org.orange.util.integration.DAOException

Association Links

to Class java.util.Map

to Class java.util.Map

to Class java.util.Map

to Class java.util.Map

to Class org.orange.kicsa.integration.skill.SkillMemoryDAO

Supplier Role instance

to Class java.util.Map

to Class java.lang.String

Dependency Links

to Class test.org.orange.kicsa.integration.skill.TestSkillJDBCDAO

to Class org.orange.kicsa.integration.skill.SkillDAO

to Class java.util.Map

to Class java.lang.Object

to Class java.lang.Integer

to Class org.orange.kicsa.business.skill.SkillLevelImpl

to Class org.orange.kicsa.business.skill.SkillKey

to Class org.orange.kicsa.business.skill.SkillImpl

to Class org.orange.util.integration.DAOException

to Class java.util.HashMap

to Class java.util.SortedMap

to Class java.util.TreeMap

to Class org.orange.kicsa.business.skill.Skill

to Class java.lang.String

to Class java.util.Collection

to Class org.orange.util.Assert

to Class java.util.StringTokenizer

to Class java.util.List

to Class java.util.ArrayList

to Class java.util.Iterator

to Class java.lang.StringBuffer

to Class java.util.Date

to Class java.lang.Class

to Class org.orange.kicsa.SkillNotFoundException

to Class java.lang.RuntimeException

to Class org.orange.kicsa.business.skill.SkillLevel

to Class org.orange.util.NotImplementedException

to Class Diagram test.org.orange.kicsa.integration.skill

to Class Diagram test.org.orange.kicsa.integration

to Class Diagram test.org.orange.kicsa

to Class Diagram test.org.orange

to Class Diagram test.org

to Class Diagram test

to Class Diagram <default>

to Class Diagram org.orange.kicsa.integration.skill

to Class Diagram org.orange.kicsa.integration

to Class Diagram org.orange.kicsa

to Class Diagram org.orange

to Class Diagram org

to Class Diagram org.orange.kicsa.business.skill

to Class Diagram org.orange.kicsa.business

to Class Diagram org.orange.util.integration

to Class Diagram org.orange.util