Java Doc for CollectionDescriptor.java in  » Database-ORM » db-ojb » org » apache » ojb » broker » metadata » 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 ORM » db ojb » org.apache.ojb.broker.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.ojb.broker.metadata.DescriptorBase
      org.apache.ojb.broker.metadata.AttributeDescriptorBase
         org.apache.ojb.broker.metadata.ObjectReferenceDescriptor
            org.apache.ojb.broker.metadata.CollectionDescriptor

CollectionDescriptor
public class CollectionDescriptor extends ObjectReferenceDescriptor (Code)
mapping Description for member fields that are Collections
Note: Be careful when use references of this class or caching instances of this class, because instances could become invalid (see MetadataManager ).
author:
   Thomas Mahler
version:
   $Id: CollectionDescriptor.java,v 1.30.2.1 2005/12/21 22:26:10 tomdz Exp $



Constructor Summary
public  CollectionDescriptor(ClassDescriptor descriptor)
    

Method Summary
public  voidaddFkToItemClass(String column)
    
public  voidaddFkToThisClass(String column)
    
public  voidaddOrderBy(String fieldName, boolean sortAscending)
    
protected  intgetCascadeDeleteValue(String cascade)
    
public  ClassgetCollectionClass()
     returns the type of the collection.
public  StringgetCollectionClassName()
     Retrieve the classname of the collection.
public  String[]getFksToItemClass()
    
public  String[]getFksToThisClass()
    
public  StringgetIndirectionTable()
    
public  CollectiongetOrderBy()
     Returns the orderby Collection of Fields.
public  QueryCustomizergetQueryCustomizer()
    
public  booleanhasProxyItems()
    
public  booleanisMtoNRelation()
    
public  voidsetCollectionClass(Class c)
    
public  voidsetFksToItemClass(Vector fksToItemClass)
    
public  voidsetFksToThisClass(Vector fksToThisClass)
    
public  voidsetIndirectionTable(String indirectionTable)
    
public  voidsetQueryCustomizer(QueryCustomizer queryCustomizer)
     Sets the queryCustomizer.
public  StringtoXML()
    


Constructor Detail
CollectionDescriptor
public CollectionDescriptor(ClassDescriptor descriptor)(Code)




Method Detail
addFkToItemClass
public void addFkToItemClass(String column)(Code)
add a FK column pointing to the item Class



addFkToThisClass
public void addFkToThisClass(String column)(Code)
add a FK column pointing to This Class



addOrderBy
public void addOrderBy(String fieldName, boolean sortAscending)(Code)
Adds a field for orderBy
Parameters:
  fieldName - The field name to be used
Parameters:
  sortAscending - true for ASCENDING, false for DESCENDING



getCascadeDeleteValue
protected int getCascadeDeleteValue(String cascade)(Code)



getCollectionClass
public Class getCollectionClass()(Code)
returns the type of the collection. java.lang.Class



getCollectionClassName
public String getCollectionClassName()(Code)
Retrieve the classname of the collection.



getFksToItemClass
public String[] getFksToItemClass()(Code)



getFksToThisClass
public String[] getFksToThisClass()(Code)



getIndirectionTable
public String getIndirectionTable()(Code)



getOrderBy
public Collection getOrderBy()(Code)
Returns the orderby Collection of Fields. Collection



getQueryCustomizer
public QueryCustomizer getQueryCustomizer()(Code)
QueryCustomizer



hasProxyItems
public boolean hasProxyItems() throws PersistenceBrokerException(Code)



isMtoNRelation
public boolean isMtoNRelation()(Code)



setCollectionClass
public void setCollectionClass(Class c)(Code)
set the type of the collection
Parameters:
  c - the collection type



setFksToItemClass
public void setFksToItemClass(Vector fksToItemClass)(Code)



setFksToThisClass
public void setFksToThisClass(Vector fksToThisClass)(Code)



setIndirectionTable
public void setIndirectionTable(String indirectionTable)(Code)



setQueryCustomizer
public void setQueryCustomizer(QueryCustomizer queryCustomizer)(Code)
Sets the queryCustomizer.
Parameters:
  queryCustomizer - The queryCustomizer to set



toXML
public String toXML()(Code)



Fields inherited from org.apache.ojb.broker.metadata.ObjectReferenceDescriptor
final public static int CASCADE_LINK(Code)(Java Doc)
final public static int CASCADE_NONE(Code)(Java Doc)
final public static int CASCADE_OBJECT(Code)(Java Doc)

Methods inherited from org.apache.ojb.broker.metadata.ObjectReferenceDescriptor
public void addForeignKeyField(int newId)(Code)(Java Doc)
public void addForeignKeyField(String newField)(Code)(Java Doc)
public String getCascadeAsString(int cascade)(Code)(Java Doc)
public boolean getCascadeDelete()(Code)(Java Doc)
protected int getCascadeDeleteValue(String cascade)(Code)(Java Doc)
public boolean getCascadeRetrieve()(Code)(Java Doc)
public boolean getCascadeStore()(Code)(Java Doc)
protected int getCascadeStoreValue(String cascade)(Code)(Java Doc)
public int getCascadingDelete()(Code)(Java Doc)
public int getCascadingStore()(Code)(Java Doc)
public FieldDescriptor[] getForeignKeyFieldDescriptors(ClassDescriptor cld)(Code)(Java Doc)
public Vector getForeignKeyFields()(Code)(Java Doc)
public Object[] getForeignKeyValues(Object obj, ClassDescriptor mif) throws PersistenceBrokerException(Code)(Java Doc)
public Class getItemClass()(Code)(Java Doc)
public String getItemClassName()(Code)(Java Doc)
public Class getItemProxyClass() throws PersistenceBrokerException(Code)(Java Doc)
public boolean getOtmDependent()(Code)(Java Doc)
public int getProxyPrefetchingLimit()(Code)(Java Doc)
public boolean hasConstraint()(Code)(Java Doc)
public boolean isLazy()(Code)(Java Doc)
public boolean isRefresh()(Code)(Java Doc)
public boolean isSuperReferenceDescriptor()(Code)(Java Doc)
public void setCascadeDelete(boolean cascade)(Code)(Java Doc)
public void setCascadeRetrieve(boolean b)(Code)(Java Doc)
public void setCascadeStore(boolean cascade)(Code)(Java Doc)
public void setCascadingDelete(int cascade)(Code)(Java Doc)
public void setCascadingDelete(String value)(Code)(Java Doc)
public void setCascadingStore(int cascade)(Code)(Java Doc)
public void setCascadingStore(String value)(Code)(Java Doc)
public void setConstraint(boolean constraint)(Code)(Java Doc)
public void setForeignKeyFields(Vector vec)(Code)(Java Doc)
public void setItemClass(Class c)(Code)(Java Doc)
public void setLazy(boolean lazy)(Code)(Java Doc)
public void setOtmDependent(boolean b)(Code)(Java Doc)
public void setProxyPrefetchingLimit(int proxyPrefetchingLimit)(Code)(Java Doc)
public void setRefresh(boolean refresh)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String toXML()(Code)(Java Doc)

Fields inherited from org.apache.ojb.broker.metadata.AttributeDescriptorBase
protected ClassDescriptor m_ClassDescriptor(Code)(Java Doc)
protected PersistentField m_PersistentField(Code)(Java Doc)

Methods inherited from org.apache.ojb.broker.metadata.AttributeDescriptorBase
public String getAttributeName()(Code)(Java Doc)
public ClassDescriptor getClassDescriptor()(Code)(Java Doc)
public PersistentField getPersistentField()(Code)(Java Doc)
public void setClassDescriptor(ClassDescriptor classDescriptor)(Code)(Java Doc)
public void setPersistentField(Class c, String fieldname)(Code)(Java Doc)
public void setPersistentField(PersistentField pf)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from org.apache.ojb.broker.metadata.DescriptorBase
final static long serialVersionUID(Code)(Java Doc)

Methods inherited from org.apache.ojb.broker.metadata.DescriptorBase
public void addAttribute(String attributeName, String attributeValue)(Code)(Java Doc)
public String getAttribute(String attributeName, String defaultValue)(Code)(Java Doc)
public String getAttribute(String attributeName)(Code)(Java Doc)
public String[] getAttributeNames()(Code)(Java Doc)
public Map getAttributes()(Code)(Java Doc)
public String toString()(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.