Java Doc for BaseActivation.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » impl » sql » execute » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » db derby 10.2 » org.apache.derby.impl.sql.execute 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.impl.sql.execute.BaseActivation

All known Subclasses:   org.apache.derby.impl.sql.execute.CursorActivation,  org.apache.derby.impl.sql.execute.ConstantActionActivation,
BaseActivation
abstract public class BaseActivation implements CursorActivation,GeneratedByteCode(Code)
BaseActivation provides the fundamental support we expect all activations to have. Doesn't actually implement any of the activation interface, expects the subclasses to do that.


Field Summary
protected  booleanclosed
    
protected  ContextManagercm
    
protected  DataValueFactorydvFactory
    
protected  ExecutionContextec
    
protected  ExecutionFactoryexFactory
    
protected  intindexOfSessionTableNamesInSavedObjects
    
protected  LanguageConnectionContextlcc
    
protected  intnumSubqueries
    
protected  HashtableparentResultSets
    
protected  ExecPreparedStatementpreStmt
    
protected  ParameterValueSetpvs
    
protected  CursorResultSet[]raParentResultSets
    
protected  ResultDescriptionresultDescription
    
protected  ResultSetresultSet
    
protected  ExecRow[]row
    
protected  ResultSetFactoryrsFactory
    

Constructor Summary
protected  BaseActivation()
    

Method Summary
public  voidaddWarning(SQLWarning w)
    
public static  voidallocateQualArray(Qualifier[][] qualifiers, int position, int length)
    
public  booleancheckIfThisActivationHasHoldCursor(String tableName)
     Temporary tables can be declared with ON COMMIT DELETE ROWS.
protected  voidcheckPositionedStatement(String cursorName, String psName)
    
final public  voidcheckStatementValidity()
    
public  voidclearCurrentRow(int resultSetNumber)
     Clear the current row for the specified ResultSet.
public  voidclearHeapConglomerateController()
    
public  voidclearIndexScanInfo()
    
public  voidclearParentResultSets()
     prepared statement use the same activation for multiple execution.
public  voidclearResultSet()
    
public  voidclearWarnings()
    
final public  voidclose()
     Closing an activation marks it as unusable.
protected  voidcloseActivationAction()
     A generated class can create its own closeActivationAction method to invoke special logic when the activation is closed.
public  Objecte0()
    
public  Objecte1()
    
public  Objecte2()
    
public  Objecte3()
    
public  Objecte4()
    
public  Objecte5()
    
public  Objecte6()
    
public  Objecte7()
    
public  Objecte8()
    
public  Objecte9()
    
public  int[]getAutoGeneratedKeysColumnIndexes()
    
public  String[]getAutoGeneratedKeysColumnNames()
    
public  booleangetAutoGeneratedKeysResultsetMode()
    
protected  java.util.CalendargetCalendar()
     Return a calendar for use by this activation.
final protected  DataValueDescriptorgetColumnFromRow(int rsNumber, int colId)
    
public  ConstantActiongetConstantAction()
    
public  ContextManagergetContextManager()
     Get the Current ContextManager.
public  ConnectiongetCurrentConnection()
     Used to get a proxy for the current connection.
public  StringgetCursorName()
     get the cursor name.
public  CursorResultSetgetCursorResultSet()
     Used in CurrentOfResultSet to get to the cursor result set for a cursor.
public  NumberDataValuegetDB2Length(DataValueDescriptor value, int constantLength, NumberDataValue reUse)
     Compute the DB2 compatible length of a value.
Parameters:
  value -
Parameters:
  constantLength - The length, if it is a constant modulo null/not null.
public  TableDescriptorgetDDLTableDescriptor()
    
public  DataValueFactorygetDataValueFactory()
     Used by activations to generate data values.
public  java.sql.ResultSet[][]getDynamicResults()
     Real implementations of this method are provided by a generated class.
 ExecutionContextgetExecutionContext()
     Get the ExecutionContext.
abstract protected  intgetExecutionCount()
    
public  ExecutionFactorygetExecutionFactory()
     Used in activations for generating rows.
public  booleangetForCreateTable()
    
public  CursorResultSetgetForUpdateIndexScan()
    
final public  GeneratedClassgetGC()
    
public  ConglomerateControllergetHeapConglomerateController()
    
public  longgetIndexConglomerateNumber()
    
public  ScanControllergetIndexScanController()
    
final public  LanguageConnectionContextgetLanguageConnectionContext()
    
public  intgetMaxDynamicResults()
     Real implementations of this method are provided by a generated class.
public  intgetMaxRows()
    
final public  GeneratedMethodgetMethod(String methodName)
    
public  intgetNumSubqueries()
     Get the number of subqueries in the entire query.
final protected  DataValueDescriptorgetParameter(int position)
    
public  ParameterValueSetgetParameterValueSet()
     return the parameters.
public  VectorgetParentResultSet(String resultSetId)
     get the reference to parent table ResultSets, that will be needed by the referential action dependent table scans.
public  HashtablegetParentResultSets()
    
final public  ExecPreparedStatementgetPreparedStatement()
    
public  ResultDescriptiongetResultDescription()
    
public  ResultSetgetResultSet()
    
public  ResultSetFactorygetResultSetFactory()
     Used in the execute method of activations for generating the result sets that they concatenate together.
public  booleangetResultSetHoldability()
    
abstract protected  VectorgetRowCountCheckVector()
    
public  RowLocationgetRowLocationTemplate(int itemNumber)
     Get the saved RowLocation.
final public  booleangetScrollable()
    
protected  DataValueDescriptorgetSetAutoincrementValue(int columnPosition, long increment)
    
abstract protected  intgetStalePlanCheckInterval()
    
public  CursorResultSetgetTargetResultSet()
     Used in CurrentOfResultSet to get to the target result set for a cursor.
public  java.sql.ResultSetgetTargetVTI()
    
final public  TransactionControllergetTransactionController()
    
public  SQLWarninggetWarnings()
    
public  voidinformOfRowCount(NoPutResultSet resultSet, long currentRowCount)
    
final public  voidinitFromContext(Context context)
    
public  booleanisClosed()
     Find out if the activation closed or not.
public  booleanisCursorActivation()
    
final public  booleanisInUse()
    
public  booleanisSingleExecution()
     Returns true if this Activation is only going to be used for one execution.
final public  voidmarkUnused()
     Mark the activation as unused.
public  NoPutResultSetmaterializeResultSetIfPossible(NoPutResultSet rs)
    
protected static  voidnullToPrimitiveTest(DataValueDescriptor dvd, String primitiveType)
    
public static  voidreinitializeQualifiers(Qualifier[][] qualifiers)
     Reinitialize all Qualifiers in an array of Qualifiers.
public  voidreset()
     This is a partial implementation of reset.
public  voidsetAutoGeneratedKeysResultsetInfo(int[] columnIndexes, String[] columnNames)
    
public static  voidsetColumnPosition(int[] columnPositions, int positionToSet, int column)
     Set a column position in an array of column positions.
public  voidsetCurrentRow(ExecRow currentRow, int resultSetNumber)
     Remember the row for the specified ResultSet.
public  voidsetCursorName(String cursorName)
    
public  voidsetDDLTableDescriptor(TableDescriptor td)
    
abstract protected  voidsetExecutionCount(int newValue)
    
public  voidsetForCreateTable()
    
public  voidsetForUpdateIndexScan(CursorResultSet forUpdateIndexScan)
     beetle 3865: updateable cursor using index.
final public  voidsetGC(GeneratedClass gc)
    
public  voidsetHeapConglomerateController(ConglomerateController updateHeapCC)
    
public  voidsetIndexConglomerateNumber(long indexConglomerateNumber)
    
public  voidsetIndexScanController(ScanController indexSC)
    
public  voidsetMaxRows(int maxRows)
    
final protected  voidsetParameterValueSet(int paramCount, boolean hasReturnParam)
    
public  voidsetParameters(ParameterValueSet parameterValues, DataTypeDescriptor[] parameterTypes)
    
public  voidsetParentResultSet(TemporaryRowHolder rs, String resultSetId)
    
public static  voidsetQualifier(Qualifier[][] qualifiers, Qualifier qualifier, int position_1, int position_2)
     Set a Qualifier in a 2 dimensional array of Qualifiers. Set a single Qualifier into one slot of a 2 dimensional array of Qualifiers.
public  voidsetResultSetHoldability(boolean resultSetHoldability)
    
abstract protected  voidsetRowCountCheckVector(Vector newValue)
    
public  voidsetSingleExecution()
     Set this Activation for a single execution.
abstract protected  voidsetStalePlanCheckInterval(int newValue)
    
public  voidsetTargetVTI(java.sql.ResultSet targetVTI)
    
final public  voidsetupActivation(ExecPreparedStatement ps, boolean scrollable)
     Link this activation with its PreparedStatement.
public  voidstartExecution()
     The subclass calls this method when it begins an execution.
public  voidthrowIfClosed(String op)
     Various activation methods need to disallow their invocation if the activation is closed.
public  voidthrowIfMissingParms()
     Throw an exception if any parameters are uninitialized.

Field Detail
closed
protected boolean closed(Code)



cm
protected ContextManager cm(Code)



dvFactory
protected DataValueFactory dvFactory(Code)



ec
protected ExecutionContext ec(Code)



exFactory
protected ExecutionFactory exFactory(Code)



indexOfSessionTableNamesInSavedObjects
protected int indexOfSessionTableNamesInSavedObjects(Code)



lcc
protected LanguageConnectionContext lcc(Code)



numSubqueries
protected int numSubqueries(Code)



parentResultSets
protected Hashtable parentResultSets(Code)



preStmt
protected ExecPreparedStatement preStmt(Code)



pvs
protected ParameterValueSet pvs(Code)



raParentResultSets
protected CursorResultSet[] raParentResultSets(Code)



resultDescription
protected ResultDescription resultDescription(Code)



resultSet
protected ResultSet resultSet(Code)



row
protected ExecRow[] row(Code)



rsFactory
protected ResultSetFactory rsFactory(Code)




Constructor Detail
BaseActivation
protected BaseActivation()(Code)




Method Detail
addWarning
public void addWarning(SQLWarning w)(Code)

See Also:   org.apache.derby.iapi.sql.Activation.addWarning



allocateQualArray
public static void allocateQualArray(Qualifier[][] qualifiers, int position, int length)(Code)
Allocate an array of qualifiers and initialize in Qualifier[][]
Parameters:
  qualifiers - The array of Qualifier arrays.
Parameters:
  position - The position in the array to set
Parameters:
  length - The array length of the qualifier array to allocate.



checkIfThisActivationHasHoldCursor
public boolean checkIfThisActivationHasHoldCursor(String tableName)(Code)
Temporary tables can be declared with ON COMMIT DELETE ROWS. But if the table has a held curosr open at commit time, data should not be deleted from the table. This method, (gets called at commit time) checks if this activation held cursor and if so, does that cursor reference the passed temp table name. true if this activation has held cursor and if it references the passed temp table name



checkPositionedStatement
protected void checkPositionedStatement(String cursorName, String psName) throws StandardException(Code)



checkStatementValidity
final public void checkStatementValidity() throws StandardException(Code)



clearCurrentRow
public void clearCurrentRow(int resultSetNumber)(Code)
Clear the current row for the specified ResultSet.



clearHeapConglomerateController
public void clearHeapConglomerateController()(Code)

See Also:   Activation.clearHeapConglomerateController



clearIndexScanInfo
public void clearIndexScanInfo()(Code)

See Also:   Activation.clearIndexScanInfo



clearParentResultSets
public void clearParentResultSets()(Code)
prepared statement use the same activation for multiple execution. For each excution we create new set of temporary resultsets, we should clear this hash table. otherwise we will refer to the released resources.



clearResultSet
public void clearResultSet()(Code)



clearWarnings
public void clearWarnings()(Code)

See Also:   org.apache.derby.iapi.sql.Activation.clearWarnings



close
final public void close() throws StandardException(Code)
Closing an activation marks it as unusable. Any other requests made on it will fail. An activation should be marked closed when it is expected to not be used any longer, i.e. when the connection for it is closed, or it has suffered some sort of severe error. This should also remove it from the language connection context.
exception:
  StandardException - on error



closeActivationAction
protected void closeActivationAction() throws Exception(Code)
A generated class can create its own closeActivationAction method to invoke special logic when the activation is closed.



e0
public Object e0() throws StandardException(Code)



e1
public Object e1() throws StandardException(Code)



e2
public Object e2() throws StandardException(Code)



e3
public Object e3() throws StandardException(Code)



e4
public Object e4() throws StandardException(Code)



e5
public Object e5() throws StandardException(Code)



e6
public Object e6() throws StandardException(Code)



e7
public Object e7() throws StandardException(Code)



e8
public Object e8() throws StandardException(Code)



e9
public Object e9() throws StandardException(Code)



getAutoGeneratedKeysColumnIndexes
public int[] getAutoGeneratedKeysColumnIndexes()(Code)

See Also:   Activation.getAutoGeneratedKeysColumnIndexes
See Also:   



getAutoGeneratedKeysColumnNames
public String[] getAutoGeneratedKeysColumnNames()(Code)

See Also:   Activation.getAutoGeneratedKeysColumnNames
See Also:   



getAutoGeneratedKeysResultsetMode
public boolean getAutoGeneratedKeysResultsetMode()(Code)

See Also:   Activation.getAutoGeneratedKeysResultsetMode
See Also:   



getCalendar
protected java.util.Calendar getCalendar()(Code)
Return a calendar for use by this activation. Calendar objects are not thread safe, the one returned is purely for use by this activation and it is assumed that is it single threded through the single active thread in a connection model.



getColumnFromRow
final protected DataValueDescriptor getColumnFromRow(int rsNumber, int colId) throws StandardException(Code)



getConstantAction
public ConstantAction getConstantAction()(Code)



getContextManager
public ContextManager getContextManager()(Code)
Get the Current ContextManager. Current ContextManager



getCurrentConnection
public Connection getCurrentConnection() throws SQLException(Code)
Used to get a proxy for the current connection.
exception:
  SQLException - Thrown on failure to get connection



getCursorName
public String getCursorName()(Code)
get the cursor name. For something that isn't a cursor, this is used as a string name of the result set for messages from things like the dependency manager.

Activations that do support cursors will override this.




getCursorResultSet
public CursorResultSet getCursorResultSet()(Code)
Used in CurrentOfResultSet to get to the cursor result set for a cursor. Overridden by activations generated for updatable cursors. Those activations capture the cursor result set in a field in their execute() method, and then return the value of that field in their version of this method. null



getDB2Length
public NumberDataValue getDB2Length(DataValueDescriptor value, int constantLength, NumberDataValue reUse) throws StandardException(Code)
Compute the DB2 compatible length of a value.
Parameters:
  value -
Parameters:
  constantLength - The length, if it is a constant modulo null/not null. -1 if the length is not constant
Parameters:
  reUse - If non-null then re-use this as a container for the length the DB2 compatible length, set to null if value is null.



getDDLTableDescriptor
public TableDescriptor getDDLTableDescriptor()(Code)

See Also:   Activation.getDDLTableDescriptor



getDataValueFactory
public DataValueFactory getDataValueFactory()(Code)
Used by activations to generate data values. Most DML statements will use this method. Possibly some DDL statements will, as well.



getDynamicResults
public java.sql.ResultSet[][] getDynamicResults()(Code)
Real implementations of this method are provided by a generated class.



getExecutionContext
ExecutionContext getExecutionContext()(Code)
Get the ExecutionContext.



getExecutionCount
abstract protected int getExecutionCount()(Code)



getExecutionFactory
public ExecutionFactory getExecutionFactory()(Code)
Used in activations for generating rows.



getForCreateTable
public boolean getForCreateTable()(Code)

See Also:   Activation.getForCreateTable



getForUpdateIndexScan
public CursorResultSet getForUpdateIndexScan()(Code)



getGC
final public GeneratedClass getGC()(Code)



getHeapConglomerateController
public ConglomerateController getHeapConglomerateController()(Code)

See Also:   Activation.getHeapConglomerateController



getIndexConglomerateNumber
public long getIndexConglomerateNumber()(Code)

See Also:   Activation.getIndexConglomerateNumber



getIndexScanController
public ScanController getIndexScanController()(Code)

See Also:   Activation.getIndexScanController



getLanguageConnectionContext
final public LanguageConnectionContext getLanguageConnectionContext()(Code)
Get the language connection factory associated with this connection



getMaxDynamicResults
public int getMaxDynamicResults()(Code)
Real implementations of this method are provided by a generated class.



getMaxRows
public int getMaxRows()(Code)

See Also:   Activation.getMaxRows



getMethod
final public GeneratedMethod getMethod(String methodName) throws StandardException(Code)



getNumSubqueries
public int getNumSubqueries()(Code)
Get the number of subqueries in the entire query. int The number of subqueries in the entire query.



getParameter
final protected DataValueDescriptor getParameter(int position) throws StandardException(Code)
This method can help reduce the amount of generated code by changing instances of this.pvs.getParameter(position) to this.getParameter(position)
Parameters:
  position -
throws:
  StandardException -



getParameterValueSet
public ParameterValueSet getParameterValueSet()(Code)
return the parameters.



getParentResultSet
public Vector getParentResultSet(String resultSetId)(Code)
get the reference to parent table ResultSets, that will be needed by the referential action dependent table scans.



getParentResultSets
public Hashtable getParentResultSets()(Code)



getPreparedStatement
final public ExecPreparedStatement getPreparedStatement()(Code)



getResultDescription
public ResultDescription getResultDescription()(Code)



getResultSet
public ResultSet getResultSet()(Code)



getResultSetFactory
public ResultSetFactory getResultSetFactory()(Code)
Used in the execute method of activations for generating the result sets that they concatenate together.



getResultSetHoldability
public boolean getResultSetHoldability()(Code)



getRowCountCheckVector
abstract protected Vector getRowCountCheckVector()(Code)



getRowLocationTemplate
public RowLocation getRowLocationTemplate(int itemNumber)(Code)
Get the saved RowLocation.
Parameters:
  itemNumber - The saved item number. A RowLocation template for the conglomerate



getScrollable
final public boolean getScrollable()(Code)



getSetAutoincrementValue
protected DataValueDescriptor getSetAutoincrementValue(int columnPosition, long increment) throws StandardException(Code)



getStalePlanCheckInterval
abstract protected int getStalePlanCheckInterval()(Code)



getTargetResultSet
public CursorResultSet getTargetResultSet()(Code)
Used in CurrentOfResultSet to get to the target result set for a cursor. Overridden by activations generated for updatable cursors. Those activations capture the target result set in a field in their execute() method, and then return the value of that field in their version of this method. null.



getTargetVTI
public java.sql.ResultSet getTargetVTI()(Code)



getTransactionController
final public TransactionController getTransactionController()(Code)



getWarnings
public SQLWarning getWarnings()(Code)

See Also:   org.apache.derby.iapi.sql.Activation.getWarnings



informOfRowCount
public void informOfRowCount(NoPutResultSet resultSet, long currentRowCount) throws StandardException(Code)

See Also:   Activation.informOfRowCount
exception:
  StandardException - Thrown on error



initFromContext
final public void initFromContext(Context context) throws StandardException(Code)



isClosed
public boolean isClosed()(Code)
Find out if the activation closed or not. true if the prepared statement has been closed.



isCursorActivation
public boolean isCursorActivation()(Code)

See Also:   Activation.isCursorActivation



isInUse
final public boolean isInUse()(Code)
Is the activation in use? true/false



isSingleExecution
public boolean isSingleExecution()(Code)
Returns true if this Activation is only going to be used for one execution.
See Also:   Activation.isSingleExecution



markUnused
final public void markUnused()(Code)
Mark the activation as unused.



materializeResultSetIfPossible
public NoPutResultSet materializeResultSetIfPossible(NoPutResultSet rs) throws StandardException(Code)



nullToPrimitiveTest
protected static void nullToPrimitiveTest(DataValueDescriptor dvd, String primitiveType) throws StandardException(Code)

exception:
  StandardException - on error



reinitializeQualifiers
public static void reinitializeQualifiers(Qualifier[][] qualifiers)(Code)
Reinitialize all Qualifiers in an array of Qualifiers.
Parameters:
  qualifiers - The array of Qualifiers



reset
public void reset() throws StandardException(Code)
This is a partial implementation of reset. Subclasses will want to reset information they are aware of, such as parameters.

All subclasses must call super.reset() and then do their cleanup.

The execute call must set the resultSet field to be the resultSet that it has returned.
exception:
  StandardException - on error




setAutoGeneratedKeysResultsetInfo
public void setAutoGeneratedKeysResultsetInfo(int[] columnIndexes, String[] columnNames)(Code)

See Also:   Activation.setAutoGeneratedKeysResultsetInfo
See Also:   



setColumnPosition
public static void setColumnPosition(int[] columnPositions, int positionToSet, int column)(Code)
Set a column position in an array of column positions.
Parameters:
  columnPositions - The array of column positions
Parameters:
  positionToSet - The place to put the column position
Parameters:
  column - The column position



setCurrentRow
public void setCurrentRow(ExecRow currentRow, int resultSetNumber)(Code)
Remember the row for the specified ResultSet.



setCursorName
public void setCursorName(String cursorName)(Code)
remember the cursor name



setDDLTableDescriptor
public void setDDLTableDescriptor(TableDescriptor td)(Code)

See Also:   Activation.setDDLTableDescriptor



setExecutionCount
abstract protected void setExecutionCount(int newValue)(Code)



setForCreateTable
public void setForCreateTable()(Code)

See Also:   Activation.setForCreateTable



setForUpdateIndexScan
public void setForUpdateIndexScan(CursorResultSet forUpdateIndexScan)(Code)
beetle 3865: updateable cursor using index. A way of communication between cursor activation and update activation.



setGC
final public void setGC(GeneratedClass gc)(Code)



setHeapConglomerateController
public void setHeapConglomerateController(ConglomerateController updateHeapCC)(Code)

See Also:   Activation.setHeapConglomerateController



setIndexConglomerateNumber
public void setIndexConglomerateNumber(long indexConglomerateNumber)(Code)

See Also:   Activation.setIndexConglomerateNumber



setIndexScanController
public void setIndexScanController(ScanController indexSC)(Code)

See Also:   Activation.setIndexScanController



setMaxRows
public void setMaxRows(int maxRows)(Code)

See Also:   Activation.setMaxRows



setParameterValueSet
final protected void setParameterValueSet(int paramCount, boolean hasReturnParam)(Code)



setParameters
public void setParameters(ParameterValueSet parameterValues, DataTypeDescriptor[] parameterTypes) throws StandardException(Code)



setParentResultSet
public void setParentResultSet(TemporaryRowHolder rs, String resultSetId)(Code)



setQualifier
public static void setQualifier(Qualifier[][] qualifiers, Qualifier qualifier, int position_1, int position_2)(Code)
Set a Qualifier in a 2 dimensional array of Qualifiers. Set a single Qualifier into one slot of a 2 dimensional array of Qualifiers. @see Qualifier for detailed description of layout of the 2-d array.
Parameters:
  qualifiers - The array of Qualifiers
Parameters:
  qualifier - The Qualifier
Parameters:
  position_1 - The Nth array index into qualifiers[N][M]
Parameters:
  position_2 - The Nth array index into qualifiers[N][M]



setResultSetHoldability
public void setResultSetHoldability(boolean resultSetHoldability)(Code)



setRowCountCheckVector
abstract protected void setRowCountCheckVector(Vector newValue)(Code)



setSingleExecution
public void setSingleExecution()(Code)
Set this Activation for a single execution.
See Also:   Activation.setSingleExecution



setStalePlanCheckInterval
abstract protected void setStalePlanCheckInterval(int newValue)(Code)



setTargetVTI
public void setTargetVTI(java.sql.ResultSet targetVTI)(Code)



setupActivation
final public void setupActivation(ExecPreparedStatement ps, boolean scrollable)(Code)
Link this activation with its PreparedStatement. It can be called with null to break the link with the PreparedStatement.



startExecution
public void startExecution() throws StandardException(Code)
The subclass calls this method when it begins an execution.
exception:
  StandardException - Thrown on error



throwIfClosed
public void throwIfClosed(String op) throws StandardException(Code)
Various activation methods need to disallow their invocation if the activation is closed. This lets them check and throw without generating alot of code.

The code to write to generate the call to this is approximately: // jf is a JavaFactory CallableExpression ce = jf.newMethodCall( jf.thisExpression(), BaseActivation.CLASS_NAME, "throwIfClosed", "void", acb.exprArray(jf.newStringLiteral(...some literal here...))); //mb is a MethodBuilder mb.addStatement(jf.newStatement(ce)); The java code to write to call this is: this.throwIfClosed(...some literal here...); In both cases, "...some literal here..." gets replaced with an expression of type String that evaluates to the name of the operation that is being checked, like "execute" or "reset".
exception:
  StandardException - thrown if closed




throwIfMissingParms
public void throwIfMissingParms() throws StandardException(Code)
Throw an exception if any parameters are uninitialized.
exception:
  StandardException - Thrown if any parametersare unitialized



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.