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


java.lang.Object
   org.apache.derby.iapi.sql.dictionary.TupleDescriptor
      org.apache.derby.iapi.sql.dictionary.ViewDescriptor

ViewDescriptor
final public class ViewDescriptor extends TupleDescriptor implements UniqueTupleDescriptor,Dependent,Provider(Code)
This is the implementation of ViewDescriptor. Users of View descriptors should only use the following methods:
  1. getUUID
  2. setUUID
  3. getViewText
  4. setViewName
  5. getCheckOptionType
  6. getCompSchemaId

version:
   0.1
author:
   Jeff Lichtman


Field Summary
final public static  intNO_CHECK_OPTION
    

Constructor Summary
public  ViewDescriptor(DataDictionary dataDictionary, UUID viewID, String viewName, String viewText, int checkOption, UUID compSchemaId)
     Constructor for a ViewDescriptor.

Method Summary
public  voiddropViewWork(DataDictionary dd, DependencyManager dm, LanguageConnectionContext lcc, TransactionController tc, SchemaDescriptor sd, TableDescriptor td, boolean cascade)
    
public  intgetCheckOptionType()
     Gets an identifier telling what type of check option is on this view.
public  StringgetClassType()
     Get the provider's type.
public  UUIDgetCompSchemaId()
     Get the compilation type schema id when this view was first bound.
public  DependableFindergetDependableFinder()
    
public  UUIDgetObjectID()
    
public  StringgetObjectName()
     Return the name of this Provider.
public  UUIDgetUUID()
     Gets the UUID of the view.
public  StringgetViewText()
     Gets the text of the view definition.
public  booleanisValid()
     Check that all of the dependent's dependencies are valid.
public  voidmakeInvalid(int action, LanguageConnectionContext lcc)
     Mark the dependent as invalid (due to at least one of its dependencies being invalid).
public  voidmakeValid(LanguageConnectionContext lcc)
     Attempt to revalidate the dependent.
public  voidprepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc)
     Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).
public  voidsetUUID(UUID uuid)
     Sets the UUID of the view.
public  voidsetViewName(String name)
     Sets the name of the view.
public  StringtoString()
    

Field Detail
NO_CHECK_OPTION
final public static int NO_CHECK_OPTION(Code)




Constructor Detail
ViewDescriptor
public ViewDescriptor(DataDictionary dataDictionary, UUID viewID, String viewName, String viewText, int checkOption, UUID compSchemaId)(Code)
Constructor for a ViewDescriptor.
Parameters:
  dataDictionary - The data dictionary that this descriptor lives in
Parameters:
  viewID - The UUID for the view
Parameters:
  viewName - The name of the view
Parameters:
  viewText - The text of the query expression from the view definition.
Parameters:
  checkOption - int check option type
Parameters:
  compSchemaId - the schemaid to compile in




Method Detail
dropViewWork
public void dropViewWork(DataDictionary dd, DependencyManager dm, LanguageConnectionContext lcc, TransactionController tc, SchemaDescriptor sd, TableDescriptor td, boolean cascade) throws StandardException(Code)



getCheckOptionType
public int getCheckOptionType()(Code)
Gets an identifier telling what type of check option is on this view. An identifier telling what type of check optionis on the view.



getClassType
public String getClassType()(Code)
Get the provider's type. String The provider's type.



getCompSchemaId
public UUID getCompSchemaId()(Code)
Get the compilation type schema id when this view was first bound. the schema UUID



getDependableFinder
public DependableFinder getDependableFinder()(Code)
the stored form of this provider
See Also:   Dependable.getDependableFinder



getObjectID
public UUID getObjectID()(Code)
Get the provider's UUID String The provider's UUID



getObjectName
public String getObjectName()(Code)
Return the name of this Provider. (Useful for errors.) String The name of this provider.



getUUID
public UUID getUUID()(Code)
Gets the UUID of the view. The UUID of the view.



getViewText
public String getViewText()(Code)
Gets the text of the view definition. A String containing the text of the CREATE VIEWstatement that created the view



isValid
public boolean isValid()(Code)
Check that all of the dependent's dependencies are valid. true if the dependent is currently valid



makeInvalid
public void makeInvalid(int action, LanguageConnectionContext lcc) throws StandardException(Code)
Mark the dependent as invalid (due to at least one of its dependencies being invalid).
Parameters:
  action - The action causing the invalidation
exception:
  StandardException - thrown if unable to make it invalid



makeValid
public void makeValid(LanguageConnectionContext lcc) throws StandardException(Code)
Attempt to revalidate the dependent. For prepared statements, this could go through its dependencies and check that they are up to date; if not, it would recompile the statement. Any failure during this attempt should throw StandardException.unableToRevalidate().
exception:
  StandardException - thrown if unable to make it valid



prepareToInvalidate
public void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) throws StandardException(Code)
Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).
Parameters:
  action - The action causing the invalidation
Parameters:
  p - the provider
exception:
  StandardException - thrown if unable to make it invalid



setUUID
public void setUUID(UUID uuid)(Code)
Sets the UUID of the view.
Parameters:
  uuid - The UUID of the view.



setViewName
public void setViewName(String name)(Code)
Sets the name of the view.
Parameters:
  name - The name of the view.



toString
public String toString()(Code)
Prints the contents of the ViewDescriptor The contents as a String



Fields inherited from org.apache.derby.iapi.sql.dictionary.TupleDescriptor
final public static int COLUMN_LIST(Code)(Java Doc)
final public static int CONGLOMERATE_LIST(Code)(Java Doc)
final public static int CONSTRAINT_LIST(Code)(Java Doc)
final public static int TRIGGER_LIST(Code)(Java Doc)

Methods inherited from org.apache.derby.iapi.sql.dictionary.TupleDescriptor
DependableFinder getColumnDependableFinder(int formatId, byte[] columnBitMap)(Code)(Java Doc)
protected DataDictionary getDataDictionary() throws StandardException(Code)(Java Doc)
public DependableFinder getDependableFinder(int formatId)(Code)(Java Doc)
public String getDescriptorName()(Code)(Java Doc)
public String getDescriptorType()(Code)(Java Doc)
public boolean isPersistent()(Code)(Java Doc)
protected void setDataDictionary(DataDictionary dd)(Code)(Java Doc)

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.