| org.griphyn.vdl.dbschema.VDC
All known Subclasses: org.griphyn.vdl.dbschema.ChunkSchema, org.griphyn.vdl.dbschema.InMemorySchema,
VDC | public interface VDC extends Catalog(Code) | | This common schema interface defines the schemas in which the
abstraction layers access the VDC. This layer is independent of the
implementing database, and does so by going via the database driver
class API.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 50 $ See Also: org.griphyn.vdl.dbschema.DatabaseSchema See Also: See Also: org.griphyn.vdl.dbdriver See Also: |
Field Summary | |
final public static String | PROPERTY_PREFIX Names the property key prefix employed for schemas dealing with the VDC. |
Method Summary | |
abstract public boolean | containsDefinition(Definition definition) Check with the backend database, if the given definition exists. | abstract public boolean | deleteDefinition(Definition definition) Delete a specific Definition objects from the database. | abstract public java.util.List | deleteDefinition(String namespace, String name, String version, int type) Delete one or more definitions from the backend database. | abstract public Definition | loadDefinition(String namespace, String name, String version, int type) Loads a single Definition from the backend database into an Java object.
This method does not allow wildcarding!
Parameters: namespace - namespace, null will be converted into empty string Parameters: name - name, null will be converted into empty string Parameters: version - version, null will be converted into empty string Parameters: type - type of the definition (TR or DV), must not be -1. | abstract public boolean | saveDefinition(Definition definition, boolean overwrite) Saves a Definition, that is either a Transformation or Derivation,
into the backend database. | abstract public java.util.List | searchDefinition(String namespace, String name, String version, int type) Search the database for definitions by ns::name:version triple
and by type (either Transformation or Derivation). | abstract public java.util.List | searchFilename(String lfn, int link) Searches the database for all derivations that contain a certain LFN.
The linkage is an additional constraint. |
PROPERTY_PREFIX | final public static String PROPERTY_PREFIX(Code) | | Names the property key prefix employed for schemas dealing with the VDC.
|
containsDefinition | abstract public boolean containsDefinition(Definition definition) throws SQLException(Code) | | Check with the backend database, if the given definition exists.
Parameters: definition - is a Definition object to search for true, if the Definition exists, false if not found |
loadDefinition | abstract public Definition loadDefinition(String namespace, String name, String version, int type) throws SQLException(Code) | | Loads a single Definition from the backend database into an Java object.
This method does not allow wildcarding!
Parameters: namespace - namespace, null will be converted into empty string Parameters: name - name, null will be converted into empty string Parameters: version - version, null will be converted into empty string Parameters: type - type of the definition (TR or DV), must not be -1. the Definition as specified, or null if not found. See Also: org.griphyn.vdl.classes.Definition.TRANSFORMATION See Also: org.griphyn.vdl.classes.Definition.DERIVATION See Also: VDC.saveDefinition(Definition,boolean) See Also: VDC.containsDefinition(Definition) See Also: VDC.searchDefinition(String,String,String,int) |
saveDefinition | abstract public boolean saveDefinition(Definition definition, boolean overwrite) throws SQLException(Code) | | Saves a Definition, that is either a Transformation or Derivation,
into the backend database.
Parameters: definition - is the new Definition to store. Parameters: overwrite - true, if existing defitions will be overwritten bynew ones with the same primary (or secondary) key (-set), or false,if a new definition will be rejected on key matches. true, if the backend database was changed, orfalse, if the definition was not accepted into the backend. See Also: org.griphyn.vdl.classes.Definition See Also: org.griphyn.vdl.classes.Transformation See Also: org.griphyn.vdl.classes.Derivation See Also: VDC.loadDefinition(String,String,String,int) See Also: VDC.deleteDefinition(String,String,String,int) See Also: |
searchDefinition | abstract public java.util.List searchDefinition(String namespace, String name, String version, int type) throws 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
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: type - 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 See Also: VDC.loadDefinition(String,String,String,int) |
|
|