Java Doc for TabInfoImpl.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » impl » sql » catalog » 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.catalog 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.impl.sql.catalog.TabInfoImpl

TabInfoImpl
class TabInfoImpl (Code)
A poor mans structure used in DataDictionaryImpl.java. Used to save heapId, name pairs for non core tables.
author:
   jamie


Field Summary
final static  intROWNOTDUPLICATE
     ROWNOTDUPLICATE is out of range for a row number.

Constructor Summary
 TabInfoImpl(CatalogRowFactory crf)
    

Method Summary
 intdeleteRow(TransactionController tc, ExecIndexRow key, int indexNumber)
     Given a key row, delete all matching heap rows and their index rows.

LOCKING: row locking if there is a key; otherwise, table locking.
Parameters:
  tc - transaction controller
Parameters:
  key - key to delete by.
Parameters:
  indexNumber - Key is appropriate for this index.

 intdeleteRow(TransactionController tc, ExecIndexRow key, int indexNumber, boolean wait)
    
 intdeleteRows(TransactionController tc, ExecIndexRow startKey, int startOp, Qualifier[][] qualifier, TupleFilter filter, ExecIndexRow stopKey, int stopOp, int indexNumber)
     Delete the set of rows defined by a scan on an index from the table.
 intgetBaseColumnPosition(int indexNumber, int colNumber)
     Get the base column position for a column within a catalog given the (0-based) index number for this catalog and the (0-based) column number for the column within the index.
 CatalogRowFactorygetCatalogRowFactory()
     Get the CatalogRowFactory for this.
 PropertiesgetCreateHeapProperties()
     Get the Properties associated with creating the heap.
 PropertiesgetCreateIndexProperties(int indexNumber)
     Get the Properties associated with creating the specified index.
Parameters:
  indexNumber - The specified index number.
 longgetHeapConglomerate()
     Get the conglomerate for the heap.
 intgetIndexColumnCount(int indexNumber)
     Get the column count for the specified index number.
Parameters:
  indexNumber - The index number.
 longgetIndexConglomerate(int indexID)
     Get the conglomerate for the specified index.
 StringgetIndexName(int indexId)
     Get the index name.
 IndexRowGeneratorgetIndexRowGenerator(int indexNumber)
     Get the IndexRowGenerator for the specified index number.
Parameters:
  indexNumber - The index number.
 intgetNumberOfIndexes()
     Get the number of indexes on this catalog.
 ExecRowgetRow(TransactionController tc, ExecIndexRow key, int indexNumber)
     Given a key row, return the first matching heap row.
 ExecRowgetRow(TransactionController tc, ConglomerateController heapCC, ExecIndexRow key, int indexNumber)
     Given a key row, return the first matching heap row.
 RowLocationgetRowLocation(TransactionController tc, ExecIndexRow key, int indexNumber)
     Given an index row and index number return the RowLocation in the heap of the first matching row.
 StringgetTableName()
     Get the table name.
 intinsertRow(ExecRow row, TransactionController tc, boolean wait)
     Inserts a base row into a catalog and inserts all the corresponding index rows.
 intinsertRowList(ExecRow[] rowList, TransactionController tc)
     Inserts a list of base rows into a catalog and inserts all the corresponding index rows.
 booleanisComplete()
     Is this fully initialized.
 booleanisIndexUnique(int indexNumber)
    
 voidsetHeapConglomerate(long heapConglomerate)
     Set the heap conglomerate for this.
 voidsetIndexConglomerate(int index, long indexConglomerate)
     Set the index conglomerate for the table.
 voidsetIndexConglomerate(ConglomerateDescriptor cd)
     Set the index conglomerate for the table.
 voidsetIndexRowGenerator(int indexNumber, IndexRowGenerator irg)
     Set the IndexRowGenerator for the specified index number.
public  StringtoString()
    
 voidupdateRow(ExecIndexRow key, ExecRow newRow, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc)
     Updates a base row in a catalog and updates all the corresponding index rows.
Parameters:
  key - key row
Parameters:
  newRow - new version of the row
Parameters:
  indexNumber - index that key operates
Parameters:
  indicesToUpdate - array of booleans, one for each index on the catalog.if a boolean is true, that means we must update thecorresponding index because changes in the newRowaffect it.
Parameters:
  colsToUpdate - array of ints indicating which columns (1 based)to update.
 voidupdateRow(ExecIndexRow key, ExecRow newRow, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc, boolean wait)
     Updates a base row in a catalog and updates all the corresponding index rows.
Parameters:
  key - key row
Parameters:
  newRow - new version of the row
Parameters:
  indexNumber - index that key operates
Parameters:
  indicesToUpdate - array of booleans, one for each index on the catalog.if a boolean is true, that means we must update thecorresponding index because changes in the newRowaffect it.
Parameters:
  colsToUpdate - array of ints indicating which columns (1 based)to update.
 voidupdateRow(ExecIndexRow key, ExecRow[] newRows, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc)
     Updates a set of base rows in a catalog with the same key on an index and updates all the corresponding index rows.

Field Detail
ROWNOTDUPLICATE
final static int ROWNOTDUPLICATE(Code)
ROWNOTDUPLICATE is out of range for a row number. If a return code does not equal this value, then it refers to the row that is a duplicate.




Constructor Detail
TabInfoImpl
TabInfoImpl(CatalogRowFactory crf)(Code)
Constructor
Parameters:
  crf - the associated CatalogRowFactory




Method Detail
deleteRow
int deleteRow(TransactionController tc, ExecIndexRow key, int indexNumber) throws StandardException(Code)
Given a key row, delete all matching heap rows and their index rows.

LOCKING: row locking if there is a key; otherwise, table locking.
Parameters:
  tc - transaction controller
Parameters:
  key - key to delete by.
Parameters:
  indexNumber - Key is appropriate for this index. the number of rows deleted. If key is not unique,this may be more than one.
exception:
  StandardException - Thrown on failure




deleteRow
int deleteRow(TransactionController tc, ExecIndexRow key, int indexNumber, boolean wait) throws StandardException(Code)



deleteRows
int deleteRows(TransactionController tc, ExecIndexRow startKey, int startOp, Qualifier[][] qualifier, TupleFilter filter, ExecIndexRow stopKey, int stopOp, int indexNumber) throws StandardException(Code)
Delete the set of rows defined by a scan on an index from the table. Most of the parameters are simply passed to TransactionController.openScan. Please refer to the TransactionController documentation for details.

LOCKING: row locking if there is a start and a stop key; otherwise, table locking
Parameters:
  tc - transaction controller
Parameters:
  startKey - key to start the scan.
Parameters:
  startOp - operation to start the scan.
Parameters:
  stopKey - key to start the scan.
Parameters:
  qualifier - a qualifier for the scan.
Parameters:
  filter - filter on base rows
Parameters:
  stopOp - operation to start the scan.
Parameters:
  indexNumber - Key is appropriate for this index. the number of rows deleted.
exception:
  StandardException - Thrown on failure
See Also:   TransactionController.openScan




getBaseColumnPosition
int getBaseColumnPosition(int indexNumber, int colNumber)(Code)
Get the base column position for a column within a catalog given the (0-based) index number for this catalog and the (0-based) column number for the column within the index.
Parameters:
  indexNumber - The index number
Parameters:
  colNumber - The column number within the index int The base column position for the column.



getCatalogRowFactory
CatalogRowFactory getCatalogRowFactory()(Code)
Get the CatalogRowFactory for this. CatalogRowFactory The CatalogRowFactory for this.



getCreateHeapProperties
Properties getCreateHeapProperties()(Code)
Get the Properties associated with creating the heap. The Properties associated with creating the heap.



getCreateIndexProperties
Properties getCreateIndexProperties(int indexNumber)(Code)
Get the Properties associated with creating the specified index.
Parameters:
  indexNumber - The specified index number. The Properties associated with creating the specified index.



getHeapConglomerate
long getHeapConglomerate()(Code)
Get the conglomerate for the heap. long The conglomerate for the heap.



getIndexColumnCount
int getIndexColumnCount(int indexNumber)(Code)
Get the column count for the specified index number.
Parameters:
  indexNumber - The index number. int The column count for the specified index.



getIndexConglomerate
long getIndexConglomerate(int indexID)(Code)
Get the conglomerate for the specified index. long The conglomerate for the specified index.



getIndexName
String getIndexName(int indexId)(Code)
Get the index name.
Parameters:
  indexId - Index number for index for table String The index name.



getIndexRowGenerator
IndexRowGenerator getIndexRowGenerator(int indexNumber)(Code)
Get the IndexRowGenerator for the specified index number.
Parameters:
  indexNumber - The index number. IndexRowGenerator The IRG for the specified index number.



getNumberOfIndexes
int getNumberOfIndexes()(Code)
Get the number of indexes on this catalog. int The number of indexes on this catalog.



getRow
ExecRow getRow(TransactionController tc, ExecIndexRow key, int indexNumber) throws StandardException(Code)
Given a key row, return the first matching heap row.

LOCKING: shared row locking.
Parameters:
  tc - transaction controller
Parameters:
  key - key to read by.
Parameters:
  indexNumber - Key is appropriate for this index.
exception:
  StandardException - Thrown on failure




getRow
ExecRow getRow(TransactionController tc, ConglomerateController heapCC, ExecIndexRow key, int indexNumber) throws StandardException(Code)
Given a key row, return the first matching heap row.

LOCKING: shared row locking.
Parameters:
  tc - transaction controller
Parameters:
  heapCC - heap to look in
Parameters:
  key - key to read by.
Parameters:
  indexNumber - Key is appropriate for this index.
exception:
  StandardException - Thrown on failure




getRowLocation
RowLocation getRowLocation(TransactionController tc, ExecIndexRow key, int indexNumber) throws StandardException(Code)
Given an index row and index number return the RowLocation in the heap of the first matching row. Used by the autoincrement code to get the RowLocation in syscolumns given a pair.
See Also:   DataDictionaryImpl.computeRowLocation(TransactionControllerTableDescriptorString)
Parameters:
  tc - Transaction Controller to use.
Parameters:
  key - Index Row to search in the index.
Parameters:
  indexNumber - Identifies the index to use.
exception:
  StandardException - thrown on failure.



getTableName
String getTableName()(Code)
Get the table name. String The table name.



insertRow
int insertRow(ExecRow row, TransactionController tc, boolean wait) throws StandardException(Code)
Inserts a base row into a catalog and inserts all the corresponding index rows.
Parameters:
  row - row to insert
Parameters:
  tc - transaction
Parameters:
  wait - to wait on lock or quickly TIMEOUT row number (>= 0) if duplicate row inserted into an indexROWNOTDUPLICATE otherwise
exception:
  StandardException - Thrown on failure



insertRowList
int insertRowList(ExecRow[] rowList, TransactionController tc) throws StandardException(Code)
Inserts a list of base rows into a catalog and inserts all the corresponding index rows.
Parameters:
  rowList - List of rows to insert
Parameters:
  tc - transaction controller row number (>= 0) if duplicate row inserted into an indexROWNOTDUPLICATE otherwise
exception:
  StandardException - Thrown on failure



isComplete
boolean isComplete()(Code)
Is this fully initialized. (i.e., is all conglomerate info initialized) boolean Whether or not this is fully initialized.



isIndexUnique
boolean isIndexUnique(int indexNumber)(Code)
Return whether or not this index is declared unique
Parameters:
  indexNumber - The index number boolean Whether or not this index is declared unique



setHeapConglomerate
void setHeapConglomerate(long heapConglomerate)(Code)
Set the heap conglomerate for this.
Parameters:
  heapConglomerate - The new heap conglomerate.



setIndexConglomerate
void setIndexConglomerate(int index, long indexConglomerate)(Code)
Set the index conglomerate for the table.
Parameters:
  index - Index number for index for table
Parameters:
  indexConglomerate - The conglomerate for that index



setIndexConglomerate
void setIndexConglomerate(ConglomerateDescriptor cd)(Code)
Set the index conglomerate for the table.
Parameters:
  cd - The ConglomerateDescriptor for one of the indexfor this table.



setIndexRowGenerator
void setIndexRowGenerator(int indexNumber, IndexRowGenerator irg)(Code)
Set the IndexRowGenerator for the specified index number.
Parameters:
  indexNumber - The index number.
Parameters:
  irg - The IndexRowGenerator for the specified index number.



toString
public String toString()(Code)



updateRow
void updateRow(ExecIndexRow key, ExecRow newRow, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc) throws StandardException(Code)
Updates a base row in a catalog and updates all the corresponding index rows.
Parameters:
  key - key row
Parameters:
  newRow - new version of the row
Parameters:
  indexNumber - index that key operates
Parameters:
  indicesToUpdate - array of booleans, one for each index on the catalog.if a boolean is true, that means we must update thecorresponding index because changes in the newRowaffect it.
Parameters:
  colsToUpdate - array of ints indicating which columns (1 based)to update. If null, do all.
Parameters:
  tc - transaction controller
exception:
  StandardException - Thrown on failure



updateRow
void updateRow(ExecIndexRow key, ExecRow newRow, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc, boolean wait) throws StandardException(Code)
Updates a base row in a catalog and updates all the corresponding index rows.
Parameters:
  key - key row
Parameters:
  newRow - new version of the row
Parameters:
  indexNumber - index that key operates
Parameters:
  indicesToUpdate - array of booleans, one for each index on the catalog.if a boolean is true, that means we must update thecorresponding index because changes in the newRowaffect it.
Parameters:
  colsToUpdate - array of ints indicating which columns (1 based)to update. If null, do all.
Parameters:
  tc - transaction controller
Parameters:
  wait - If true, then the caller wants to wait for locks. False will bewhen we using a nested user xaction - we want to timeout right away if the parentholds the lock. (bug 4821)
exception:
  StandardException - Thrown on failure



updateRow
void updateRow(ExecIndexRow key, ExecRow[] newRows, int indexNumber, boolean[] indicesToUpdate, int[] colsToUpdate, TransactionController tc) throws StandardException(Code)
Updates a set of base rows in a catalog with the same key on an index and updates all the corresponding index rows.
Parameters:
  key - key row
Parameters:
  newRows - new version of the array of rows
Parameters:
  indexNumber - index that key operates
Parameters:
  indicesToUpdate - array of booleans, one for each index on the catalog.if a boolean is true, that means we must update thecorresponding index because changes in the newRowaffect it.
Parameters:
  colsToUpdate - array of ints indicating which columns (1 based)to update. If null, do all.
Parameters:
  tc - transaction controller
exception:
  StandardException - Thrown on failure



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.