| java.lang.Object org.griphyn.vdl.directive.Directive org.griphyn.vdl.directive.Search
Method Summary | |
public void | printDefinitionList(Writer writer, java.util.List defList, int format) | public java.util.List | searchAnnotation(int kind, Object arg, QueryTree tree) Search for LFNs or Definitions that has certain annotations
Parameters: kind - defines the kind/class of object annotated. Parameters: arg - is used only for TR ARG and TR CALL. | public java.util.List | searchDefinition(String filename, int link) Search for definitions that contain LFN of specific name
and link type. | public java.util.List | searchDefinition(String namespace, String name, String version, int clsType) Search the database for definitions by ns::name:version triple
and by type (either Transformation or Derivation). | public java.util.List | searchDefinitionEx(String namespace, String name, String version, int clsType) Search the database for definitions by ns::name:version triple
and by type (either Transformation or Derivation). | public void | setDatabaseSchema(DatabaseSchema dbs) |
FORMAT_FQDN | final public static int FORMAT_FQDN(Code) | | Defines the output format constants
|
FORMAT_VDLT | final public static int FORMAT_VDLT(Code) | | |
FORMAT_VDLX | final public static int FORMAT_VDLX(Code) | | |
printDefinitionList | public void printDefinitionList(Writer writer, java.util.List defList, int format) throws IOException(Code) | | Print a list of definitions in different format: fqdn, vdlt, and vdlx
Parameters: writer - the target to output the list Parameters: defList - a list of definitions Parameters: format - the output format See Also: Search.FORMAT_FQDN See Also: Search.FORMAT_VDLT See Also: Search.FORMAT_VDLX See Also: NOTE: might be better to move into another module? |
searchAnnotation | public java.util.List searchAnnotation(int kind, Object arg, QueryTree tree) throws java.sql.SQLException(Code) | | Search for LFNs or Definitions that has certain annotations
Parameters: kind - defines the kind/class of object annotated. Parameters: arg - is used only for TR ARG and TR CALL. For the formerit is the name of the argument (String), for the latter the position of the call (Integer). Parameters: tree - stores the query tree to query the annotation a list of LFNs if search for filenames, otherwise a list ofdefinitions. exception: SQLException - if something goes wrong with the database. See Also: org.griphyn.vdl.annotation.QueryTree |
searchDefinitionEx | public java.util.List searchDefinitionEx(String namespace, String name, String version, int clsType) throws java.sql.SQLException(Code) | | Search the database for definitions by ns::name:version triple
and by type (either Transformation or Derivation). This version
of the search allows for jokers expressed as null value, or special
characters '%' and '_'.
Parameters: namespace - namespace, null to match any namespace Parameters: name - name, null to match any name Parameters: version - version, null to match any version Parameters: clsType - type of definition, see below, or -1 as wildcard a list of Definition items, which may be empty See Also: org.griphyn.vdl.classes.Definition.TRANSFORMATION See Also: org.griphyn.vdl.classes.Definition.DERIVATION |
setDatabaseSchema | public void setDatabaseSchema(DatabaseSchema dbs)(Code) | | set database schema
Parameters: dbs - is the database schema instance |
|
|