|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IJenaContext
| Method Summary | |
|---|---|
void |
begin()
|
void |
commit()
|
com.hp.hpl.jena.ontology.DatatypeProperty |
getDatatypeProperty(String uri)
|
com.hp.hpl.jena.ontology.OntModel |
getModel()
return jena ontology model of the context |
String |
getNS()
return namespace of context |
com.hp.hpl.jena.ontology.ObjectProperty |
getObjectProperty(String uri)
|
com.hp.hpl.jena.ontology.OntClass |
getOntClass(String uri)
|
com.hp.hpl.jena.ontology.OntProperty |
getOntProperty(String uri)
|
String |
getSchemaURI()
|
void |
init(Properties props)
|
boolean |
isTransactionSupported()
|
void |
registerChangedSubject(Entity subj)
When some Entity was changed (its attribute/value/metadata was added/removed/changed) it should be registered using this method to be validated before saving the context by . |
void |
rollback()
|
void |
setValidationMode(boolean performValidation)
|
void |
unregisterChangedSubject(Entity subj)
When some Entity was removed it should be also removed from changed subjects list to prevent validation of non-existent subject |
| Methods inherited from interface org.eclipse.higgins.idas.api.IContext |
|---|
addEntity, addEntity, applyUpdates, buildAttribute, buildAttributeAssertion, buildAuthNAttributesMaterials, buildComplexAttrValue, buildEntityIDAssertion, buildEntityTypeAssertion, buildFilter, buildSimpleAttrValue, cancelUpdates, close, exportData, getContextID, getContextModel, getEntities, getEntities, getEntities, getEntity, getEntity, getSchema, importData, isOpen, open, open, reopen, setComponentSetting, setComponentSetting, setSchema, verifyEntityAttributes |
| Methods inherited from interface org.eclipse.higgins.idas.api.IHasAttributes |
|---|
addAttribute, addAttribute, equals, getAttribute, getAttributes, getSingleValuedAttribute, removeAttribute, removeAttributeValue, removeAttributeValue |
| Method Detail |
|---|
com.hp.hpl.jena.ontology.OntModel getModel()
throws org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.IdASException - If the context is not open or its ontology model is not
initializedString getNS()
com.hp.hpl.jena.ontology.DatatypeProperty getDatatypeProperty(String uri)
throws org.eclipse.higgins.idas.api.IdASException
uri -
org.eclipse.higgins.idas.api.IdASException
com.hp.hpl.jena.ontology.ObjectProperty getObjectProperty(String uri)
throws org.eclipse.higgins.idas.api.IdASException
uri -
org.eclipse.higgins.idas.api.IdASException
com.hp.hpl.jena.ontology.OntProperty getOntProperty(String uri)
throws org.eclipse.higgins.idas.api.IdASException
uri -
org.eclipse.higgins.idas.api.IdASException
com.hp.hpl.jena.ontology.OntClass getOntClass(String uri)
throws org.eclipse.higgins.idas.api.IdASException
uri -
org.eclipse.higgins.idas.api.IdASException
void init(Properties props)
throws org.eclipse.higgins.idas.api.IdASException
props -
org.eclipse.higgins.idas.api.IdASException
void begin()
throws org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.IdASException
void commit()
throws org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.IdASException
void rollback()
throws org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.IdASException
boolean isTransactionSupported()
throws org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.IdASException
String getSchemaURI()
throws org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.IdASExceptionvoid registerChangedSubject(Entity subj)
subj - void unregisterChangedSubject(Entity subj)
subj - void setValidationMode(boolean performValidation)
performValidation - if true then all changed subjects should be validated
before saving of the context. Default value is true. In case of JDBC Context, if
RDBMS does not support transactions, validation will not be performed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||