Java Doc for Metadata.java in  » Database-ORM » Ammentos » it » biobytes » ammentos » 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 » Ammentos » it.biobytes.ammentos 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   it.biobytes.ammentos.Metadata

Metadata
public class Metadata (Code)
Contains metadata information about an Entity
author:
   Davide Deidda



Constructor Summary
public  Metadata(Class c)
    

Method Summary
public  voidaddAfterDeleteHandler(Method handler)
    
public  voidaddAfterLoadHandler(Method handler)
    
public  voidaddAfterSaveHandler(Method handler)
    
public  voidaddBeforeDeleteHandler(Method handler)
    
public  voidaddBeforeSaveHandler(Method handler)
    
public  voidaddCollectionField(CollectionField listField)
    
public  voidaddField(Field field)
    
protected  Iterator<String>fieldNamesIterator()
    
protected  IteratorfieldsIterator()
    
public  List<Method>getAfterDeleteHandlers()
    
public  List<Method>getAfterLoadHandlers()
    
public  List<Method>getAfterSaveHandlers()
    
public  List<Method>getBeforeDeleteHandlers()
    
public  List<Method>getBeforeSaveHandlers()
    
public  List<CollectionField>getCollectionFields()
    
public  StringgetCollectiveName()
    
public  FieldgetField(String fieldName)
    
public  String[]getFieldNames()
    
public  Field[]getFields()
    
public  Field[]getInsertableFields()
     Returns the list of insertable fields in the object, which are not external nor dynamic fields.
public  Field[]getLoadableFields()
     Returns the list of loadable fields, which are not dynamic fields.
public  PersistorgetPersistor()
    
public  FieldgetPrimaryKeyField()
     Gets the primary key field for this persistent object, if it has one.
public  Field[]getPrimaryKeyFields()
     Returns all the fields of the composite key.
public  StringgetSourceDomain()
     Returns the source table.The source table is the table where the items of this class are loaded.
public  FieldgetSuperKeyField()
     Returns the field containing the primary key of the super class.
public  StringgetTargetDomain()
     Returns the target table.
public  Field[]getUpdatableFields()
     Returns the list of updatable fields in the object, which are not external nor dynamic nor automatic fields.
public  ValidatorgetValidator()
    
public  Field[]getVisibleFields()
    
public  Class[]inheritancePath()
     Returns the inheritance path for the objects of the persistence class.
public  booleanisCreatingSupported()
    
public  booleanisDeletingSupported()
    
public  booleanisEditingSupported()
    
public  voidsetCollectiveName(String string)
    
public  voidsetCreatingSupported(boolean supported)
    
public  voidsetDeletingSupported(boolean supported)
    
public  voidsetEditingSupported(boolean supported)
    
public  voidsetFieldVisible(String fieldName, boolean visible)
    
public  voidsetPersistenceMode(PersistenceMode mode)
    
public  voidsetPrimaryKey(String fieldName, boolean isExternallyGenerated)
     Sets the field "fieldName" as the primary key field.
public  voidsetPrimaryKeys(String... fieldNames)
    
public  voidsetSourceDomain(String sourceDomain)
     Sets the source table.
public  voidsetSuperKey(String fieldName)
     Sets the field which contains the primary key of the superclass.
public  voidsetTargetDomain(String targetDomain)
     Sets the target table.
public  voidsetValidator(Validator validator)
    
public  booleanusesDbSequences()
    


Constructor Detail
Metadata
public Metadata(Class c)(Code)




Method Detail
addAfterDeleteHandler
public void addAfterDeleteHandler(Method handler)(Code)



addAfterLoadHandler
public void addAfterLoadHandler(Method handler)(Code)



addAfterSaveHandler
public void addAfterSaveHandler(Method handler)(Code)



addBeforeDeleteHandler
public void addBeforeDeleteHandler(Method handler)(Code)



addBeforeSaveHandler
public void addBeforeSaveHandler(Method handler)(Code)



addCollectionField
public void addCollectionField(CollectionField listField)(Code)



addField
public void addField(Field field)(Code)



fieldNamesIterator
protected Iterator<String> fieldNamesIterator()(Code)



fieldsIterator
protected Iterator fieldsIterator()(Code)



getAfterDeleteHandlers
public List<Method> getAfterDeleteHandlers()(Code)



getAfterLoadHandlers
public List<Method> getAfterLoadHandlers()(Code)



getAfterSaveHandlers
public List<Method> getAfterSaveHandlers()(Code)



getBeforeDeleteHandlers
public List<Method> getBeforeDeleteHandlers()(Code)



getBeforeSaveHandlers
public List<Method> getBeforeSaveHandlers()(Code)



getCollectionFields
public List<CollectionField> getCollectionFields()(Code)



getCollectiveName
public String getCollectiveName()(Code)



getField
public Field getField(String fieldName)(Code)



getFieldNames
public String[] getFieldNames()(Code)



getFields
public Field[] getFields()(Code)



getInsertableFields
public Field[] getInsertableFields()(Code)
Returns the list of insertable fields in the object, which are not external nor dynamic fields.



getLoadableFields
public Field[] getLoadableFields()(Code)
Returns the list of loadable fields, which are not dynamic fields.



getPersistor
public Persistor getPersistor()(Code)



getPrimaryKeyField
public Field getPrimaryKeyField()(Code)
Gets the primary key field for this persistent object, if it has one.



getPrimaryKeyFields
public Field[] getPrimaryKeyFields()(Code)
Returns all the fields of the composite key.



getSourceDomain
public String getSourceDomain()(Code)
Returns the source table.The source table is the table where the items of this class are loaded. It can be different from the target table, which is instead the table where the items are saved. This difference is allowed to support composed items which are for example the result of a join of more tables. In this case the application must know where exactly to save items.



getSuperKeyField
public Field getSuperKeyField()(Code)
Returns the field containing the primary key of the super class. If not differently specified this field will be the same as the primary key field, what means that this class will have the same primary key as its superclass.



getTargetDomain
public String getTargetDomain()(Code)
Returns the target table.



getUpdatableFields
public Field[] getUpdatableFields()(Code)
Returns the list of updatable fields in the object, which are not external nor dynamic nor automatic fields.



getValidator
public Validator getValidator()(Code)



getVisibleFields
public Field[] getVisibleFields()(Code)



inheritancePath
public Class[] inheritancePath()(Code)
Returns the inheritance path for the objects of the persistence class. The path starts from the class which owns this Metadata to Object, including only persistent casses (classes whith related metadata)



isCreatingSupported
public boolean isCreatingSupported()(Code)



isDeletingSupported
public boolean isDeletingSupported()(Code)



isEditingSupported
public boolean isEditingSupported()(Code)



setCollectiveName
public void setCollectiveName(String string)(Code)

Parameters:
  string -



setCreatingSupported
public void setCreatingSupported(boolean supported)(Code)



setDeletingSupported
public void setDeletingSupported(boolean supported)(Code)



setEditingSupported
public void setEditingSupported(boolean supported)(Code)



setFieldVisible
public void setFieldVisible(String fieldName, boolean visible)(Code)
Sets the visibility for the field "fieldName"



setPersistenceMode
public void setPersistenceMode(PersistenceMode mode)(Code)



setPrimaryKey
public void setPrimaryKey(String fieldName, boolean isExternallyGenerated)(Code)
Sets the field "fieldName" as the primary key field. A primary key field is mandatory for update operations
Parameters:
  fieldName - The name of the field to use as primary key
Parameters:
  isExternallyGenerated - Indicates if the generation of theprimary key value is externally managed( f.e. from a database sequence )



setPrimaryKeys
public void setPrimaryKeys(String... fieldNames)(Code)



setSourceDomain
public void setSourceDomain(String sourceDomain)(Code)
Sets the source table. The source table is the table where the items of this class are loaded. It can be different from the target table, which is instead the table where the items are saved. This difference is allowed to support composed items which are for example the result of a join of different tables. In this case the application must know where exactly save items.



setSuperKey
public void setSuperKey(String fieldName)(Code)
Sets the field which contains the primary key of the superclass. By default this field is the same as the primary key, what means that the annotated class has the same primary key as the parent class



setTargetDomain
public void setTargetDomain(String targetDomain)(Code)
Sets the target table. The target table is the table where the items are saved. Normally the target table and the source table are the same. They can be made different to support special cases (for example when an item is loaded from a join of several tables or from a view). WARNING: If the source table and the target table are different you must pay attention that all the updatable item fields are contained into the target table.



setValidator
public void setValidator(Validator validator)(Code)
Adds a validator



usesDbSequences
public boolean usesDbSequences()(Code)



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.