| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.orange.util.integration.JDBCDAO | +--org.orange.kicsa.integration.skill.SkillJDBCDAO
Skill Data Access Object (DAO)
| Field Summary | |
final static String | ALL_FIELDS |
(package private) SkillMemoryDAO | cacheCache |
final static String | COMMENTS |
final static String | INSERTInsère une nouvelle compétence |
final static String | KEY |
final static String | LEVEL_DESCRIPTIONS |
final static String | LEVELS_SEPARATOR |
final static String | LONG_NAME |
final static String | RELATIONSHIP_ID_FROM |
final static String | RELATIONSHIP_ID_TO |
final static String | RELATIONSHIP_INSERTCréation d'une nouvelle relation |
final static String | RELATIONSHIP_REMOVE |
final static String | RELATIONSHIP_REMOVE_FOR_SKILL |
final static String | RELATIONSHIP_TABLE |
final static String | RELATIONSHIP_TYPE |
final static String | RELATIONSHIP_UPDATE |
final static String | REMOVE |
final static String | SELECT_ALL |
final static String | SELECT_ALL_DESTINATIONSRécupère les clés, noms courts et longs des compétences parentes |
final static String | SELECT_BY_PRIMARY_KEY |
final static String | SELECT_DESTINATIONSRécupère les clés, noms courts et longs des compétences parentes |
final static String | SELECT_LEVELS_BY_SKILL |
final static String | SELECT_NEW_KEYRecherche la plus grande clé. |
final static String | SELECT_SOURCESRécupère toutes les clés de compétences destinations pour une compétence donnée public final static String SELECT_ALL_DESTINATIONS = SELECT + ID_TO + FROM + TABLE + WHERE + ID_FROM + "=?" |
final static String | SHORT_NAME |
final static String | SKILL_UPDATEModification d'un enregistrement de compétence |
final static String | STATUS |
final static char | STATUS_APPROVED |
final static char | STATUS_PROPOSED |
final static String | TABLE |
| Fields inherited from class org.orange.util.integration.JDBCDAO |
AND, CONNECTION_FACTORY_CLASS_NAME, CONNECTION_FACTORY_CLASS_NAME_DEFAULT, DELETE_FROM, DISTINCT, EQUAL_PARAMETER, FROM, IN, INSERT_INTO, LIKE, NOT, OR, ORDER_BY, SELECT, SET, UPDATE, VALUES, WHERE |
| Method Summary | |
void | clearCache() |
Skill | create(Skill someSkill)Enregistre une nouvelle compétence |
Map | getAll() |
Skill | getByPrimaryKey(SkillKey someKey) |
Collection | getChilds(Skill someParentSkill) |
Collection | getDestinations(Skill someSourceSkill)Return all relationship destinations from a given skill. |
Collection | getDestinations(Skill someSourceSkill, String someRelationshipType) |
static SkillDAO | getInstance()Recherche les compétences racines (sans relations parent) public final static String SELECT_ROOTS = SELECT + " distinct " + ALL_FIELDS + FROM + TABLE + " LEFT JOIN " + TABLE + " ON " + TABLE + "." |
SortedMap | getLevels(SkillKey someSkillKey) |
Collection | getParents(Skill someChildSkill) |
Collection | getSources(Skill someDestinationSkill, String someRelationshipType)Get skills linking to some skill with some relationship type This method lookup in cache first, and then read if not found in cache; return them. |
boolean | isCacheEnabled() |
void | link(Skill someFromSkill, String someType, SkillKey someToSkillKey)Crée une nouvelle relation entre deux compétences |
Map | readAll() |
Skill | readByPrimaryKey(SkillKey someKey)Get a skill by its name |
SortedMap | readLevels(SkillKey someSkillKey) |
int | remove(SkillKey someSkillKey)Supprime un enregistrement de compétence |
void | removeRelationship(SkillKey someSource, String someRelationshipType, SkillKey someDestination) |
int | removeRelationships(SkillKey someSkillKey)Remove relationships to or from a skill |
void | setCacheEnabled(boolean someEnabledState) |
Skill | update(Skill someSkill)Met à jour une nouvelle compétence Cette méthode ne prend pas en compte la mise à jour des relations de la compétence. |
void | updateRelationship(SkillKey someSource, String someRelationshipType, SkillKey someDestination)Update a relationship between two skills |
| Methods inherited from class org.orange.util.integration.JDBCDAO |
getConnection |
| Field Detail |
public final static String ALL_FIELDS
SkillMemoryDAO cache
public final static String COMMENTS
public final static String INSERT
public final static String KEY
public final static String LEVEL_DESCRIPTIONS
public final static String LEVELS_SEPARATOR
public final static String LONG_NAME
public final static String RELATIONSHIP_ID_FROM
public final static String RELATIONSHIP_ID_TO
public final static String RELATIONSHIP_INSERT
public final static String RELATIONSHIP_REMOVE
public final static String RELATIONSHIP_REMOVE_FOR_SKILL
public final static String RELATIONSHIP_TABLE
public final static String RELATIONSHIP_TYPE
public final static String RELATIONSHIP_UPDATE
public final static String REMOVE
public final static String SELECT_ALL
public final static String SELECT_ALL_DESTINATIONS
public final static String SELECT_BY_PRIMARY_KEY
public final static String SELECT_DESTINATIONS
public final static String SELECT_LEVELS_BY_SKILL
public final static String SELECT_NEW_KEY
public final static String SELECT_SOURCES
public final static String SHORT_NAME
public final static String SKILL_UPDATE
public final static String STATUS
public final static char STATUS_APPROVED
public final static char STATUS_PROPOSED
public final static String TABLE
| Method Detail |
public void clearCache()
public Skill create(Skill someSkill)
throws org.orange.util.integration.DAOException
public Map getAll()
throws org.orange.util.integration.DAOException
public Skill getByPrimaryKey(SkillKey someKey)
throws org.orange.util.integration.DAOException,
org.orange.kicsa.SkillNotFoundException
public Collection getChilds(Skill someParentSkill)
throws org.orange.util.integration.DAOException
public Collection getDestinations(Skill someSourceSkill)
throws org.orange.util.integration.DAOException
public Collection getDestinations(Skill someSourceSkill, String someRelationshipType)
throws org.orange.util.integration.DAOException
public static SkillDAO getInstance()
throws org.orange.util.integration.DAOException
public SortedMap getLevels(SkillKey someSkillKey)
throws org.orange.util.integration.DAOException,
org.orange.kicsa.SkillNotFoundException
public Collection getParents(Skill someChildSkill)
throws org.orange.util.integration.DAOException
public Collection getSources(Skill someDestinationSkill, String someRelationshipType)
throws org.orange.util.integration.DAOException
This method lookup in cache first, and then read if not found in cache; return them.
public boolean isCacheEnabled()
public void link(Skill someFromSkill, String someType, SkillKey someToSkillKey)
throws org.orange.util.integration.DAOException
public Map readAll()
throws org.orange.util.integration.DAOException
public Skill readByPrimaryKey(SkillKey someKey)
throws org.orange.util.integration.DAOException,
org.orange.kicsa.SkillNotFoundException
public SortedMap readLevels(SkillKey someSkillKey)
throws org.orange.kicsa.SkillNotFoundException,
org.orange.util.integration.DAOException
public int remove(SkillKey someSkillKey)
throws org.orange.util.integration.DAOException
public void removeRelationship(SkillKey someSource, String someRelationshipType, SkillKey someDestination)
throws org.orange.util.integration.DAOException
public int removeRelationships(SkillKey someSkillKey)
throws org.orange.util.integration.DAOException
public void setCacheEnabled(boolean someEnabledState)
throws org.orange.util.integration.DAOException
public Skill update(Skill someSkill)
throws org.orange.util.integration.DAOException
Cette méthode ne prend pas en compte la mise à jour des relations de la compétence.
public void updateRelationship(SkillKey someSource, String someRelationshipType, SkillKey someDestination)
throws org.orange.util.integration.DAOException
| Association Links |
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class org.orange.kicsa.integration.skill.SkillMemoryDAO
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class org.orange.kicsa.integration.skill.SkillJDBCDAO
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
| Dependency Links |
to Class org.orange.util.integration.JDBCDAO
to Class org.orange.kicsa.integration.skill.SkillDAO
to Class java.lang.String
to Class org.orange.util.integration.DAOException
to Class org.orange.kicsa.integration.skill.SkillMemoryDAO
to Class org.orange.kicsa.business.skill.Skill
to Class org.orange.kicsa.business.skill.SkillKey
to Class org.orange.util.Assert
to Class java.sql.Connection
to Class java.sql.PreparedStatement
to Class java.sql.SQLException
to Class org.orange.kicsa.Application
to Class java.util.Collection
to Class org.orange.kicsa.integration.skill.RelationshipTypeJDBCDAO
to Class java.util.Iterator
to Class java.util.HashSet
to Class java.util.Set
to Class java.sql.ResultSet
to Class java.util.ArrayList
to Class org.orange.kicsa.business.skill.Relationship
to Class java.lang.Throwable
to Class org.orange.kicsa.SkillNotFoundException
to Class java.util.SortedMap
to Class org.orange.kicsa.business.skill.SkillImpl
to Class org.orange.kicsa.business.skill.RelationshipImpl
to Class java.util.StringTokenizer
to Class java.util.List
to Class java.util.Map
to Class java.util.HashMap
to Class java.lang.Integer
to Class java.lang.StringBuffer
to Class java.util.Date
to Class java.lang.Class
to Class org.orange.kicsa.business.skill.SkillLevel
to Class java.util.TreeMap
to Class java.lang.NumberFormatException
to Class org.orange.kicsa.business.skill.SkillLevelImpl
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.util.integration
to Class Diagram org.orange.util
to Class Diagram org.orange
to Class Diagram org
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.kicsa.business.skill
to Class Diagram org.orange.kicsa.business
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||