Java Doc for SpeedoClass.java in  » Database-ORM » Speedo_1.4.5 » org » objectweb » speedo » 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 » Speedo_1.4.5 » org.objectweb.speedo.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.speedo.metadata.SpeedoElement
      org.objectweb.speedo.metadata.SpeedoClass

SpeedoClass
public class SpeedoClass extends SpeedoElement (Code)
Describes a persistence capable class.
author:
   S.Chassande-Barrioz


Field Summary
final public static  byteALREADY_ENHANCED
     The class has been previously enhanced and no additional operation is required.
final public static  byteENHANCEMENT_FAILED
     The enhancement of the class has failed.
final public static  byteENHANCEMENT_REQUIRED
     The enhancement is required.
final public static  byteNON_PUBLIC_NO_ARG_CONSTRUCTOR
    
final public static  byteNO_NO_ARG_CONSTRUCTOR
     The persistent class has no no-arg constructor.
final public static  bytePUBLIC_NO_ARG_CONSTRUCTOR
     The persistent class has a public no-arg constructor.
public  HashMapcallBacks
     Register some callback methods and their associated application method to which the callback is mapped.
public  byteenhancementStatus
     Specify the status of the persistent class with regards to the enhancement process.
public  MapfetchGroups
     Description of fetchgroups defined for this class.
public  Mapfields
     Description of persistent capable fields of this class.
public  SpeedoIdentityidentity
     Defines the identifier of the persistent class.
public  SpeedoInheritanceinheritance
     Defines the inheritance strategy if this class inherits from a persistent class.
public  booleanisAbstract
     Indicates if the class is abstract.
public  booleanisDetachable
     Attribute detachable.
public  booleanisInstanceCallbacks
    
public  booleanisSerializable
    
public  SpeedoJoin[]joinToExtTables
     Is the join to reach external tables.
public  Classjormclass
     JORM meta object corresponding to this Speedo meta object.
public  SpeedoTablemainTable
     The main table of the persistent class.
public  SpeedoPackagemoPackage
     Description of the package which contains this class.
public  Stringname
     Class name.
public  Mapname2query
    
public  StringnameForQuery
     Class name for queries.
public  bytenoArgConstructorStatus
     Qualifies the status of the no-arg constructor of the persistent class.
public  SpeedoVersionversion
     Description of the version.
public  SpeedoFieldversionField
     Defines the field used for database optimitic locking policy.


Method Summary
public  voidadd(Object field)
     Adds a SpeedoField to the class.
public  voidadd(Object field, boolean failsOnError, Logger logger)
     Adds a SpeedoField to the class.
public  voidaddFetchGroup(Object fetchGroup)
     Adds a SpeedoFetchGroup to the class.
public  voidaddFetchGroup(Object fetchGroup, boolean failsOnError, Logger logger)
     Adds a SpeedoFetchgroup to the class.
public  voidaddJoin(SpeedoJoin j)
    
public  intcomputeFieldNumbers()
     Computes the field numbers for the fields of this class.
public  booleancontainsJoin(SpeedoJoin join)
    
public  booleanenhancementFailed()
    
public  booleangenerateObjectId()
    
public  SpeedoClassgetAncestor()
    
public  SpeedoColumngetColumn(String colname, boolean mainonly)
     Look for a column with a given name defined into the given SpeedoClass.
public  SpeedoTablegetExtTable(String tableName, boolean createifnone)
    
public  StringgetFQName()
    
public  SpeedoFieldgetField(String fieldName)
     Finds a field from its name.
public  SpeedoFieldgetFieldFromColumn(String colname)
    
public  bytegetIdentityType()
    
public  SpeedoFieldgetInheritedField(String name)
    
public  SpeedoJoingetJoin(String tableName)
    
public  SpeedoJoingetJoin(String tableName, boolean createifnone)
    
public  intgetJoinIndex(SpeedoJoin join)
    
public  StringgetJormFileName()
    
public  StringgetObjectidClass()
    
public  ListgetPKFields()
    
public  ListgetParents()
    
public  intgetPkFieldCount()
    
public  StringgetSourceDesc()
    
public  StringgetSourceDescShort()
    
public  SpeedoClassgetSpeedoClassFromContext(String className)
    
public  SpeedoClassgetSuper()
    
public  StringgetSuperClassName()
    
public  ListgetTableIndexes()
    
public  SpeedoFieldgetUniquePKField()
     Find in the class or in its parent, the unique persistent field marked as primary key.
public  StringgetXMLFileName()
    
public  booleanisAlreadyEnhanced()
    
public  voidremoveJoin(SpeedoJoin j)
    
public  booleanrequireEnhancement()
    
public  voidsetAlreadyEnhanced(boolean v)
    
public  voidsetDatastoreIdSequenceName(String sequenceName)
    
public  voidsetIdentityType(byte identityType)
    
public  voidsetRequireEnhancement(boolean v)
    
public  voidsetSuperClassName(String superClassName)
    
public  StringtoString()
     Transforms a SpeedoClass into a String.

Field Detail
ALREADY_ENHANCED
final public static byte ALREADY_ENHANCED(Code)
The class has been previously enhanced and no additional operation is required.



ENHANCEMENT_FAILED
final public static byte ENHANCEMENT_FAILED(Code)
The enhancement of the class has failed.



ENHANCEMENT_REQUIRED
final public static byte ENHANCEMENT_REQUIRED(Code)
The enhancement is required.



NON_PUBLIC_NO_ARG_CONSTRUCTOR
final public static byte NON_PUBLIC_NO_ARG_CONSTRUCTOR(Code)
The persistent class has no-arg constructor but it is not public



NO_NO_ARG_CONSTRUCTOR
final public static byte NO_NO_ARG_CONSTRUCTOR(Code)
The persistent class has no no-arg constructor.



PUBLIC_NO_ARG_CONSTRUCTOR
final public static byte PUBLIC_NO_ARG_CONSTRUCTOR(Code)
The persistent class has a public no-arg constructor.



callBacks
public HashMap callBacks(Code)
Register some callback methods and their associated application method to which the callback is mapped. It contains an Integer key identifying a particular callback, which is associated with an ArrayList of methods to be called when this callback is fired. Such methods are specified through a metaobject specifying the callback:
See Also:   SpeedoCallback
See Also:   HomeItf.PRE_NEW



enhancementStatus
public byte enhancementStatus(Code)
Specify the status of the persistent class with regards to the enhancement process. The 3 only possible state are #ALREADY_ENHANCED, #ENHANCEMENT_REQUIRED or #ENHANCEMENT_FAILED.
See Also:   SpeedoClass.ALREADY_ENHANCED
See Also:   SpeedoClass.ENHANCEMENT_REQUIRED
See Also:   SpeedoClass.ENHANCEMENT_FAILED



fetchGroups
public Map fetchGroups(Code)
Description of fetchgroups defined for this class. The HashMap key is the field name.



fields
public Map fields(Code)
Description of persistent capable fields of this class. The HashMap key is the field name.



identity
public SpeedoIdentity identity(Code)
Defines the identifier of the persistent class.



inheritance
public SpeedoInheritance inheritance(Code)
Defines the inheritance strategy if this class inherits from a persistent class.



isAbstract
public boolean isAbstract(Code)
Indicates if the class is abstract.



isDetachable
public boolean isDetachable(Code)
Attribute detachable.



isInstanceCallbacks
public boolean isInstanceCallbacks(Code)
Indicates if the class implements InstanceCallbacks



isSerializable
public boolean isSerializable(Code)
Indicates if the class implements Serailizable



joinToExtTables
public SpeedoJoin[] joinToExtTables(Code)
Is the join to reach external tables. It can be null if there is no external table.



jormclass
public Class jormclass(Code)
JORM meta object corresponding to this Speedo meta object.



mainTable
public SpeedoTable mainTable(Code)
The main table of the persistent class. External tables are reachable from joins.
See Also:   SpeedoClass.joinToExtTables



moPackage
public SpeedoPackage moPackage(Code)
Description of the package which contains this class.



name
public String name(Code)
Class name.



name2query
public Map name2query(Code)
Contains the predefined query key = a query name value = the SpeedoPredefinedQuery instance
See Also:   SpeedoPredefinedQuery



nameForQuery
public String nameForQuery(Code)
Class name for queries.



noArgConstructorStatus
public byte noArgConstructorStatus(Code)
Qualifies the status of the no-arg constructor of the persistent class.
See Also:   SpeedoClass.NO_NO_ARG_CONSTRUCTOR
See Also:   SpeedoClass.NON_PUBLIC_NO_ARG_CONSTRUCTOR
See Also:   SpeedoClass.PUBLIC_NO_ARG_CONSTRUCTOR



version
public SpeedoVersion version(Code)
Description of the version.



versionField
public SpeedoField versionField(Code)
Defines the field used for database optimitic locking policy.





Method Detail
add
public void add(Object field)(Code)
Adds a SpeedoField to the class. Precondition: this field doesn't exist in the jdoFields HashMap.
Parameters:
  field - field to add.



add
public void add(Object field, boolean failsOnError, Logger logger) throws SpeedoException(Code)
Adds a SpeedoField to the class.
Parameters:
  field - field to add.
Parameters:
  failsOnError - if an error must be thrown or creates a warning.
Parameters:
  logger - logger for writting warn message if necessary.
exception:
  SpeedoException - if the field was already defined into the class.



addFetchGroup
public void addFetchGroup(Object fetchGroup)(Code)
Adds a SpeedoFetchGroup to the class. Precondition: this fetchgroup doesn't exist in the jdoFtechGroups HashMap.
Parameters:
  fetchGroup - the fetchgroup to add.



addFetchGroup
public void addFetchGroup(Object fetchGroup, boolean failsOnError, Logger logger) throws SpeedoException(Code)
Adds a SpeedoFetchgroup to the class.
Parameters:
  fetchGroup - the fetchgroup to add.
Parameters:
  failsOnError - if an error must be thrown or creates a warning.
Parameters:
  logger - logger for writting warn message if necessary.
exception:
  SpeedoException - if the field was already defined into the class.



addJoin
public void addJoin(SpeedoJoin j)(Code)



computeFieldNumbers
public int computeFieldNumbers()(Code)
Computes the field numbers for the fields of this class. the number of fields of this class (including inherited fields).



containsJoin
public boolean containsJoin(SpeedoJoin join)(Code)



enhancementFailed
public boolean enhancementFailed()(Code)



generateObjectId
public boolean generateObjectId()(Code)



getAncestor
public SpeedoClass getAncestor()(Code)



getColumn
public SpeedoColumn getColumn(String colname, boolean mainonly)(Code)
Look for a column with a given name defined into the given SpeedoClass.
Parameters:
  colname - The name of the column.
Parameters:
  mainonly - Speficy if we must look only for main table columns. The column found or null if none.



getExtTable
public SpeedoTable getExtTable(String tableName, boolean createifnone)(Code)



getFQName
public String getFQName()(Code)
the fully qualified name of the class (include the package name)the package separator is a dot



getField
public SpeedoField getField(String fieldName)(Code)
Finds a field from its name. The fields can belong this class or an ancestor of this class.
Parameters:
  fieldName - is the name of a persistent field. the name can be fullyqualified (ie the field name is prefixed by the class name,the separator is a dot or #) the SpeedoField instance if it has been found., otherwise null



getFieldFromColumn
public SpeedoField getFieldFromColumn(String colname)(Code)



getIdentityType
public byte getIdentityType()(Code)



getInheritedField
public SpeedoField getInheritedField(String name)(Code)



getJoin
public SpeedoJoin getJoin(String tableName)(Code)



getJoin
public SpeedoJoin getJoin(String tableName, boolean createifnone)(Code)



getJoinIndex
public int getJoinIndex(SpeedoJoin join)(Code)



getJormFileName
public String getJormFileName()(Code)



getObjectidClass
public String getObjectidClass()(Code)



getPKFields
public List getPKFields()(Code)



getParents
public List getParents()(Code)



getPkFieldCount
public int getPkFieldCount()(Code)



getSourceDesc
public String getSourceDesc()(Code)



getSourceDescShort
public String getSourceDescShort()(Code)



getSpeedoClassFromContext
public SpeedoClass getSpeedoClassFromContext(String className)(Code)



getSuper
public SpeedoClass getSuper()(Code)



getSuperClassName
public String getSuperClassName()(Code)



getTableIndexes
public List getTableIndexes()(Code)



getUniquePKField
public SpeedoField getUniquePKField() throws SpeedoException(Code)
Find in the class or in its parent, the unique persistent field marked as primary key. the unique pk fields if it exists one, null otherwise.
throws:
  SpeedoException - if there are several persistent fields marked as primary key.



getXMLFileName
public String getXMLFileName()(Code)



isAlreadyEnhanced
public boolean isAlreadyEnhanced()(Code)



removeJoin
public void removeJoin(SpeedoJoin j)(Code)



requireEnhancement
public boolean requireEnhancement()(Code)



setAlreadyEnhanced
public void setAlreadyEnhanced(boolean v)(Code)



setDatastoreIdSequenceName
public void setDatastoreIdSequenceName(String sequenceName)(Code)



setIdentityType
public void setIdentityType(byte identityType)(Code)



setRequireEnhancement
public void setRequireEnhancement(boolean v)(Code)



setSuperClassName
public void setSuperClassName(String superClassName) throws SpeedoException(Code)



toString
public String toString()(Code)
Transforms a SpeedoClass into a String. the Sting corresponding to the SpeedoClass.



Fields inherited from org.objectweb.speedo.metadata.SpeedoElement
public transient List jdoExtension(Code)(Java Doc)
public Personality personality(Code)(Java Doc)

Methods inherited from org.objectweb.speedo.metadata.SpeedoElement
public void addExtension(SpeedoExtension se)(Code)(Java Doc)
protected static Object[] addInArray(Object value, Object[] array, Class type)(Code)(Java Doc)
public SpeedoExtension getExtension(String vendor, String key)(Code)(Java Doc)
public SpeedoExtension getExtensionByKey(String key)(Code)(Java Doc)
public String getExtensionValueByKey(String key)(Code)(Java Doc)
protected static int indexOfInArray(Object[] array, Object element)(Code)(Java Doc)
protected static Object[] removeInArray(Object value, Object[] array, Class type)(Code)(Java Doc)
protected static Object[] setValueInArray(Object value, Object[] array, int pos, int arraySize)(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.