|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Annotation
This common schema interface defines the schemas in which the abstraction layers access the metadata associated with VDC elements. This layer is independent of the implementing database, and does so by going via the database driver class API.
DatabaseSchema,
org.griphyn.vdl.dbdriver| Field Summary | |
|---|---|
static int |
CLASS_CALL
Annotations for call statements. |
static int |
CLASS_DECLARE
Annotations for formal arguments. |
static int |
CLASS_DERIVATION
Annotations for derivations. |
static int |
CLASS_FILENAME
Annotations for logical filenames. |
static int |
CLASS_TRANSFORMATION
Annotations for transformations. |
| Method Summary | |
|---|---|
boolean |
deleteAnnotation(String primary,
Object secondary,
int kind,
String key)
Deletes an annotation with the specified key. |
boolean |
deleteAnnotationCall(String fqdi,
int index,
String key)
Deletes a specific key for a call statement. |
boolean |
deleteAnnotationDeclare(String fqdi,
String farg,
String key)
Deletes a specific key in an annotated formal argument. |
boolean |
deleteAnnotationDerivation(String fqdi,
String key)
Deletes a specific key in an annotated derivation. |
boolean |
deleteAnnotationFilename(String filename,
String key)
Deletes a specific key in an annotated filename. |
boolean |
deleteAnnotationTransformation(String fqdi,
String key)
Deletes a specific key in an annotated transformation. |
List |
loadAnnotation(String primary,
Object secondary,
int kind)
Retrieves all annotations from an annotatable classes with the specified tuple. |
Tuple |
loadAnnotation(String primary,
Object secondary,
int kind,
String key)
Retrieves a specific annotation from an annotatable classes with the specified tuple. |
List |
loadAnnotationCall(String fqdi,
int index)
Lists all annotations for a call statement. |
Tuple |
loadAnnotationCall(String fqdi,
int index,
String key)
Obtains the value to a specific key for a call statement. |
List |
loadAnnotationDeclare(String fqdi,
String farg)
Lists all annotations for a formal argument. |
Tuple |
loadAnnotationDeclare(String fqdi,
String farg,
String key)
Obtains the value to a specific key in an annotated formal argument. |
List |
loadAnnotationDerivation(String fqdi)
Lists all annotations for a derivation. |
Tuple |
loadAnnotationDerivation(String fqdi,
String key)
Obtains the value to a specific key in an annotated derivation. |
List |
loadAnnotationFilename(String filename)
Lists all annotations for a logical filename. |
Tuple |
loadAnnotationFilename(String filename,
String key)
Obtains the value to a specific key in an annotated filename. |
List |
loadAnnotationTransformation(String fqdi)
Lists all annotations for a transformation. |
Tuple |
loadAnnotationTransformation(String fqdi,
String key)
Obtains the value to a specific key in an annotated transformation. |
long |
saveAnnotation(String primary,
Object secondary,
int kind,
Tuple annotation,
boolean overwrite)
Annotates any of the annotatable classes with the specified tuple. |
long |
saveAnnotationCall(String fqdi,
int index,
Tuple annotation,
boolean overwrite)
Annotates a transformation call with a tuple. |
long |
saveAnnotationDeclare(String fqdi,
String formalname,
Tuple annotation,
boolean overwrite)
Annotates a transformation argument with a tuple. |
long |
saveAnnotationDerivation(String fqdi,
Tuple annotation,
boolean overwrite)
Annotates a derivation with a tuple. |
long |
saveAnnotationFilename(String filename,
Tuple annotation,
boolean overwrite)
Annotates a logical filename with a tuple. |
long |
saveAnnotationTransformation(String fqdi,
Tuple annotation,
boolean overwrite)
Annotates a transformation with a tuple. |
List |
searchAnnotation(int kind,
Object arg,
QueryTree tree)
Search for LFNs or Definitions that has certain annotations |
| Field Detail |
|---|
static final int CLASS_TRANSFORMATION
static final int CLASS_DERIVATION
static final int CLASS_CALL
static final int CLASS_DECLARE
static final int CLASS_FILENAME
| Method Detail |
|---|
long saveAnnotation(String primary,
Object secondary,
int kind,
Tuple annotation,
boolean overwrite)
throws SQLException,
IllegalArgumentException
primary - is the primary object specifier for the class.
According to the type, this is either the FQDI, or the filename.secondary - is a helper argument for annotations to calls
and formal arguments, and should be null for all other classes.
For calls, the argument must be packed into Integer.kind - defines the kind/class of object to annotate.annotation - is the value to place into the class.overwrite - is a predicate on replace or maintain.
SQLException
IllegalArgumentExceptionsaveAnnotationTransformation( String, Tuple, boolean ),
saveAnnotationDerivation( String, Tuple, boolean ),
saveAnnotationCall( String, int, Tuple, boolean ),
saveAnnotationDeclare( String, String, Tuple, boolean ),
saveAnnotationFilename( String, Tuple, boolean )
long saveAnnotationTransformation(String fqdi,
Tuple annotation,
boolean overwrite)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI to annotateannotation - is the value to placeoverwrite - is a predicate on replace or maintain.
SQLException
IllegalArgumentExceptionTransformation
long saveAnnotationDerivation(String fqdi,
Tuple annotation,
boolean overwrite)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI to annotateannotation - is the value to placeoverwrite - is a predicate on replace or maintain.
SQLException
IllegalArgumentExceptionDerivation
long saveAnnotationDeclare(String fqdi,
String formalname,
Tuple annotation,
boolean overwrite)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI to annotateformalname - is the name of the formal argument to annotoate.annotation - is the value to placeoverwrite - is a predicate on replace or maintain.
SQLException
IllegalArgumentExceptionDeclare
long saveAnnotationCall(String fqdi,
int index,
Tuple annotation,
boolean overwrite)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI to annotateindex - is the number of the call to annotate.annotation - is the value to placeoverwrite - is a predicate on replace or maintain.
SQLException
IllegalArgumentExceptionCall
long saveAnnotationFilename(String filename,
Tuple annotation,
boolean overwrite)
throws SQLException,
IllegalArgumentException
filename - is the FQDI to annotateannotation - is the value to placeoverwrite - is a predicate on replace or maintain.
SQLException
IllegalArgumentExceptionLFN
Tuple loadAnnotation(String primary,
Object secondary,
int kind,
String key)
throws SQLException,
IllegalArgumentException
primary - is the primary object specifier for the class.
According to the type, this is either the FQDI, or the filename.secondary - is a helper argument for annotations to calls
and formal arguments, and should be null for all other classes.
For calls, the argument must be packed into Integer.kind - defines the kind/class of object to annotate.key - is the key to look for.
SQLException
IllegalArgumentExceptionloadAnnotationTransformation( String, String ),
loadAnnotationDerivation( String, String ),
loadAnnotationCall( String, int, String ),
loadAnnotationDeclare( String, String, String ),
loadAnnotationFilename( String, String )
Tuple loadAnnotationTransformation(String fqdi,
String key)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the transformationkey - is the key to search for
SQLException
IllegalArgumentExceptionTransformation
Tuple loadAnnotationDerivation(String fqdi,
String key)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the derivationkey - is the key to search for
SQLException
IllegalArgumentExceptionDerivation
Tuple loadAnnotationDeclare(String fqdi,
String farg,
String key)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the transformationfarg - is the name of the formal argumentkey - is the key to search for
SQLException
IllegalArgumentExceptionDeclare
Tuple loadAnnotationCall(String fqdi,
int index,
String key)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the transformationindex - is the number of the call to annotate.key - is the key to search for
SQLException
IllegalArgumentExceptionCall
Tuple loadAnnotationFilename(String filename,
String key)
throws SQLException,
IllegalArgumentException
filename - is the name of the file that was annotated.key - is the key to search for
SQLException
IllegalArgumentExceptionLFN
List loadAnnotation(String primary,
Object secondary,
int kind)
throws SQLException,
IllegalArgumentException
primary - is the primary object specifier for the class.
According to the type, this is either the FQDI, or the filename.secondary - is a helper argument for annotations to calls
and formal arguments, and should be null for all other classes.
For calls, the argument must be packed into Integer.kind - defines the kind/class of object to annotate.
SQLException
IllegalArgumentExceptionloadAnnotationTransformation( String ),
loadAnnotationDerivation( String ),
loadAnnotationCall( String, int ),
loadAnnotationDeclare( String, String ),
loadAnnotationFilename( String )
List loadAnnotationTransformation(String fqdi)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the transformation
SQLException
IllegalArgumentExceptionTransformation
List loadAnnotationDerivation(String fqdi)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the derivation
SQLException
IllegalArgumentExceptionDerivation
List loadAnnotationDeclare(String fqdi,
String farg)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the transformationfarg - is the name of the formal argument
SQLException
IllegalArgumentExceptionDeclare
List loadAnnotationCall(String fqdi,
int index)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the transformationindex - is the number of the call to annotate.
SQLException
IllegalArgumentExceptionCall
List loadAnnotationFilename(String filename)
throws SQLException,
IllegalArgumentException
filename - is the logical filename.
SQLException
IllegalArgumentExceptionLFN
List searchAnnotation(int kind,
Object arg,
QueryTree tree)
throws SQLException
kind - defines the kind/class of object annotated.arg - is used only for TR ARG and TR CALL. For the former
it is the name of the argument (String), for the latter the position of
the call (Integer).tree - stores the query tree to query the annotation
SQLException - if something goes wrong with the database.QueryTree
boolean deleteAnnotation(String primary,
Object secondary,
int kind,
String key)
throws SQLException,
IllegalArgumentException
primary - is the primary object specifier for the class.
According to the type, this is either the FQDI, or the filename.secondary - is a helper argument for annotations to calls
and formal arguments, and should be null for all other classes.
For calls, the argument must be packed into Integer.kind - defines the kind/class of object to annotate.key - is the annotation key.
SQLException, - if something went wrong during database
access.
SQLException
IllegalArgumentException
boolean deleteAnnotationTransformation(String fqdi,
String key)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the transformationkey - is the key to search for
SQLException
IllegalArgumentExceptionTransformation
boolean deleteAnnotationDerivation(String fqdi,
String key)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the derivationkey - is the key to search for
SQLException
IllegalArgumentExceptionDerivation
boolean deleteAnnotationDeclare(String fqdi,
String farg,
String key)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the transformationfarg - is the name of the formal argumentkey - is the key to search for
SQLException
IllegalArgumentExceptionDeclare
boolean deleteAnnotationCall(String fqdi,
int index,
String key)
throws SQLException,
IllegalArgumentException
fqdi - is the FQDI of the transformationindex - is the number of the call to annotate.key - is the key to search for
SQLException
IllegalArgumentExceptionCall
boolean deleteAnnotationFilename(String filename,
String key)
throws SQLException,
IllegalArgumentException
filename - is the name of the file that was annotated.key - is the key to search for
SQLException
IllegalArgumentExceptionLFN
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||