uk.ac.ic.doc.automed.templates.wrapper
Class InsertingStatement

java.lang.Object
  extended by uk.ac.ic.doc.automed.templates.wrapper.TStatement
      extended by uk.ac.ic.doc.automed.templates.wrapper.InsertingStatement
Direct Known Subclasses:
AddStatement, ExtendStatement

public abstract class InsertingStatement
extends TStatement


Field Summary
protected  TStatementArgument actionARG
           
protected  java.lang.String actionName
           
protected  java.util.ArrayList allArguments
           
protected  TStatementArgument constraintsARG
           
protected  Construct construct
           
protected  TStatementArgument constructARG
           
protected  TStatementArgument createdObject
           
protected  int executedStatementNR
           
protected  java.util.ArrayList executedStatements
           
protected  java.util.ArrayList executedStatementsArguments
           
protected  TStatementArgument fromObjectARG
           
protected  TStatementArgument functionARG
           
protected  TStatementArgument isTempARG
           
protected  TemplateArgumentSequence newObjectArgSeq
           
protected  TemplateArgumentSequence primitiveArgSeq
           
protected  java.lang.Object[] scheme
           
protected  TStatementArgument schemePosnARG
           
protected  TStatementArgument toObjectARG
           
protected  TStatementArgument valueARG
           
 
Fields inherited from class uk.ac.ic.doc.automed.templates.wrapper.TStatement
fromSchemaARG, self, statementType, toSchemaARG
 
Constructor Summary
InsertingStatement()
           
 
Method Summary
protected  int createExecutionStatement(int position, CompositeTransformation trans)
           
protected  java.lang.String getArgumentDescription(TStatementArgument sa)
           
protected  Construct getConstruct()
           
protected  java.lang.String getStatementDescription()
           
protected  int getType(TStatementArgument sa)
           
protected  int numberOfElements(TStatementArgument sa)
           
 TStatementArgument resultingObject()
           
 TStatementArgument resultingSchema()
           
protected  void rollback()
           
 void setConstraints(java.lang.String c)
           
 void setConstraints(TArgument c)
           
 void setConstruct(Construct c)
           
 void setFromSchema(TArgument sch)
           
 void setFunction(java.lang.String f)
           
 void setFunction(TArgument f)
           
 void setScheme(java.lang.Object[] candidateScheme)
           
 void setValue(java.lang.String v)
           
 void setValue(TArgument v)
           
protected  void updateRepository()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

construct

protected Construct construct

constructARG

protected TStatementArgument constructARG

valueARG

protected TStatementArgument valueARG

actionARG

protected TStatementArgument actionARG

functionARG

protected TStatementArgument functionARG

constraintsARG

protected TStatementArgument constraintsARG

schemePosnARG

protected TStatementArgument schemePosnARG

toObjectARG

protected TStatementArgument toObjectARG

fromObjectARG

protected TStatementArgument fromObjectARG

isTempARG

protected TStatementArgument isTempARG

createdObject

protected TStatementArgument createdObject

scheme

protected java.lang.Object[] scheme

newObjectArgSeq

protected TemplateArgumentSequence newObjectArgSeq

primitiveArgSeq

protected TemplateArgumentSequence primitiveArgSeq

allArguments

protected java.util.ArrayList allArguments

executedStatements

protected java.util.ArrayList executedStatements

executedStatementsArguments

protected java.util.ArrayList executedStatementsArguments

executedStatementNR

protected int executedStatementNR

actionName

protected java.lang.String actionName
Constructor Detail

InsertingStatement

public InsertingStatement()
Method Detail

setFromSchema

public void setFromSchema(TArgument sch)
                   throws TemplateDefinitionException
Specified by:
setFromSchema in class TStatement
Throws:
TemplateDefinitionException

setConstruct

public void setConstruct(Construct c)
                  throws TemplateDefinitionException
Throws:
TemplateDefinitionException

setValue

public void setValue(java.lang.String v)

setValue

public void setValue(TArgument v)
              throws TemplateDefinitionException
Throws:
TemplateDefinitionException

setFunction

public void setFunction(java.lang.String f)

setFunction

public void setFunction(TArgument f)
                 throws TemplateDefinitionException
Throws:
TemplateDefinitionException

setConstraints

public void setConstraints(java.lang.String c)

setConstraints

public void setConstraints(TArgument c)
                    throws TemplateDefinitionException
Throws:
TemplateDefinitionException

setScheme

public void setScheme(java.lang.Object[] candidateScheme)
               throws TemplateDefinitionException
Throws:
TemplateDefinitionException

getStatementDescription

protected java.lang.String getStatementDescription()
Specified by:
getStatementDescription in class TStatement

resultingObject

public TStatementArgument resultingObject()

resultingSchema

public TStatementArgument resultingSchema()
Specified by:
resultingSchema in class TStatement

getArgumentDescription

protected java.lang.String getArgumentDescription(TStatementArgument sa)
Specified by:
getArgumentDescription in class TStatement

getType

protected int getType(TStatementArgument sa)

getConstruct

protected Construct getConstruct()

numberOfElements

protected int numberOfElements(TStatementArgument sa)
Specified by:
numberOfElements in class TStatement

rollback

protected void rollback()
                 throws TemplateDefinitionException
Specified by:
rollback in class TStatement
Throws:
TemplateDefinitionException

createExecutionStatement

protected int createExecutionStatement(int position,
                                       CompositeTransformation trans)
                                throws TemplateDefinitionException
Specified by:
createExecutionStatement in class TStatement
Throws:
TemplateDefinitionException

updateRepository

protected void updateRepository()
                         throws TemplateDefinitionException
Specified by:
updateRepository in class TStatement
Throws:
TemplateDefinitionException