org.openrdf.sesame.sailimpl.omm.security
Class QueryRestriction

java.lang.Object
  extended byorg.openrdf.sesame.sailimpl.omm.security.Restriction
      extended byorg.openrdf.sesame.sailimpl.omm.security.QueryRestriction

public class QueryRestriction
extends Restriction

QueryRestriction.java

Title: Knowledge Control System

Company: OntoText Lab. Sirma AI.

Version:
1.0
Author:
damyan ognyanoff, borislav popov

Field Summary
 
Fields inherited from class org.openrdf.sesame.sailimpl.omm.security.Restriction
CLASSES, CLASSES_OVER_SCHEMA, CLASSES_OVER_SCHEMA_RESTRICTION, CLASSES_RESTRICTION, INSTANCES, INSTANCES_RESTRICTION, PATTERN, PATTERN_RESTRICTION, PROPERTIES, PROPERTIES_RESTRICTION, QUERY, QUERY_RESTRICTION, REPOSITORY, REPOSITORY_RESTRICTION, SCHEMA, SCHEMA_RESTRICTION
 
Method Summary
 void addQuery(String strQuery)
          Adds a query to this restriction.
 Set getQueries()
          Gets the set of queries that form this restriction.
 ArrayList toSql(Map idByLiteral, Map idByRes)
          Creates update queries over the restrictions, res_prop_restrs, query_restrs, pattern_restrs tables.
 
Methods inherited from class org.openrdf.sesame.sailimpl.omm.security.Restriction
createClassesOverSchemaRestriction, createClassesOverSchemaRestriction, createClassesRestriction, createClassesRestriction, createInstancesRestriction, createInstancesRestriction, createPatternRestriction, createPatternRestriction, createPropertiesRestriction, createPropertiesRestriction, createQueryRestriction, createQueryRestriction, createRepositoryRestriction, createRepositoryRestriction, createRestriction, createRestriction, createSchemaRestriction, createSchemaRestriction, getDescription, getId, getName, getRestrictions, getType, getUri, setDescription, setId, setName, setType, setUri, type2Int, type2String
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addQuery

public void addQuery(String strQuery)
Adds a query to this restriction.

Parameters:
strQuery - the query to be added.

getQueries

public Set getQueries()
Gets the set of queries that form this restriction.

Returns:
the set of queries that form this restriction

toSql

public ArrayList toSql(Map idByLiteral,
                       Map idByRes)
                throws NullParameterException,
                       SecurityException
Description copied from class: Restriction
Creates update queries over the restrictions, res_prop_restrs, query_restrs, pattern_restrs tables.

Overrides:
toSql in class Restriction
Returns:
A list of update SQL queries, to be used to mirror the objects' properties from memory to an SQL repository.
Throws:
NullParameterException
SecurityException


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.