|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qriterium.dogma.SQLHandler
public class SQLHandler
Constructor Summary | |
---|---|
SQLHandler()
|
Method Summary | |
---|---|
static java.lang.String |
collectionQuery(DogmaResource resource)
collectionQuery is not currently in use. |
static java.lang.String |
connectionQuery(DogmaResource resource)
connectionQuery searches all connections associated with resource given as a parameter. |
static java.lang.String |
connectionToExec(DogmaConnection connection,
java.lang.String oper)
Parses a connection to a new reference row into the database or updates an existing one. |
static java.lang.String |
connectionToQuery(DogmaConnection connection)
connectionToQuery searches for a specific connection between two resources. |
static java.lang.String |
containsReference(java.lang.String key)
searches for a reference by key. |
static java.lang.String |
dataToQuery(ResourceFactory rf)
|
static java.lang.String |
getTagQuery(java.lang.String tag)
getTagQuery searches all resources associated with a given tag. |
static java.lang.String |
resourceSearch(DogmaResource resource)
|
static java.lang.String |
resourceToExec(DogmaResource resource,
java.lang.String oper)
Parses resource to a SQL-query. |
static java.lang.String |
resourceToQuery(DogmaResource resource)
resourceToQuery parses an SQL query from a given Dogmaresource. |
static java.lang.String |
searchByTag(java.lang.String tag)
searches all resources associated to a tag. |
static java.lang.String |
uriToExec(DogmaURI uri,
java.lang.String oper)
Adds an URI or updates a current one. |
static java.lang.String |
uriToQuery(DogmaResource resource)
constructs a query to search any URI associated with given resource. |
static java.lang.String |
uriToQuery(DogmaURI uri)
Creates a SQL-query from the given URI. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLHandler()
Method Detail |
---|
public static java.lang.String resourceToQuery(DogmaResource resource)
resource
-
public static java.lang.String resourceSearch(DogmaResource resource)
public static java.lang.String collectionQuery(DogmaResource resource)
resource
-
public static java.lang.String getTagQuery(java.lang.String tag)
tag
-
public static java.lang.String connectionQuery(DogmaResource resource)
resource
-
public static java.lang.String connectionToQuery(DogmaConnection connection)
connection
-
public static java.lang.String containsReference(java.lang.String key)
key
-
public static java.lang.String searchByTag(java.lang.String tag)
tag
-
public static java.lang.String uriToQuery(DogmaURI uri)
uri
-
public static java.lang.String uriToQuery(DogmaResource resource)
resource
-
public static java.lang.String dataToQuery(ResourceFactory rf)
public static java.lang.String resourceToExec(DogmaResource resource, java.lang.String oper)
resource
- The resource to be parsed turned into a sql-query.oper
- The type of the operation we want.
Possibilities: INSERT, UPDATE and DELETE (delete not implemented).
public static java.lang.String connectionToExec(DogmaConnection connection, java.lang.String oper)
connection
- oper
-
public static java.lang.String uriToExec(DogmaURI uri, java.lang.String oper)
uri
- oper
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |