Java Doc for TableStoreData.java in  » Database-ORM » JPOX » org » jpox » store » 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 » JPOX » org.jpox.store 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jpox.store.StoreData
      org.jpox.store.TableStoreData

TableStoreData
public class TableStoreData extends StoreData (Code)
Representation of a class/field managed by the StoreManager where the datastore persists objects into a "DatastoreClass" (table).

Type of data

There are 2 constructors, one for specifying a class (FCO) being managed, and one for specifying a field (SCO) being managed. The "type" is set accordingly to represent which one is being used.

Ownership of Tables

In JPOX, a class can have a table assigned where the class is not the "owner" of the table. This happens when the class has its fields persisted in the table of another class - so they share the table.
version:
   $Revision: 1.2 $


Field Summary
final protected  StringinterfaceName
     If this class is an implementation of a persistent interface, this attribute will hold the name of the interface.
final protected  booleanisTableOwner
     Whether this class is the owner of the table.
protected  DatastoreContainerObjecttable
     The datastore container (table) where this class/field is persisted.
protected  StringtableName
     Name of the datastore object where it is stored.

Constructor Summary
public  TableStoreData(String name, String tableName, boolean tableOwner, int type, String interfaceName)
     Constructor.
public  TableStoreData(ClassMetaData cmd, DatastoreContainerObject table, boolean tableOwner)
     Constructor for FCO data.
public  TableStoreData(AbstractMemberMetaData fmd, DatastoreContainerObject table)
     Constructor for SCO data.

Method Summary
public  DatastoreContainerObjectgetDatastoreContainerObject()
     Accessor for the Table details.
public  DatastoreIdentifiergetDatastoreIdentifier()
     Accessor for the identifier for the table.
public  StringgetTableName()
     Accessor for tableName.
public  booleanhasTable()
     Accessor for whether this has a table representation.
public  booleanisTableOwner()
     Accessor for whether this class is the owner of the table.
public  voidsetDatastoreContainerObject(DatastoreClass table)
     Convenience to set the table.
public  StringtoString()
     Method to return this class/field managed object as a string.

Field Detail
interfaceName
final protected String interfaceName(Code)
If this class is an implementation of a persistent interface, this attribute will hold the name of the interface.



isTableOwner
final protected boolean isTableOwner(Code)
Whether this class is the owner of the table.



table
protected DatastoreContainerObject table(Code)
The datastore container (table) where this class/field is persisted.



tableName
protected String tableName(Code)
Name of the datastore object where it is stored.




Constructor Detail
TableStoreData
public TableStoreData(String name, String tableName, boolean tableOwner, int type, String interfaceName)(Code)
Constructor. To be used when creating for the start mechanism.
Parameters:
  name - Name of the class/field
Parameters:
  tableName - Name of the table associated
Parameters:
  tableOwner - Whether this is the owner
Parameters:
  type - The type (FCO/SCO)
Parameters:
  interfaceName - if this class is an implementation of a persistent interface (multiple persistent interface names are comma separated), otherwise is null.



TableStoreData
public TableStoreData(ClassMetaData cmd, DatastoreContainerObject table, boolean tableOwner)(Code)
Constructor for FCO data.
Parameters:
  cmd - MetaData for the class.
Parameters:
  table - Table where the class is stored.
Parameters:
  tableOwner - Whether the class is the owner of the table.



TableStoreData
public TableStoreData(AbstractMemberMetaData fmd, DatastoreContainerObject table)(Code)
Constructor for SCO data.
Parameters:
  fmd - MetaData for the field.
Parameters:
  table - Table where the field is stored.




Method Detail
getDatastoreContainerObject
public DatastoreContainerObject getDatastoreContainerObject()(Code)
Accessor for the Table details. The Table



getDatastoreIdentifier
public DatastoreIdentifier getDatastoreIdentifier()(Code)
Accessor for the identifier for the table. The table identifier



getTableName
public String getTableName()(Code)
Accessor for tableName. Returns the tableName.



hasTable
public boolean hasTable()(Code)
Accessor for whether this has a table representation. Whether it has a table



isTableOwner
public boolean isTableOwner()(Code)
Accessor for whether this class is the owner of the table. Whether it owns the table



setDatastoreContainerObject
public void setDatastoreContainerObject(DatastoreClass table)(Code)
Convenience to set the table. To be used in cases where the table isn't known until after the initial create
Parameters:
  table - The table



toString
public String toString()(Code)
Method to return this class/field managed object as a string. String version of this class/field managed object.



Fields inherited from org.jpox.store.StoreData
final public static int FCO_TYPE(Code)(Java Doc)
final protected static Localiser LOCALISER(Code)(Java Doc)
final public static int SCO_TYPE(Code)(Java Doc)
final protected String interfaceName(Code)(Java Doc)
protected MetaData metadata(Code)(Java Doc)
final protected String name(Code)(Java Doc)
final protected int type(Code)(Java Doc)

Methods inherited from org.jpox.store.StoreData
public String getInterfaceName()(Code)(Java Doc)
public MetaData getMetaData()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getSuperclass()(Code)(Java Doc)
public int getType()(Code)(Java Doc)
public boolean isFCO()(Code)(Java Doc)
public boolean isSCO()(Code)(Java Doc)
public void setMetaData(MetaData md)(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.