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


java.lang.Object
   org.apache.derby.impl.sql.depend.BasicDependencyManager

BasicDependencyManager
public class BasicDependencyManager implements DependencyManager(Code)
The dependency manager tracks needs that dependents have of providers.


Field Summary
protected  Hashtabledependents
    
protected  Hashtableproviders
    

Constructor Summary
public  BasicDependencyManager()
    

Method Summary
public  voidaddDependency(Dependent d, Provider p, ContextManager cm)
     adds a dependency from the dependent on the provider.
public  voidclearColumnInfoInProviders(ProviderList pl)
    
public  voidclearDependencies(LanguageConnectionContext lcc, Dependent d)
     Erases all of the dependencies the dependent has, be they valid or invalid, of any dependency type.
public  voidclearDependencies(LanguageConnectionContext lcc, Dependent d, TransactionController tc)
    
public  voidclearInMemoryDependency(Dependency dy)
     Clear the specified in memory dependency.
protected  voidclearProviderDependency(UUID p, Dependency d)
     removes a dependency for a given provider.
public  voidcopyDependencies(Dependent copy_From, Dependent copyTo, boolean persistentOnly, ContextManager cm)
     Copy dependencies from one dependent to another.
public synchronized  voidcopyDependencies(Dependent copy_From, Dependent copyTo, boolean persistentOnly, ContextManager cm, TransactionController tc)
    
public  intcountDependencies()
     Count the number of active dependencies, both stored and in memory, in the system.
public  StringdumpDependencies()
     Dump out debugging info on all of the dependencies currently within the system.
public  StringgetActionString(int action)
     Returns a string representation of the SQL action, hence no need to internationalize, which is causing the invokation of the Dependency Manager.
public synchronized  ProviderInfo[]getPersistentProviderInfos(Dependent dependent)
    
public  ProviderInfo[]getPersistentProviderInfos(ProviderList pl)
    
public  voidinvalidateFor(Provider p, int action, LanguageConnectionContext lcc)
     mark all dependencies on the named provider as invalid. When invalidation types show up, this will use the default invalidation type.

Field Detail
dependents
protected Hashtable dependents(Code)



providers
protected Hashtable providers(Code)




Constructor Detail
BasicDependencyManager
public BasicDependencyManager()(Code)




Method Detail
addDependency
public void addDependency(Dependent d, Provider p, ContextManager cm) throws StandardException(Code)
adds a dependency from the dependent on the provider. This will be considered to be the default type of dependency, when dependency types show up.

Implementations of addDependency should be fast -- performing alot of extra actions to add a dependency would be a detriment.
Parameters:
  d - the dependent
Parameters:
  p - the provider
exception:
  StandardException - thrown if something goes wrong




clearColumnInfoInProviders
public void clearColumnInfoInProviders(ProviderList pl) throws StandardException(Code)

See Also:   DependencyManager.clearColumnInfoInProviders
Parameters:
  pl - provider list
exception:
  StandardException - Thrown on error



clearDependencies
public void clearDependencies(LanguageConnectionContext lcc, Dependent d) throws StandardException(Code)
Erases all of the dependencies the dependent has, be they valid or invalid, of any dependency type. This action is usually performed as the first step in revalidating a dependent; it first erases all the old dependencies, then revalidates itself generating a list of new dependencies, and then marks itself valid if all its new dependencies are valid.

There might be a future want to clear all dependencies for a particular provider, e.g. when destroying the provider. However, at present, they are assumed to stick around and it is the responsibility of the dependent to erase them when revalidating against the new version of the provider.

clearDependencies will delete dependencies if they are stored; the delete is finalized at the next commit.
Parameters:
  d - the dependent
exception:
  StandardException - Thrown on failure




clearDependencies
public void clearDependencies(LanguageConnectionContext lcc, Dependent d, TransactionController tc) throws StandardException(Code)



clearInMemoryDependency
public void clearInMemoryDependency(Dependency dy)(Code)
Clear the specified in memory dependency. This is useful for clean-up when an exception occurs. (We clear all in-memory dependencies added in the current StatementContext.)



clearProviderDependency
protected void clearProviderDependency(UUID p, Dependency d)(Code)
removes a dependency for a given provider. assumes that the dependent removal is being dealt with elsewhere. Won't assume that the dependent only appears once in the list.



copyDependencies
public void copyDependencies(Dependent copy_From, Dependent copyTo, boolean persistentOnly, ContextManager cm) throws StandardException(Code)
Copy dependencies from one dependent to another.
Parameters:
  copy_From - the dependent to copy from
Parameters:
  copyTo - the dependent to copy to
Parameters:
  persistentOnly - only copy persistent dependencies
Parameters:
  cm - Current ContextManager
exception:
  StandardException - Thrown on error.



copyDependencies
public synchronized void copyDependencies(Dependent copy_From, Dependent copyTo, boolean persistentOnly, ContextManager cm, TransactionController tc) throws StandardException(Code)



countDependencies
public int countDependencies() throws StandardException(Code)
Count the number of active dependencies, both stored and in memory, in the system. int The number of active dependencies in the system.
exception:
  StandardException - thrown if something goes wrong



dumpDependencies
public String dumpDependencies() throws StandardException, java.sql.SQLException(Code)
Dump out debugging info on all of the dependencies currently within the system. String Debugging info on the dependencies.(null if SanityManger.DEBUG is false)
exception:
  StandardException - thrown if something goes wrong
exception:
  java.sql.SQLException - thrown if something goes wrong



getActionString
public String getActionString(int action)(Code)
Returns a string representation of the SQL action, hence no need to internationalize, which is causing the invokation of the Dependency Manager.
Parameters:
  action - The action String The String representation



getPersistentProviderInfos
public synchronized ProviderInfo[] getPersistentProviderInfos(Dependent dependent) throws StandardException(Code)

See Also:   DependencyManager.getPersistentProviderInfos
exception:
  StandardException - Thrown on error



getPersistentProviderInfos
public ProviderInfo[] getPersistentProviderInfos(ProviderList pl) throws StandardException(Code)

See Also:   DependencyManager.getPersistentProviderInfos
exception:
  StandardException - Thrown on error



invalidateFor
public void invalidateFor(Provider p, int action, LanguageConnectionContext lcc) throws StandardException(Code)
mark all dependencies on the named provider as invalid. When invalidation types show up, this will use the default invalidation type. The dependencies will still exist once they are marked invalid; clearDependencies should be used to remove dependencies that a dependent has or provider gives.

Implementations of this can take a little time, but are not really expected to recompile things against any changes made to the provider that caused the invalidation. The dependency system makes no guarantees about the state of the provider -- implementations can call this before or after actually changing the provider to its new state.

Implementations should throw StandardException if the invalidation should be disallowed.
Parameters:
  p - the provider
Parameters:
  action - The action causing the invalidate
exception:
  StandardException - thrown if unable to make it invalid




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.