|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.TemplateTransformationRepository
public class TemplateTransformationRepository
Manipulate the Template Transformation Repository, built template transformations.
| Constructor Summary | |
|---|---|
TemplateTransformationRepository()
|
|
| Method Summary | |
|---|---|
static void |
createArgument(int arg_id,
int arg_pos,
int arg_id_ref,
int arg_pos_ref,
java.lang.String value)
Adds a new argument to a sequence of arguments |
static int |
createCompositeTransformation(java.lang.String name,
java.lang.String description,
boolean preserves_eq)
Adds a new composite transformation to the TTR. |
static void |
createCompositeTransformationDefinition(int trans_id,
int arg_pos,
java.lang.String description,
boolean isReturnedValue,
int elementNR,
int type,
int typeInstance,
int ref_pos)
|
static void |
createCompositeTransformationDefinition(int trans_id,
int arg_pos,
java.lang.String table_name,
java.lang.String field_name,
java.lang.String description,
boolean isReturnedValue)
Adds a new argument to the composite transformation's definition of arguments. |
static void |
createCompositeTransformationProgram(int trans_id,
int pc,
int st_id,
int arg_id)
Adds a new statement to a composite transformation's program |
static void |
createCompositeTransformationReturnedValuesDefinition(int trans_id,
int arg_id)
Defines where the transformation's returned values are stored. |
static int |
createFirstArgument(int arg_pos,
int arg_id_ref,
int arg_pos_ref,
java.lang.String value)
Creates a new sequence of arguments and adds a new argument to the sequence |
static int[] |
getArgumentsArgIdList()
Returns a list of identifiers of all the sequences of arguments |
static int |
getArgumentsArgIdRef(int arg_id,
int arg_pos)
Returns a particular argument's arg_id_ref field |
static int[] |
getArgumentsArgIdRefList(int arg_id)
Returns a particular's sequence of arguments list of arg_id_ref fields. |
static int[] |
getArgumentsArgPosList(int arg_id)
Returns a particular's sequence of arguments list of positions. |
static int |
getArgumentsArgPosRef(int arg_id,
int arg_pos)
Returns a particular argument's arg_pos_ref field |
static int[] |
getArgumentsArgPosRefList(int arg_id)
Returns a particular's sequence of arguments list of arg_pos_ref fields. |
static java.lang.String |
getArgumentsValue(int arg_id,
int arg_pos)
Returns a particular argument's value field |
static java.lang.String[] |
getArgumentsValueList(int arg_id)
Returns a particular's sequence of arguments list of values. |
static int |
getCompositeTransformationByName(java.lang.String name)
Returns the ID ( trans_id) of the composite transformation specified by name |
static int[] |
getCompositeTransformationDefinitionArgPosList(int trans_id)
Returns a particular transformation's list of argument positions. |
static int[] |
getCompositeTransformationDefinitionArgPosList(int trans_id,
boolean isReturnedValue)
Returns a particular transformation's list of argument positions. |
static java.lang.String |
getCompositeTransformationDefinitionDescription(int trans_id,
int arg_pos)
Returns a particular transformation's argument definition (only the description field). |
static java.lang.String[] |
getCompositeTransformationDefinitionDescriptionList(int trans_id)
Returns a particular transformation's list of argument definitions (only the description field). |
static java.lang.String[] |
getCompositeTransformationDefinitionDescriptionList(int trans_id,
boolean isReturnedValue)
Returns a particular transformation's list of argument definitions (only the description field). |
static java.lang.String |
getCompositeTransformationDefinitionFieldName(int trans_id,
int arg_pos)
Returns a particular transformation's argument definition (only the field_name field). |
static java.lang.String[] |
getCompositeTransformationDefinitionFieldNameList(int trans_id)
Returns a particular transformation's list of argument definitions (only the field_name field). |
static java.lang.String[] |
getCompositeTransformationDefinitionFieldNameList(int trans_id,
boolean isReturnedValue)
Returns a particular transformation's list of argument definitions (only the field_name field). |
static boolean |
getCompositeTransformationDefinitionIsReturnedValue(int trans_id,
int arg_pos)
Returns whether a particular transformation's argument stores a returned value after the transformation's invocation, or not. |
static boolean[] |
getCompositeTransformationDefinitionIsReturnedValueList(int trans_id)
Returns a particular transformation's list of argument types (if they store a returned value or not). |
static java.lang.String |
getCompositeTransformationDefinitionTableName(int trans_id,
int arg_pos)
Returns a particular transformation's argument definition (only the table_name field). |
static java.lang.String[] |
getCompositeTransformationDefinitionTableNameList(int trans_id)
Returns a particular transformation's list of argument definitions (only the table_name field). |
static java.lang.String[] |
getCompositeTransformationDefinitionTableNameList(int trans_id,
boolean isReturnedValue)
Returns a particular transformation's list of argument definitions (only the table_name field). |
static java.lang.String |
getCompositeTransformationDescription(int trans_id)
Returns the description of the composite transformation specified by trans_id |
static java.lang.String |
getCompositeTransformationName(int trans_id)
Returns the name of the composite transformation specified by trans_id |
static boolean |
getCompositeTransformationPreservesEquivalence(int trans_id)
Returns whether the composite transformation specified by trans_id preserves
schema equivalence. |
static int |
getCompositeTransformationProgramArgId(int trans_id,
int pc)
Returns the sequence of arguments ID that is going to be used at the specified pc of a transformation's template program. |
static int[] |
getCompositeTransformationProgramArgIdList(int trans_id)
Returns a list of sequence of arguments identifiers of a particular composite transformation's template program, ie the sequences of arguments that are going to be used at each program counter. |
static int[] |
getCompositeTransformationProgramPcList(int trans_id)
Returns a list of program counters of a particular composite transformation's template program. |
static int |
getCompositeTransformationProgramStId(int trans_id,
int pc)
Returns the statement ID of the statement that is going to be executed at the specified pc of a transformation's template program. |
static int[] |
getCompositeTransformationProgramStIdList(int trans_id)
Returns a list of statement identifiers of a particular composite transformation's template program, ie the statements that are going to be executed at each program counter. |
static int |
getCompositeTransformationReturnedValuesDefinitionArgId(int trans_id)
Returns the sequence of arguments ID that defines the returned values of the transformation |
static java.lang.String[] |
getCompositeTransformationsDescriptionList()
Returns the descriptions of all the composite transformations found in the TTR |
static java.lang.String[] |
getCompositeTransformationsDescriptionList(boolean preserves_eq)
Returns the descriptions of all the composite transformations found in the TTR that preserve schema equivalence |
static java.lang.String[] |
getCompositeTransformationsNameList()
Returns the names of all the composite transformations found in the TTR |
static java.lang.String[] |
getCompositeTransformationsNameList(boolean preserves_eq)
Returns the names of all the composite transformations found in the TTR that preserve schema equivalence |
static boolean[] |
getCompositeTransformationsPreservesEquivalenceList()
Returns the preserves_equivalence field of all the composite transformations found in the TTR |
static int[] |
getCompositeTransformationsTransIdList()
Returns the IDs of all the composite transformations found in the TTR |
static int[] |
getCompositeTransformationsTransIdList(boolean preserves_eq)
Returns the IDs of all the composite transformations found in the TTR that preserve schema equivalence |
static java.lang.String |
getDataSourceName()
Returns the name of the repository in the local database. |
protected static java.util.Vector |
getNextRow()
|
static boolean |
isValidTransId(int trans_id)
This method determines if a composite transformation with the specified trans_id
exists in the TTR. |
static void |
main(java.lang.String[] args)
|
protected static void |
makeQuery(java.lang.String query)
|
protected static int |
makeUpdate(java.lang.String update)
|
protected static java.util.Vector |
processResultSet()
|
static void |
removeArgument(int arg_id,
int arg_pos)
Removes a particular position from a sequence of arguments |
static void |
removeArguments(int arg_id)
Removes a particular sequence of arguments |
static void |
removeCompositeTransformation(int trans_id)
Removes a composite transformation from the TTR comp_transformations table |
static void |
removeCompositeTransformationDefinition(int trans_id)
Removes all arguments definitions of a particular composite transformation |
static void |
removeCompositeTransformationDefinition(int trans_id,
int arg_pos)
Removes a particular position of a transformation's sequence of arguments |
static void |
removeCompositeTransformationProgram(int trans_id)
Removes a particular template transformation's program |
static void |
removeCompositeTransformationProgram(int trans_id,
int pc)
Removes a particular program counter of a transformation's template program |
static void |
removeCompositeTransformationReturnedValuesArgumentDefinition(int trans_id)
Removes a composite transformation returned values definition |
static void |
setArgumentsArgIdRef(int arg_id,
int arg_pos,
int arg_id_ref)
Sets an argument's arg_id_ref field |
static void |
setArgumentsArgPosRef(int arg_id,
int arg_pos,
int arg_pos_ref)
Sets an argument's arg_pos_ref field |
static void |
setArgumentsValue(int arg_id,
int arg_pos,
java.lang.String value)
Sets an argument's value field |
static void |
setCompositeTransformationDefinitionDescription(int trans_id,
int arg_pos,
java.lang.String description)
Sets a particular transformation's argument definition (the description field). |
static void |
setCompositeTransformationDefinitionFieldName(int trans_id,
int arg_pos,
java.lang.String field_name)
Sets a particular transformation's argument definition (the field_name field). |
static void |
setCompositeTransformationDefinitionIsReturnedValue(int trans_id,
int arg_pos,
boolean isReturnedValue)
Sets a particular transformation's argument type. |
static void |
setCompositeTransformationDefinitionTableName(int trans_id,
int arg_pos,
java.lang.String table_name)
Sets a particular transformation's argument definition (the table_name field). |
static void |
setCompositeTransformationDescription(int trans_id,
java.lang.String description)
Sets the description of the composite transformation specified by trans_id |
static void |
setCompositeTransformationName(int trans_id,
java.lang.String name)
Sets the name of the composite transformation specified by trans_id |
static void |
setCompositeTransformationPreservesEquivalence(int trans_id,
boolean preserves_eq)
Sets the preserves equivalence field of the composite transformation specified by trans_id |
static void |
setCompositeTransformationProgramArgId(int trans_id,
int pc,
int arg_id)
Sets the sequence of arguments ID in a specific program counter in the composite transformation's template program |
static void |
setCompositeTransformationProgramStId(int trans_id,
int pc,
int st_id)
Sets the statement identifier in a specific program counter in the specified composite transformation's template program |
static void |
setCompositeTransformationReturnedValuesDefinitionArgId(int trans_id,
int arg_id)
Sets the sequence of arguments ID that defines the transformation's returned values. |
static void |
setDataSourceName(java.lang.String str)
Sets the name of the repository in the local database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateTransformationRepository()
| Method Detail |
|---|
public static int createCompositeTransformation(java.lang.String name,
java.lang.String description,
boolean preserves_eq)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
name - name of transformationdescription - description of transformationpreserves_eq - whether the new composite transformation preserves schema equivalence or not
TemplateTransformationRepositoryException - if the specified name
is null, or if a composite transformation with the same name already exists in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static int getCompositeTransformationByName(java.lang.String name)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id) of the composite transformation specified by name
name - name of the transformation
TemplateTransformationRepositoryException - if the
argument is null, or if no record of a transformation with the specific name exists in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String getCompositeTransformationName(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id
trans_id - ID of the transformation
trans_id
TemplateTransformationRepositoryException - if no record for the specified
trans_id is found in the TTR.
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String getCompositeTransformationDescription(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id
trans_id - ID of the transformation
trans_id
TemplateTransformationRepositoryException - if no record for the specified
trans_id is found in the TTR.
RepositoryAccessException - if the repository cannot be accessed
public static boolean getCompositeTransformationPreservesEquivalence(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id preserves
schema equivalence.
trans_id - ID of the transformation
trans_id preserves schema equivalence
TemplateTransformationRepositoryException - if no record for the specified
trans_id is found in the TTR.
RepositoryAccessException - if the repository cannot be accessed
public static int[] getCompositeTransformationsTransIdList()
throws RepositoryAccessException
null if no records of composite transformations is found in the TTR.
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String[] getCompositeTransformationsNameList()
throws RepositoryAccessException
null if no records of composite transformations is found in the TTR.
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String[] getCompositeTransformationsDescriptionList()
throws RepositoryAccessException
null if no records of composite transformations is found in the TTR.
RepositoryAccessException - if the repository cannot be accessed
public static boolean[] getCompositeTransformationsPreservesEquivalenceList()
throws RepositoryAccessException
preserves_equivalence field of all the composite transformations found in the TTR
preserves_equivalence fields found in the TTR. Returns
null if no records of composite transformations is found in the TTR.
RepositoryAccessException - if the repository cannot be accessed
public static int[] getCompositeTransformationsTransIdList(boolean preserves_eq)
throws RepositoryAccessException
null if no records of composite transformations is found in the TTR that preserve schema equivalence.
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String[] getCompositeTransformationsNameList(boolean preserves_eq)
throws RepositoryAccessException
null if no records of composite transformations is found in the TTR that preserve schema equivalence.
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String[] getCompositeTransformationsDescriptionList(boolean preserves_eq)
throws RepositoryAccessException
null if no records of composite transformations is found in the TTR that preserve schema equivalence.
RepositoryAccessException - if the repository cannot be accessed
public static void setCompositeTransformationName(int trans_id,
java.lang.String name)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id
trans_id - ID of the transformationname - new name of the transformation
TemplateTransformationRepositoryException - if no record
for the specified trans_id is found in the TTR, or if there is already
a transformation with the specified name in the TTR, or if the specified name
is null.
RepositoryAccessException - if the repository cannot be accessed
public static void setCompositeTransformationDescription(int trans_id,
java.lang.String description)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id
trans_id - ID of the transformationname - new name of the transformation
TemplateTransformationRepositoryException - if no record
for the specified trans_id is found in the TTR
, or if the specified name
is null.
RepositoryAccessException - if the repository cannot be accessed
public static void setCompositeTransformationPreservesEquivalence(int trans_id,
boolean preserves_eq)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
preserves equivalence field of the composite transformation specified by trans_id
trans_id - ID of the transformationpreserves_eq - whether the transformation preserves schema equivalence
TemplateTransformationRepositoryException - if no record
for the specified trans_id is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static void removeCompositeTransformation(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
comp_transformations table
trans_id - ID of the transformation
TemplateTransformationRepositoryException - if no record
for the specified trans_id exists, or if there is a dependency conflict (records of
this transformation exist in the comp_transformation_definition or
comp_trnasformation_program tables)
RepositoryAccessException - if the repository cannot be accessed
public static boolean isValidTransId(int trans_id)
throws RepositoryAccessException
trans_id
exists in the TTR.
true if a record of a transformation with the specified trans_id
exists in the comp_transformations table, or false otherwise.
RepositoryAccessException - if the repository cannot be accessed
public static void createCompositeTransformationDefinition(int trans_id,
int arg_pos,
java.lang.String table_name,
java.lang.String field_name,
java.lang.String description,
boolean isReturnedValue)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of transformationarg_pos - position of argument in the transformation's sequence of argumentstable_name - andfield_name - define the values of this argument, i.e. from
which table and field this argument gets its values.description - explanation of what this argument stands forisReturnedValue - true if this argument stores a transformation's returned value after invocation, false otherwise
TemplateTransformationRepositoryException - if the arguments are invalid (
trans_id or arg_pos is less/equal to zero, or if either table_name,
field_name is null and description is also null),
or if no record for the specified trans_id is found in the TTR, or if a
record already exists with the specified trans_id and arg_pos.
RepositoryAccessException - if the repository cannot be accessed
public static void createCompositeTransformationDefinition(int trans_id,
int arg_pos,
java.lang.String description,
boolean isReturnedValue,
int elementNR,
int type,
int typeInstance,
int ref_pos)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
TemplateTransformationRepositoryException
RepositoryAccessException
public static int[] getCompositeTransformationDefinitionArgPosList(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
null if no argument definitions exists for the specific transformation.
trans_id - ID of transformation
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static int[] getCompositeTransformationDefinitionArgPosList(int trans_id,
boolean isReturnedValue)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
null if no argument definitions exists for the specific transformation.
trans_id - ID of transformationisReturnedValue - true if the argument positions store the transformation's returned values, false otherwise
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String[] getCompositeTransformationDefinitionTableNameList(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
table_name field).
Returns null if no argument definitions exists for the specific transformation.
trans_id - ID of transformation
table_name)
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String[] getCompositeTransformationDefinitionTableNameList(int trans_id,
boolean isReturnedValue)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
table_name field).
Returns null if no argument definitions exists for the specific transformation.
trans_id - ID of transformationisReturnedValue - true if the arguments store the transformation's returned values, false otherwise
table_name)) for the arguments that store the transformation's returned values if isReturnedValue is true, or a list of the argument definitions for the arguments that store the transformation's invoked arguments if isReturnedValue is false
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String[] getCompositeTransformationDefinitionFieldNameList(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
field_name field).
Returns null if no argument definitions exists for the specific transformation.
trans_id - ID of transformation
field_name)
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String[] getCompositeTransformationDefinitionFieldNameList(int trans_id,
boolean isReturnedValue)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
field_name field).
Returns null if no argument definitions exists for the specific transformation.
trans_id - ID of transformationisReturnedValue - true if the arguments store the transformation's returned values, false otherwise
field_name)) for the arguments that store the transformation's returned values if isReturnedValue is true, or a list of the argument definitions for the arguments that store the transformation's invoked arguments if isReturnedValue is false
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String[] getCompositeTransformationDefinitionDescriptionList(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
description field).
Returns null if no argument definitions exists for the specific transformation.
trans_id - ID of transformation
description)
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String[] getCompositeTransformationDefinitionDescriptionList(int trans_id,
boolean isReturnedValue)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
description field).
Returns null if no argument definitions exists for the specific transformation.
trans_id - ID of transformationisReturnedValue - true if the arguments store the transformation's returned values, false otherwise
description)) for the arguments that store the transformation's returned values if isReturnedValue is true, or a list of the argument definitions for the arguments that store the transformation's invoked arguments if isReturnedValue is false
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static boolean[] getCompositeTransformationDefinitionIsReturnedValueList(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
null if no argument types exists for the specific transformation.
trans_id - ID of transformation
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String getCompositeTransformationDefinitionTableName(int trans_id,
int arg_pos)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
table_name field).
trans_id - ID of transformationarg_pos - position in the transformation's sequence of arguments
table_name)
TemplateTransformationRepositoryException - if no record for
the specified trans_id and arg_posis found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String getCompositeTransformationDefinitionFieldName(int trans_id,
int arg_pos)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
field_name field).
trans_id - ID of transformationarg_pos - position in the transformation's sequence of arguments
field_name)
TemplateTransformationRepositoryException - if no record for
the specified trans_id and arg_posis found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String getCompositeTransformationDefinitionDescription(int trans_id,
int arg_pos)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
description field).
trans_id - ID of transformationarg_pos - position in the transformation's sequence of arguments
description)
TemplateTransformationRepositoryException - if no record for
the specified trans_id and arg_posis found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static boolean getCompositeTransformationDefinitionIsReturnedValue(int trans_id,
int arg_pos)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of transformationarg_pos - position in the transformation's sequence of arguments
TemplateTransformationRepositoryException - if no record for
the specified trans_id and arg_posis found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static void setCompositeTransformationDefinitionTableName(int trans_id,
int arg_pos,
java.lang.String table_name)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
table_name field).
trans_id - ID of composite transformationarg_pos - position in the transformation's sequence of argumentstable_name - table name to be put in the specified position
TemplateTransformationRepositoryException - if table_name
is null, or if no record for the specified trans_id is
found in the TTR's comp_transformations table, or if no record for
the specified trans_id and arg_posis found in the TTR's
comp_transformation_definition table.
RepositoryAccessException - if the repository cannot be accessed
public static void setCompositeTransformationDefinitionFieldName(int trans_id,
int arg_pos,
java.lang.String field_name)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
field_name field).
trans_id - ID of composite transformationarg_pos - position in the transformation's sequence of argumentsfield_name - field name to be put in the specified position
TemplateTransformationRepositoryException - if field_name
is null, or if no record for the specified trans_id is
found in the TTR's comp_transformations table, or if no record for
the specified trans_id and arg_posis found in the TTR's
comp_transformation_definition table.
RepositoryAccessException - if the repository cannot be accessed
public static void setCompositeTransformationDefinitionDescription(int trans_id,
int arg_pos,
java.lang.String description)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
description field).
trans_id - ID of composite transformationarg_pos - position in the transformation's sequence of argumentsdescription - description to be put in the specified position
TemplateTransformationRepositoryException - if description
is null, or if no record for the specified trans_id is
found in the TTR's comp_transformations table, or if no record for
the specified trans_id and arg_posis found in the TTR's
comp_transformation_definition table.
RepositoryAccessException - if the repository cannot be accessed
public static void setCompositeTransformationDefinitionIsReturnedValue(int trans_id,
int arg_pos,
boolean isReturnedValue)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of composite transformationarg_pos - position in the transformation's sequence of argumentsisReturnedValue - true if the argument stores a returned value, false otherwise
TemplateTransformationRepositoryException - if no record for the specified trans_id is
found in the TTR's comp_transformations table, or if no record for
the specified trans_id and arg_posis found in the TTR's
comp_transformation_definition table.
RepositoryAccessException - if the repository cannot be accessed
public static void removeCompositeTransformationDefinition(int trans_id,
int arg_pos)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of transformationarg_pos - position in the transformation's sequence of arguments to be removed
TemplateTransformationRepositoryException - if no record for
the specified trans_id and arg_pos is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static void removeCompositeTransformationDefinition(int trans_id)
throws RepositoryAccessException
trans_id - ID of transformation
RepositoryAccessException - if the repository cannot be accessed
public static void createArgument(int arg_id,
int arg_pos,
int arg_id_ref,
int arg_pos_ref,
java.lang.String value)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
arg_id - ID of sequence of argumentsarg_pos - position of argument in the sequence of argumentsarg_id_ref - andarg_pos_ref - refer to an argument in another sequencevalue - the value of the specific argument
RepositoryAccessException - if the repository cannot be accessed
TemplateTransformationRepositoryException - if the arguments are invalid (
arg_id less/equal to zero,arg_pos less/equal to zero, arg_pos_ref less/equal to zero and value equal to null).or if a
record already exists for the specified arg_id and arg_pos.
Note: arg_id_ref and arg_pos_ref have higher 'precedence' than value.
public static int createFirstArgument(int arg_pos,
int arg_id_ref,
int arg_pos_ref,
java.lang.String value)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
arg_pos - position of argument in the new sequence of argumentsarg_id_ref - andarg_pos_ref - refer to an argument in another sequencevalue - the value of the specific argument
RepositoryAccessException - if the repository cannot be accessed
TemplateTransformationRepositoryException - if the arguments are invalid (
arg_pos less/equal to zero or arg_pos_ref less/equal to zero and value equal to null.
Note: arg_id_ref and arg_pos_ref have higher 'precedence' than value.
public static int[] getArgumentsArgIdList()
throws RepositoryAccessException
RepositoryAccessException - if the repository cannot be accessed
public static int[] getArgumentsArgPosList(int arg_id)
throws RepositoryAccessException
null if a sequence of arguments with the specific ID doesn't exist.
arg_id - ID of sequence of arguments
RepositoryAccessException - if the repository cannot be accessed
public static int[] getArgumentsArgIdRefList(int arg_id)
throws RepositoryAccessException
arg_id_ref fields. Returns
null if a sequence of arguments with the specific ID doesn't exist.
arg_id - ID of sequence of arguments
arg_id_ref fields in the sequence
RepositoryAccessException - if the repository cannot be accessed
public static int[] getArgumentsArgPosRefList(int arg_id)
throws RepositoryAccessException
arg_pos_ref fields. Returns
null if a sequence of arguments with the specific ID doesn't exist.
arg_id - ID of sequence of arguments
arg_pos_ref fields in the sequence
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String[] getArgumentsValueList(int arg_id)
throws RepositoryAccessException
null if a sequence of arguments with the specific ID doesn't exist.
arg_id - ID of sequence of arguments
RepositoryAccessException - if the repository cannot be accessed
public static int getArgumentsArgIdRef(int arg_id,
int arg_pos)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
arg_id_ref field
arg_id - ID of sequencearg_pos - position in the specified sequence
arg_id_ref of the specified argument
TemplateTransformationRepositoryException - if no record for
the specified arg_id and arg_pos is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static int getArgumentsArgPosRef(int arg_id,
int arg_pos)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
arg_pos_ref field
arg_id - ID of sequencearg_pos - position in the specified sequence
arg_pos_ref of the specified argument
TemplateTransformationRepositoryException - if no record for
the specified arg_id and arg_pos is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static java.lang.String getArgumentsValue(int arg_id,
int arg_pos)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
value field
arg_id - ID of sequencearg_pos - position in the specified sequence
value of the specified argument
TemplateTransformationRepositoryException - if no record for
the specified arg_id and arg_pos is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static void setArgumentsArgIdRef(int arg_id,
int arg_pos,
int arg_id_ref)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
arg_id_ref field
arg_id - ID of sequencearg_pos - position in the sequence of argumentsarg_id_ref - arg_id_ref to be put in the specified position
TemplateTransformationRepositoryException - if no record for
the specified arg_id and arg_pos is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static void setArgumentsArgPosRef(int arg_id,
int arg_pos,
int arg_pos_ref)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
arg_pos_ref field
arg_id - ID of sequencearg_pos - position in the sequence of argumentsarg_pos_ref - arg_pos_ref to be put in the specified position
TemplateTransformationRepositoryException - if no record for
the specified arg_id and arg_pos is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static void setArgumentsValue(int arg_id,
int arg_pos,
java.lang.String value)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
value field
arg_id - ID of sequencearg_pos - position in the sequence of argumentsvalue - value to be put in the specified position
TemplateTransformationRepositoryException - if value is null, or if no record for
the specified arg_id and arg_pos is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static void removeArgument(int arg_id,
int arg_pos)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
arg_id - ID of sequencearg_pos - position in the sequence of arguments to be removed
TemplateTransformationRepositoryException - if no record for
the specified arg_id and arg_pos is found in the TTR or if there is
a dependency conflict (a statement using this arg_id in the comp_tranformation_program table,
and this is the last position existing in the specific sequence of arguments)
RepositoryAccessException - if the repository cannot be accessed
public static void removeArguments(int arg_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
arg_id - ID of sequence to be removed
TemplateTransformationRepositoryException - if there is
a dependency conflict (a statement using this arg_id in the comp_tranformation_program table)
RepositoryAccessException - if the repository cannot be accessed
public static void createCompositeTransformationProgram(int trans_id,
int pc,
int st_id,
int arg_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of transformationpc - program counter of statement to be addedst_id - ID of statement to be addedarg_id - ID of the statement's sequence of arguments (the argument is going to be executed with the specified arguments)
TemplateTransformationRepositoryException - if the arguments are invalid (
trans_id or pc less/equal to zero), or if no record
for the specified arg_id is found in the TTR's arguments table, or if no record for
the specified trans_id is found in the TTR's comp_transformations table, or
if the specified st_id isn't valid (hasn't been defined in TTSR, see TemplateTransformationSyntaxRepository.isValidStId(int)), or if a
record already exists for the specified trans_id and pc
RepositoryAccessException - if the repository cannot be accessed
public static int[] getCompositeTransformationProgramPcList(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
null if there isn't a template program
for the specific transformation.
trans_id - ID of transformation
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR's comp_transformations table.
RepositoryAccessException - if the repository cannot be accessed
public static int[] getCompositeTransformationProgramStIdList(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
null if there isn't a template program
for the specific transformation.
trans_id - ID of transformation
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR's comp_transformations table.
RepositoryAccessException - if the repository cannot be accessed
public static int[] getCompositeTransformationProgramArgIdList(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
null if there isn't a template program
for the specific transformation.
trans_id - ID of transformation
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR's comp_transformations table.
RepositoryAccessException - if the repository cannot be accessed
public static int getCompositeTransformationProgramStId(int trans_id,
int pc)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of transformation
TemplateTransformationRepositoryException - if no record for
the specified trans_id and pc is found in the TTR's comp_transformation_program table.
RepositoryAccessException - if the repository cannot be accessed
public static int getCompositeTransformationProgramArgId(int trans_id,
int pc)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of transformation
TemplateTransformationRepositoryException - if no record for
the specified trans_id and pc is found in the TTR's comp_transformation_program table.
RepositoryAccessException - if the repository cannot be accessed
public static void setCompositeTransformationProgramStId(int trans_id,
int pc,
int st_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of composite transformationpc - program counter in the transformation's template programst_id - statement identifier to be put in the specified pc
TemplateTransformationRepositoryException - if the specified st_id
is not valid (see TemplateTransformationSyntaxRepository.isValidStId(int)), or if no record for
the specified trans_id and pc is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static void setCompositeTransformationProgramArgId(int trans_id,
int pc,
int arg_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of composite transformationpc - program counter in the template transformation's programarg_id - sequence of arguments identifier to be put in the specified pc
TemplateTransformationRepositoryException - if no records for the specified
arg_id exists in the TTR's arguments table, or if no record for
the specified trans_id and pc is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static void removeCompositeTransformationProgram(int trans_id,
int pc)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of transformationpc - program counter in the transformation's program
TemplateTransformationRepositoryException - if no record for
the specified trans_id and pc is found in the TTR
RepositoryAccessException - if the repository cannot be accessed
public static void removeCompositeTransformationProgram(int trans_id)
throws RepositoryAccessException
trans_id - ID of transformation
RepositoryAccessException - if the repository cannot be accessed
public static void createCompositeTransformationReturnedValuesDefinition(int trans_id,
int arg_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of transformationarg_id - ID of the argument sequence where the returned values are defined
TemplateTransformationRepositoryException - if the arguments are invalid (
trans_id or pc less/equal to zero), or if no record
for the specified arg_id is found in the TTR's arguments table, or if no re
cord for
the specified trans_id is found in the TTR's comp_transformations table, or
or if a record already exists for the specified trans_id
RepositoryAccessException - if the repository cannot be accessed
public static int getCompositeTransformationReturnedValuesDefinitionArgId(int trans_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of transformation
TemplateTransformationRepositoryException - if no record for
the specified trans_id is found in the TTR's comp_transformation_returned_values_definition table.
RepositoryAccessException - if the repository cannot be accessed
public static void setCompositeTransformationReturnedValuesDefinitionArgId(int trans_id,
int arg_id)
throws TemplateTransformationRepositoryException,
RepositoryAccessException
trans_id - ID of composite transformationarg_id - sequence of arguments ID defining the transformation's returned values
TemplateTransforamtionRepositoryException - if no records for the specified
arg_id exists in the TTR's arguments table, or if no record for
the specified trans_id is found in the TTR's comp_transformation_returned_values_definition
RepositoryAccessException - if the repository cannot be accessed
TemplateTransformationRepositoryException
public static void removeCompositeTransformationReturnedValuesArgumentDefinition(int trans_id)
throws RepositoryAccessException
trans_id - ID of transformation
RepositoryAccessException - if the repository cannot be accessed
protected static void makeQuery(java.lang.String query)
throws RepositoryAccessException
RepositoryAccessException
protected static int makeUpdate(java.lang.String update)
throws RepositoryAccessException
RepositoryAccessException
protected static java.util.Vector processResultSet()
throws RepositoryAccessException
RepositoryAccessException
protected static java.util.Vector getNextRow()
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void main(java.lang.String[] args)
public static java.lang.String getDataSourceName()
public static void setDataSourceName(java.lang.String str)
TTR by default.
str - the name of the repository in the local database.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||