Java Doc for ClassDescriptor.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.ClassDescriptor

ClassDescriptor
final public class ClassDescriptor extends DescriptorBase implements Serializable,XmlCapable,IsolationLevels(Code)
A ClassDescriptor contains all information for mapping objects of a given class to database tables.
Note: Be careful when use ClassDescriptor variables or caching ClassDescriptor instances, because instances could become invalid during runtime (see MetadataManager ).
author:
   Thomas Mahler
version:
   $Id: ClassDescriptor.java,v 1.88.2.21 2005/12/21 22:26:10 tomdz Exp $


Field Summary
final public static  StringDYNAMIC_STR
    
final public static  StringOJB_CONCRETE_CLASS
    

Constructor Summary
public  ClassDescriptor(DescriptorRepository pRepository)
    

Method Summary
public  voidaddCollectionDescriptor(CollectionDescriptor cod)
     Add a CollectionDescriptor .
public  voidaddExtentClass(Class newExtendClass)
    
public  voidaddExtentClass(String newExtentClassName)
    
public  voidaddExtentClassName(Class newExtendClass)
    
public  voidaddFieldDescriptor(FieldDescriptor fld)
     adds a FIELDDESCRIPTOR to this ClassDescriptor.
public  voidaddObjectReferenceDescriptor(ObjectReferenceDescriptor ord)
     Add a ObjectReferenceDescriptor .
public  FieldDescriptor[]getAllRwFields()
     Returns array of read/write FieldDescriptors.
public  ArrayListgetAttributeDescriptorsForPath(String aPath)
    
public  ArrayListgetAttributeDescriptorsForPath(String aPath, Map pathHints)
     return all AttributeDescriptors for the path
ie: partner.addresses.street returns a Collection of 3 AttributeDescriptors (ObjectReferenceDescriptor, CollectionDescriptor, FieldDescriptor)
ie: partner.addresses returns a Collection of 2 AttributeDescriptors (ObjectReferenceDescriptor, CollectionDescriptor)
Parameters:
  aPath - the cleaned path to the attribute
Parameters:
  pathHints - a Map containing the class to be used for a segment or nullif no segment was used.
public  FieldDescriptorgetAutoIncrementField()
     Returns the first found autoincrement field defined in this class descriptor.
public  FieldDescriptor[]getAutoIncrementFields()
    
public  StringgetBaseClass()
    
public  StringgetClassNameOfObject()
    
public  ClassgetClassOfObject()
    
public  CollectionDescriptorgetCollectionDescriptorByName(String name)
    
public  VectorgetCollectionDescriptors()
     Returns all defined CollectionDescriptor for this class descriptor.
public  ListgetCollectionDescriptors(boolean withInherited)
     Returns all defined CollectionDescriptor for this class descriptor.
public  ValueContainer[]getCurrentLockingValues(Object o)
    
public  DeleteProcedureDescriptorgetDeleteProcedure()
     Retrieve the descriptor for the delete procedure/function.
public synchronized  VectorgetExtentClassNames()
    
public synchronized  VectorgetExtentClasses()
     return all classes in this extent.
public synchronized  ClassgetFactoryClass()
     Return factory class.
public synchronized  MethodgetFactoryMethod()
     Return factory method.
public  FieldDescriptor[]getFieldDescriptions()
     Returns array of all FieldDescriptors.
public  FieldDescriptor[]getFieldDescriptor(boolean withInherited)
     Return an array of all FieldDescriptor for this represented class, if parameter withInherited is true all inherited descriptor of declared super classes are included.
public  FieldDescriptorgetFieldDescriptorByIndex(int index)
     Returns the matching FieldDescriptor .
public  FieldDescriptorgetFieldDescriptorByName(String name)
     Returns the matching FieldDescriptor - only fields of the current class will be scanned, to include fields defined the the super-classes too, use method ClassDescriptor.getFieldDescriptor(boolean) .
public  FieldDescriptorgetFieldDescriptorForPath(String aPath, Map pathHints)
     return the FieldDescriptor for the Attribute referenced in the path
the path may contain simple attribut names, functions and path expressions using relationships
ie: name, avg(price), adress.street
Parameters:
  aPath - the path to the attribute
Parameters:
  pathHints - a Map containing the class to be used for a segment or nullif no segment was used.
public  FieldDescriptorgetFieldDescriptorForPath(String aPath)
    
public  FieldDescriptor[]getFieldDescriptorNonPk(boolean withInherited)
     Return an array of NON-PK FieldDescriptor , if parameter withInherited is true all inherited descriptor of declared super classes are included.
public  FieldDescriptor[]getFieldDescriptorsInHeirarchy()
    
public  StringgetFullTableName()
    
public  VectorgetIndexes()
     Gets the IndexDescriptors used for DDL generation.
public synchronized  MethodgetInitializationMethod()
     Returns the initialization method for this descriptor or null if no initialization method is defined.
public  InsertProcedureDescriptorgetInsertProcedure()
     Retrieve the descriptor for the insert procedure/function.
public  intgetIsolationLevel()
     returns the transaction isolation level to be used for this class.
public  FieldDescriptor[]getLockingFields()
    
public  FieldDescriptor[]getNonPkFields()
    
public  FieldDescriptor[]getNonPkRwFields()
     Returns array of read/write non pk FieldDescriptors.
public  ObjectCacheDescriptorgetObjectCacheDescriptor()
     Returns the appropriate ObjectCacheDescriptor or null if not specified.
public  ObjectReferenceDescriptorgetObjectReferenceDescriptorByName(String name)
    
public  VectorgetObjectReferenceDescriptors()
     Returns all defined ObjectReferenceDescriptor .
public  ListgetObjectReferenceDescriptors(boolean withInherited)
     Returns all defined ObjectReferenceDescriptor .
public  FieldDescriptorgetOjbConcreteClassField()
     Returns the ojbConcreteClass field or null if none defined.
public  StringgetPersistentFieldClassName()
     Get the used org.apache.ojb.broker.metadata.fieldaccess.PersistentField implementation name.
public  FieldDescriptor[]getPkFields()
    
public synchronized  ClassgetProxyClass()
     Insert the method's description here.
public  StringgetProxyClassName()
     Get the name of the proxy class.
public  intgetProxyPrefetchingLimit()
    
public  DescriptorRepositorygetRepository()
     Gets the repository.
public synchronized  RowReadergetRowReader()
     Returns the org.apache.ojb.broker.accesslayer.RowReader for this descriptor.
public  StringgetRowReaderClassName()
    
public  StringgetSchema()
     Gets the schema.
public  StatementsForClassIFgetStatementsForClass(ConnectionManagerIF conMan)
    
public  StringgetSuperClass()
     Return the super class or null if not declared in repository file.
public  ClassDescriptorgetSuperClassDescriptor()
     Answers the ClassDescriptor referenced by 'super' ReferenceDescriptor.
public  intgetSuperClassFieldRef()
    
public  SuperReferenceDescriptorgetSuperReference()
     Returns the SuperReferenceDescriptor of this class or null if none was used.
public  UpdateProcedureDescriptorgetUpdateProcedure()
     Retrieve the descriptor for the update procedure/function.
public  ConstructorgetZeroArgumentConstructor()
     returns the zero argument constructor for the class represented by this class descriptor or null if a zero argument constructor does not exist.
public  booleanisAbstract()
    
public  booleanisAcceptLocks()
     Returns acceptLocks.
public  booleanisAlwaysRefresh()
     if true instances of this class are always refreshed even if they are already in the cache.
public  booleanisDynamicProxy()
    
public  booleanisExtent()
     Insert the method's description here.
public  booleanisInterface()
     Return true, if the described class is an interface.
public  booleanisLocking()
    
public  voidremoveCollectionDescriptor(CollectionDescriptor cod)
    
public  voidremoveExtentClass(String extentClassName)
    
public  booleanremoveFieldDescriptor(FieldDescriptor fld)
    
public  voidremoveObjectReferenceDescriptor(ObjectReferenceDescriptor ord)
    
public  voidsetAcceptLocks(boolean acceptLocks)
     Sets acceptLocks.
public  voidsetAlwaysRefresh(boolean alwaysRefresh)
     Sets the alwaysRefresh parameter.
public  voidsetBaseClass(String baseClass)
    
public  voidsetClassOfObject(Class c)
     sets the class object described by this descriptor.
public  voidsetDeleteProcedure(DeleteProcedureDescriptor newValue)
     Change the descriptor for the delete procedure/function.
public synchronized  voidsetFactoryClass(Class newClass)
     Set the object factory for class described by this descriptor.
public  voidsetFactoryClass(String newClass)
    
public synchronized  voidsetFactoryMethod(String factoryMethodName)
    
public  voidsetIndexes(Vector indexes)
     Sets the IndexDescriptors used for DDL generation.
public synchronized  voidsetInitializationMethod(String newMethodName)
    
public  voidsetInsertProcedure(InsertProcedureDescriptor newValue)
     Change the descriptor for the insert procedure/function.
public  voidsetIsInterface(boolean newIsInterface)
     Set true if described class is a interface.
public  voidsetIsolationLevel(int isoLevel)
    
public  voidsetObjectCacheDescriptor(ObjectCacheDescriptor objectCacheDescriptor)
     Sets the ObjectCacheDescriptor for representing class.
public  voidsetPersistentFieldClassName(String pfClassName)
     Optional! Set the org.apache.ojb.broker.metadata.fieldaccess.PersistentField implementation class used by this class.
public  voidsetProxyClass(Class newProxyClass)
     Sets the proxy class to be used.
public  voidsetProxyClassName(String newProxyClassName)
     Sets the name of the proxy class to be used.
public  voidsetProxyPrefetchingLimit(int proxyPrefetchingLimit)
    
public  voidsetRepository(DescriptorRepository repository)
     Sets the repository.
public  voidsetRowReader(RowReader newReader)
    
public  voidsetRowReader(String newReaderClassName)
    
public  voidsetSchema(String schema)
     Sets the schema.
public  voidsetSuperClass(String classname)
     Set name of the super class.
public  voidsetSuperClassFieldRef(int fieldId)
    
public  voidsetTableName(String str)
    
public  voidsetUpdateProcedure(UpdateProcedureDescriptor newValue)
     Change the descriptor for the update procedure/function.
public  StringtoString()
     Return a string representation of this class.
public  StringtoXML()
    
public  voidupdateLockingValues(Object obj)
    
public  booleanuseIdentityColumnField()
     Returns true if an DB Identity column field based sequence manager was used.

Field Detail
DYNAMIC_STR
final public static String DYNAMIC_STR(Code)



OJB_CONCRETE_CLASS
final public static String OJB_CONCRETE_CLASS(Code)




Constructor Detail
ClassDescriptor
public ClassDescriptor(DescriptorRepository pRepository)(Code)
Constructor declaration




Method Detail
addCollectionDescriptor
public void addCollectionDescriptor(CollectionDescriptor cod)(Code)
Add a CollectionDescriptor .



addExtentClass
public void addExtentClass(Class newExtendClass)(Code)
add an Extent class to the current descriptor
Parameters:
  newExtendClass -



addExtentClass
public void addExtentClass(String newExtentClassName)(Code)
add an Extent class to the current descriptor
Parameters:
  newExtentClassName - name of the class to add



addExtentClassName
public void addExtentClassName(Class newExtendClass)(Code)
add an Extent class to the current descriptor
Parameters:
  newExtendClass - ClassDescriptor.addExtentClass(String newExtentClass)



addFieldDescriptor
public void addFieldDescriptor(FieldDescriptor fld)(Code)
adds a FIELDDESCRIPTOR to this ClassDescriptor.
Parameters:
  fld -



addObjectReferenceDescriptor
public void addObjectReferenceDescriptor(ObjectReferenceDescriptor ord)(Code)
Add a ObjectReferenceDescriptor .



getAllRwFields
public FieldDescriptor[] getAllRwFields()(Code)
Returns array of read/write FieldDescriptors.



getAttributeDescriptorsForPath
public ArrayList getAttributeDescriptorsForPath(String aPath)(Code)
return all AttributeDescriptors for the path
ie: partner.addresses.street returns a Collection of 3 AttributeDescriptors (ObjectReferenceDescriptor, CollectionDescriptor, FieldDescriptor)
ie: partner.addresses returns a Collection of 2 AttributeDescriptors (ObjectReferenceDescriptor, CollectionDescriptor)
Parameters:
  aPath - the cleaned path to the attribute ArrayList of AttributeDescriptors



getAttributeDescriptorsForPath
public ArrayList getAttributeDescriptorsForPath(String aPath, Map pathHints)(Code)
return all AttributeDescriptors for the path
ie: partner.addresses.street returns a Collection of 3 AttributeDescriptors (ObjectReferenceDescriptor, CollectionDescriptor, FieldDescriptor)
ie: partner.addresses returns a Collection of 2 AttributeDescriptors (ObjectReferenceDescriptor, CollectionDescriptor)
Parameters:
  aPath - the cleaned path to the attribute
Parameters:
  pathHints - a Map containing the class to be used for a segment or nullif no segment was used. ArrayList of AttributeDescriptors



getAutoIncrementField
public FieldDescriptor getAutoIncrementField()(Code)
Returns the first found autoincrement field defined in this class descriptor. Use carefully when multiple autoincrement field were defined. ClassDescriptor.getAutoIncrementFields



getAutoIncrementFields
public FieldDescriptor[] getAutoIncrementFields()(Code)



getBaseClass
public String getBaseClass()(Code)



getClassNameOfObject
public String getClassNameOfObject()(Code)
returns the name of the described class String name of the described class



getClassOfObject
public Class getClassOfObject()(Code)
returns the class object of the described class Class the described class



getCollectionDescriptorByName
public CollectionDescriptor getCollectionDescriptorByName(String name)(Code)
Get an CollectionDescriptor by name BRJ
Parameters:
  name - CollectionDescriptor or null



getCollectionDescriptors
public Vector getCollectionDescriptors()(Code)
Returns all defined CollectionDescriptor for this class descriptor.



getCollectionDescriptors
public List getCollectionDescriptors(boolean withInherited)(Code)
Returns all defined CollectionDescriptor for this class descriptor.
Parameters:
  withInherited - If true inherited super class references will be included.



getCurrentLockingValues
public ValueContainer[] getCurrentLockingValues(Object o) throws PersistenceBrokerException(Code)
returns an Array with an Objects CURRENT locking VALUES , BRJ
throws:
  PersistenceBrokerException - if there is an erros accessing o field values



getDeleteProcedure
public DeleteProcedureDescriptor getDeleteProcedure()(Code)
Retrieve the descriptor for the delete procedure/function. The current value



getExtentClassNames
public synchronized Vector getExtentClassNames()(Code)
Return the names of all classes in this extent java.util.Vector a Vector containing the fully qualified namesof all classes in this extent



getExtentClasses
public synchronized Vector getExtentClasses()(Code)
return all classes in this extent. Creation date: (02.02.2001 17:49:11) java.util.Vector



getFactoryClass
public synchronized Class getFactoryClass()(Code)
Return factory class.



getFactoryMethod
public synchronized Method getFactoryMethod()(Code)
Return factory method.



getFieldDescriptions
public FieldDescriptor[] getFieldDescriptions()(Code)
Returns array of all FieldDescriptors.



getFieldDescriptor
public FieldDescriptor[] getFieldDescriptor(boolean withInherited)(Code)
Return an array of all FieldDescriptor for this represented class, if parameter withInherited is true all inherited descriptor of declared super classes are included.
Parameters:
  withInherited - If true inherited super class fields will be included.



getFieldDescriptorByIndex
public FieldDescriptor getFieldDescriptorByIndex(int index)(Code)
Returns the matching FieldDescriptor .



getFieldDescriptorByName
public FieldDescriptor getFieldDescriptorByName(String name)(Code)
Returns the matching FieldDescriptor - only fields of the current class will be scanned, to include fields defined the the super-classes too, use method ClassDescriptor.getFieldDescriptor(boolean) .



getFieldDescriptorForPath
public FieldDescriptor getFieldDescriptorForPath(String aPath, Map pathHints)(Code)
return the FieldDescriptor for the Attribute referenced in the path
the path may contain simple attribut names, functions and path expressions using relationships
ie: name, avg(price), adress.street
Parameters:
  aPath - the path to the attribute
Parameters:
  pathHints - a Map containing the class to be used for a segment or nullif no segment was used. the FieldDescriptor or null (ie: for m:n queries)



getFieldDescriptorForPath
public FieldDescriptor getFieldDescriptorForPath(String aPath)(Code)
return the FieldDescriptor for the Attribute referenced in the path
the path may contain simple attribut names, functions and path expressions using relationships
ie: name, avg(price), adress.street
Parameters:
  aPath - the path to the attribute the FieldDescriptor or null (ie: for m:n queries)



getFieldDescriptorNonPk
public FieldDescriptor[] getFieldDescriptorNonPk(boolean withInherited)(Code)
Return an array of NON-PK FieldDescriptor , if parameter withInherited is true all inherited descriptor of declared super classes are included.
Parameters:
  withInherited - If true inherited super class fields will be included.



getFieldDescriptorsInHeirarchy
public FieldDescriptor[] getFieldDescriptorsInHeirarchy()(Code)
this classes FieldDescriptor's as well as it's parents and so on and so on



getFullTableName
public String getFullTableName()(Code)
Answer Table name including schema BRJ



getIndexes
public Vector getIndexes()(Code)
Gets the IndexDescriptors used for DDL generation.



getInitializationMethod
public synchronized Method getInitializationMethod()(Code)
Returns the initialization method for this descriptor or null if no initialization method is defined.



getInsertProcedure
public InsertProcedureDescriptor getInsertProcedure()(Code)
Retrieve the descriptor for the insert procedure/function. The current value



getIsolationLevel
public int getIsolationLevel()(Code)
returns the transaction isolation level to be used for this class. Used only in the ODMG server



getLockingFields
public FieldDescriptor[] getLockingFields()(Code)
return an array of FieldDescription for optimistic locking sorted ascending according to the field-descriptions getOrder() property



getNonPkFields
public FieldDescriptor[] getNonPkFields()(Code)
return an array of NONPK-FieldDescription sorted ascending according to the field-descriptions getOrder() property



getNonPkRwFields
public FieldDescriptor[] getNonPkRwFields()(Code)
Returns array of read/write non pk FieldDescriptors.



getObjectCacheDescriptor
public ObjectCacheDescriptor getObjectCacheDescriptor()(Code)
Returns the appropriate ObjectCacheDescriptor or null if not specified.



getObjectReferenceDescriptorByName
public ObjectReferenceDescriptor getObjectReferenceDescriptorByName(String name)(Code)
Get an ObjectReferenceDescriptor by name BRJ
Parameters:
  name - ObjectReferenceDescriptor or null



getObjectReferenceDescriptors
public Vector getObjectReferenceDescriptors()(Code)
Returns all defined ObjectReferenceDescriptor .



getObjectReferenceDescriptors
public List getObjectReferenceDescriptors(boolean withInherited)(Code)
Returns all defined ObjectReferenceDescriptor .
Parameters:
  withInherited - If true inherited super class references will be included.



getOjbConcreteClassField
public FieldDescriptor getOjbConcreteClassField()(Code)
Returns the ojbConcreteClass field or null if none defined.



getPersistentFieldClassName
public String getPersistentFieldClassName()(Code)
Get the used org.apache.ojb.broker.metadata.fieldaccess.PersistentField implementation name.



getPkFields
public FieldDescriptor[] getPkFields()(Code)
Return an array of PK FieldDescription sorted ascending according to the field-descriptions getOrder() property



getProxyClass
public synchronized Class getProxyClass()(Code)
Insert the method's description here. Creation date: (26.01.2001 09:20:09) java.lang.Class



getProxyClassName
public String getProxyClassName()(Code)
Get the name of the proxy class. This method doesn't try to access the real class, so it can be called even if the class doesn't exist.



getProxyPrefetchingLimit
public int getProxyPrefetchingLimit()(Code)



getRepository
public DescriptorRepository getRepository()(Code)
Gets the repository. Returns a DescriptorRepository



getRowReader
public synchronized RowReader getRowReader()(Code)
Returns the org.apache.ojb.broker.accesslayer.RowReader for this descriptor.



getRowReaderClassName
public String getRowReaderClassName()(Code)



getSchema
public String getSchema()(Code)
Gets the schema. Returns a String



getStatementsForClass
public StatementsForClassIF getStatementsForClass(ConnectionManagerIF conMan)(Code)



getSuperClass
public String getSuperClass()(Code)
Return the super class or null if not declared in repository file.



getSuperClassDescriptor
public ClassDescriptor getSuperClassDescriptor()(Code)
Answers the ClassDescriptor referenced by 'super' ReferenceDescriptor. ClassDescriptor or null



getSuperClassFieldRef
public int getSuperClassFieldRef()(Code)
TODO drop this method?



getSuperReference
public SuperReferenceDescriptor getSuperReference()(Code)
Returns the SuperReferenceDescriptor of this class or null if none was used. The reference descriptor for the super-reference or nullif not exists.



getUpdateProcedure
public UpdateProcedureDescriptor getUpdateProcedure()(Code)
Retrieve the descriptor for the update procedure/function. The current value



getZeroArgumentConstructor
public Constructor getZeroArgumentConstructor()(Code)
returns the zero argument constructor for the class represented by this class descriptor or null if a zero argument constructor does not exist. If the zero argument constructor for this class is not public it is made accessible before being returned.



isAbstract
public boolean isAbstract()(Code)
boolean true if the mapped class is abstract



isAcceptLocks
public boolean isAcceptLocks()(Code)
Returns acceptLocks. boolean



isAlwaysRefresh
public boolean isAlwaysRefresh()(Code)
if true instances of this class are always refreshed even if they are already in the cache. boolean



isDynamicProxy
public boolean isDynamicProxy()(Code)



isExtent
public boolean isExtent()(Code)
Insert the method's description here. Creation date: (02.02.2001 17:49:11) boolean



isInterface
public boolean isInterface()(Code)
Return true, if the described class is an interface.



isLocking
public boolean isLocking()(Code)
return true if optimistic locking is used



removeCollectionDescriptor
public void removeCollectionDescriptor(CollectionDescriptor cod)(Code)



removeExtentClass
public void removeExtentClass(String extentClassName)(Code)



removeFieldDescriptor
public boolean removeFieldDescriptor(FieldDescriptor fld)(Code)



removeObjectReferenceDescriptor
public void removeObjectReferenceDescriptor(ObjectReferenceDescriptor ord)(Code)



setAcceptLocks
public void setAcceptLocks(boolean acceptLocks)(Code)
Sets acceptLocks.
Parameters:
  acceptLocks - The m_acceptLocks to set



setAlwaysRefresh
public void setAlwaysRefresh(boolean alwaysRefresh)(Code)
Sets the alwaysRefresh parameter.
Parameters:
  alwaysRefresh - The value to set



setBaseClass
public void setBaseClass(String baseClass)(Code)



setClassOfObject
public void setClassOfObject(Class c)(Code)
sets the class object described by this descriptor.
Parameters:
  c - the class to describe



setDeleteProcedure
public void setDeleteProcedure(DeleteProcedureDescriptor newValue)(Code)
Change the descriptor for the delete procedure/function.
Parameters:
  newValue - the new value.



setFactoryClass
public synchronized void setFactoryClass(Class newClass)(Code)
Set the object factory for class described by this descriptor.
See Also:   ClassDescriptor.setFactoryMethod



setFactoryClass
public void setFactoryClass(String newClass)(Code)

See Also:   ClassDescriptor.setFactoryClass



setFactoryMethod
public synchronized void setFactoryMethod(String factoryMethodName)(Code)
sets the initialization method for this descriptor by name



setIndexes
public void setIndexes(Vector indexes)(Code)
Sets the IndexDescriptors used for DDL generation.



setInitializationMethod
public synchronized void setInitializationMethod(String newMethodName)(Code)
sets the initialization method for this descriptor by name



setInsertProcedure
public void setInsertProcedure(InsertProcedureDescriptor newValue)(Code)
Change the descriptor for the insert procedure/function.
Parameters:
  newValue - the new value.



setIsInterface
public void setIsInterface(boolean newIsInterface)(Code)
Set true if described class is a interface.



setIsolationLevel
public void setIsolationLevel(int isoLevel)(Code)
Method declaration
Parameters:
  isoLevel -



setObjectCacheDescriptor
public void setObjectCacheDescriptor(ObjectCacheDescriptor objectCacheDescriptor)(Code)
Sets the ObjectCacheDescriptor for representing class.



setPersistentFieldClassName
public void setPersistentFieldClassName(String pfClassName)(Code)
Optional! Set the org.apache.ojb.broker.metadata.fieldaccess.PersistentField implementation class used by this class.
Parameters:
  pfClassName - The full qualified class name of theorg.apache.ojb.broker.metadata.fieldaccess.PersistentField.



setProxyClass
public void setProxyClass(Class newProxyClass)(Code)
Sets the proxy class to be used.
Parameters:
  newProxyClass - java.lang.Class



setProxyClassName
public void setProxyClassName(String newProxyClassName)(Code)
Sets the name of the proxy class to be used. using "dynamic" instead of a real classname will result in usage of dynamic proxies.
Parameters:
  newProxyClassName - the classname or "dynamic"



setProxyPrefetchingLimit
public void setProxyPrefetchingLimit(int proxyPrefetchingLimit)(Code)



setRepository
public void setRepository(DescriptorRepository repository)(Code)
Sets the repository.
Parameters:
  repository - The repository to set



setRowReader
public void setRowReader(RowReader newReader)(Code)
sets the row reader class for this descriptor



setRowReader
public void setRowReader(String newReaderClassName)(Code)
sets the row reader class name for thie class descriptor



setSchema
public void setSchema(String schema)(Code)
Sets the schema.
Parameters:
  schema - The schema to set



setSuperClass
public void setSuperClass(String classname)(Code)
Set name of the super class.



setSuperClassFieldRef
public void setSuperClassFieldRef(int fieldId)(Code)
TODO drop this method?



setTableName
public void setTableName(String str)(Code)
Method declaration
Parameters:
  str -



setUpdateProcedure
public void setUpdateProcedure(UpdateProcedureDescriptor newValue)(Code)
Change the descriptor for the update procedure/function.
Parameters:
  newValue - the new value.



toString
public String toString()(Code)
Return a string representation of this class.



toXML
public String toXML()(Code)



updateLockingValues
public void updateLockingValues(Object obj) throws PersistenceBrokerException(Code)
updates the values for locking fields , BRJ handles int, long, Timestamp respects updateLock so locking field are only updated when updateLock is true
throws:
  PersistenceBrokerException - if there is an erros accessing obj field values



useIdentityColumnField
public boolean useIdentityColumnField()(Code)
Returns true if an DB Identity column field based sequence manager was used. In that cases we will find an autoincrement field with read-only access and return true, otherwise false.



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.