org.ow2.weblab.core.extended.factory
Class PoKFactory

java.lang.Object
  extended by org.ow2.weblab.core.extended.factory.PoKFactory

public class PoKFactory
extends java.lang.Object

To create PieceOfKnowledges we strongly encourage to use this class. It will enable the creation of an Annotation having an URI compliant with the WebLabRI recommendations.
You may need PieceOfKnowledges in three main cases.

Since:
1.1
Author:
Cassidian WebLab Team
See Also:
AnnotationFactory, ResourceFactory
Date:
2008-07-20

Method Summary
static PieceOfKnowledge createAndLinkPoK(ResultSet resultSet)
          Automatically set a valid WebLabRI to the created PieceOfKnowledge using the ResultSet in parameter to generate an unique id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createAndLinkPoK

public static PieceOfKnowledge createAndLinkPoK(ResultSet resultSet)
Automatically set a valid WebLabRI to the created PieceOfKnowledge using the ResultSet in parameter to generate an unique id. Created PoK will be added to resultSet.

Parameters:
resultSet - the ResultSet that will contains the created PieceOfKnowledge
Returns:
a new PieceOfKnowledge with a valid WebLabRI and added to resultSet


Copyright © 2004-2011 WebLab Project. All Rights Reserved.