Java Doc for JDBCEntityBridge.java in  » EJB-Server-JBoss-4.2.1 » server » org » jboss » ejb » plugins » cmp » jdbc » bridge » 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 » EJB Server JBoss 4.2.1 » server » org.jboss.ejb.plugins.cmp.jdbc.bridge 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge

JDBCEntityBridge
public class JDBCEntityBridge implements JDBCAbstractEntityBridge(Code)
JDBCEntityBridge follows the Bridge pattern [Gamma et. al, 1995]. The main job of this class is to construct the bridge from entity meta data. Life-cycle: Undefined. Should be tied to CMPStoreManager. Multiplicity: One per cmp entity bean type.
author:
   Dain Sundstrom
author:
   Alex Loubyansky
author:
   Heiko W. Rupp
version:
   $Revision: 57209 $

Inner Class :public class EntityState
Inner Class :public static interface FieldIterator

Field Summary
final public static  byteADD_TO_SET_ON_UPDATE
    
final public static  byteADD_TO_WHERE_ON_UPDATE
    
final public static  byteCHECK_DIRTY
    
final public static  byteDIRTY
    
final public static  FieldIteratorEMPTY_FIELD_ITERATOR
    
final public static  byteLOADED
    
final public static  byteLOAD_REQUIRED
    
final public static  byteLOCKED
    

Constructor Summary
public  JDBCEntityBridge(JDBCEntityMetaData metadata, JDBCStoreManager manager)
    

Method Summary
 intaddTableField(JDBCCMPFieldBridge field)
    
public  voidcascadeDelete(EntityEnterpriseContext ctx, Map oldRelations)
    
public  ObjectcreatePrimaryKeyInstance()
    
public static  voiddestroyPersistenceContext(EntityEnterpriseContext ctx)
    
public  ObjectextractPrimaryKeyFromInstance(EntityEnterpriseContext ctx)
    
public  StringgetAbstractSchemaName()
    
public  JDBCCMPFieldBridgegetCMPFieldByName(String name)
    
public  JDBCCMRFieldBridgegetCMRFieldByName(String name)
    
public  JDBCAbstractCMRFieldBridge[]getCMRFields()
    
public  JDBCCMPFieldBridgegetCreatedPrincipalField()
    
public  JDBCCMPFieldBridgegetCreatedTimeField()
    
public  DataSourcegetDataSource()
     Returns the datasource for this entity.
public  FieldIteratorgetDirtyIterator(EntityEnterpriseContext ctx)
    
public  boolean[]getEagerLoadMask()
    
public  StringgetEntityName()
    
public  intgetFetchSize()
    
public  FieldBridgegetFieldByName(String name)
    
public  ListgetFields()
     This method is called only at deployment time, not called at runtime.
public  IteratorgetLazyLoadGroupMasks()
    
public  intgetListCacheMax()
    
public  boolean[]getLoadGroupMask(String name)
    
public  FieldIteratorgetLoadIterator(JDBCCMPFieldBridge requiredField, JDBCReadAheadMetaData readahead, EntityEnterpriseContext ctx)
    
public  ClassgetLocalInterface()
    
public  FieldIteratorgetLockedIterator(EntityEnterpriseContext ctx)
    
public  JDBCEntityPersistenceStoregetManager()
    
public  JDBCEntityMetaDatagetMetaData()
    
 intgetNextJDBCContextIndex()
    
public  ClassgetPrimaryKeyClass()
    
public  JDBCFieldBridge[]getPrimaryKeyFields()
    
public  StringgetQualifiedTableName()
    
public  ClassgetRemoteInterface()
    
public  CollectiongetSelectors()
    
public  JDBCFieldBridge[]getTableFields()
    
public  StringgetTableName()
    
public  JDBCCMPFieldBridgegetUpdatedPrincipalField()
    
public  JDBCCMPFieldBridgegetUpdatedTimeField()
    
public  JDBCCMPFieldBridgegetVersionField()
    
public  booleanhasLockedFields(EntityEnterpriseContext ctx)
    
public  voidinit()
    
public  voidinitInstance(EntityEnterpriseContext ctx)
    
public  voidinitPersistenceContext(EntityEnterpriseContext ctx)
    
public  voidinjectPrimaryKeyIntoInstance(EntityEnterpriseContext ctx, Object pk)
    
public  booleanisBeingRemoved(EntityEnterpriseContext ctx)
    
Parameters:
  ctx - instance's context.
public static  booleanisEjbCreateDone(EntityEnterpriseContext ctx)
    
public  booleanisModified(EntityEnterpriseContext ctx)
     This method is used to determined whether the instance was modified. NOTE, even if the method returns true the isStoreRequired for this same instance might return false, e.g.
public  booleanisRemoved(EntityEnterpriseContext ctx)
    
Parameters:
  ctx - instance's context.
public  booleanisScheduledForBatchCascadeDelete(EntityEnterpriseContext ctx)
    
Parameters:
  ctx - instance's context.
public  booleanisScheduledForCascadeDelete(EntityEnterpriseContext ctx)
    
Parameters:
  ctx - instance's context.
public  booleanisStoreRequired(EntityEnterpriseContext ctx)
    
public  intloadPrimaryKeyResults(ResultSet rs, int parameterIndex, Object[] pkRef)
    
public  booleanremoveFromRelations(EntityEnterpriseContext ctx, Object[] oldRelations)
    
public  voidresetPersistenceContext(EntityEnterpriseContext ctx)
    
public  voidresolveRelationships()
    
public  voidscheduleForBatchCascadeDelete(EntityEnterpriseContext ctx)
    
public  voidscheduleForCascadeDelete(EntityEnterpriseContext ctx)
    
public static  voidsetCreated(EntityEnterpriseContext ctx)
    
public static  voidsetEjbCreateDone(EntityEnterpriseContext ctx)
    
public  voidsetIsBeingRemoved(EntityEnterpriseContext ctx)
    
public  intsetPrimaryKeyParameters(PreparedStatement ps, int parameterIndex, Object primaryKey)
    
public  voidsetRemoved(EntityEnterpriseContext ctx)
     Marks the context as removed.
public  voidstart()
     The third phase of deployment.

Field Detail
ADD_TO_SET_ON_UPDATE
final public static byte ADD_TO_SET_ON_UPDATE(Code)



ADD_TO_WHERE_ON_UPDATE
final public static byte ADD_TO_WHERE_ON_UPDATE(Code)



CHECK_DIRTY
final public static byte CHECK_DIRTY(Code)



DIRTY
final public static byte DIRTY(Code)



EMPTY_FIELD_ITERATOR
final public static FieldIterator EMPTY_FIELD_ITERATOR(Code)



LOADED
final public static byte LOADED(Code)



LOAD_REQUIRED
final public static byte LOAD_REQUIRED(Code)



LOCKED
final public static byte LOCKED(Code)




Constructor Detail
JDBCEntityBridge
public JDBCEntityBridge(JDBCEntityMetaData metadata, JDBCStoreManager manager) throws DeploymentException(Code)




Method Detail
addTableField
int addTableField(JDBCCMPFieldBridge field)(Code)



cascadeDelete
public void cascadeDelete(EntityEnterpriseContext ctx, Map oldRelations) throws RemoveException, RemoteException(Code)



createPrimaryKeyInstance
public Object createPrimaryKeyInstance()(Code)



destroyPersistenceContext
public static void destroyPersistenceContext(EntityEnterpriseContext ctx)(Code)



extractPrimaryKeyFromInstance
public Object extractPrimaryKeyFromInstance(EntityEnterpriseContext ctx)(Code)



getAbstractSchemaName
public String getAbstractSchemaName()(Code)



getCMPFieldByName
public JDBCCMPFieldBridge getCMPFieldByName(String name)(Code)

Parameters:
  name - CMP field name JDBCCMPFieldBridge instance or null if no field found.



getCMRFieldByName
public JDBCCMRFieldBridge getCMRFieldByName(String name)(Code)



getCMRFields
public JDBCAbstractCMRFieldBridge[] getCMRFields()(Code)



getCreatedPrincipalField
public JDBCCMPFieldBridge getCreatedPrincipalField()(Code)



getCreatedTimeField
public JDBCCMPFieldBridge getCreatedTimeField()(Code)



getDataSource
public DataSource getDataSource()(Code)
Returns the datasource for this entity.



getDirtyIterator
public FieldIterator getDirtyIterator(EntityEnterpriseContext ctx)(Code)



getEagerLoadMask
public boolean[] getEagerLoadMask()(Code)



getEntityName
public String getEntityName()(Code)



getFetchSize
public int getFetchSize()(Code)



getFieldByName
public FieldBridge getFieldByName(String name)(Code)



getFields
public List getFields()(Code)
This method is called only at deployment time, not called at runtime. the list of all the fields.



getLazyLoadGroupMasks
public Iterator getLazyLoadGroupMasks()(Code)



getListCacheMax
public int getListCacheMax()(Code)



getLoadGroupMask
public boolean[] getLoadGroupMask(String name)(Code)



getLoadIterator
public FieldIterator getLoadIterator(JDBCCMPFieldBridge requiredField, JDBCReadAheadMetaData readahead, EntityEnterpriseContext ctx)(Code)



getLocalInterface
public Class getLocalInterface()(Code)



getLockedIterator
public FieldIterator getLockedIterator(EntityEnterpriseContext ctx)(Code)



getManager
public JDBCEntityPersistenceStore getManager()(Code)



getMetaData
public JDBCEntityMetaData getMetaData()(Code)



getNextJDBCContextIndex
int getNextJDBCContextIndex()(Code)



getPrimaryKeyClass
public Class getPrimaryKeyClass()(Code)



getPrimaryKeyFields
public JDBCFieldBridge[] getPrimaryKeyFields()(Code)



getQualifiedTableName
public String getQualifiedTableName()(Code)



getRemoteInterface
public Class getRemoteInterface()(Code)



getSelectors
public Collection getSelectors()(Code)



getTableFields
public JDBCFieldBridge[] getTableFields()(Code)



getTableName
public String getTableName()(Code)



getUpdatedPrincipalField
public JDBCCMPFieldBridge getUpdatedPrincipalField()(Code)



getUpdatedTimeField
public JDBCCMPFieldBridge getUpdatedTimeField()(Code)



getVersionField
public JDBCCMPFieldBridge getVersionField()(Code)



hasLockedFields
public boolean hasLockedFields(EntityEnterpriseContext ctx)(Code)



init
public void init() throws DeploymentException(Code)



initInstance
public void initInstance(EntityEnterpriseContext ctx)(Code)



initPersistenceContext
public void initPersistenceContext(EntityEnterpriseContext ctx)(Code)



injectPrimaryKeyIntoInstance
public void injectPrimaryKeyIntoInstance(EntityEnterpriseContext ctx, Object pk)(Code)



isBeingRemoved
public boolean isBeingRemoved(EntityEnterpriseContext ctx)(Code)

Parameters:
  ctx - instance's context. true if instance is being removed.



isEjbCreateDone
public static boolean isEjbCreateDone(EntityEnterpriseContext ctx)(Code)



isModified
public boolean isModified(EntityEnterpriseContext ctx)(Code)
This method is used to determined whether the instance was modified. NOTE, even if the method returns true the isStoreRequired for this same instance might return false, e.g. a CMR field that doesn't have a foreign key was modified.
Parameters:
  ctx -



isRemoved
public boolean isRemoved(EntityEnterpriseContext ctx)(Code)

Parameters:
  ctx - instance's context. true if instance was removed.



isScheduledForBatchCascadeDelete
public boolean isScheduledForBatchCascadeDelete(EntityEnterpriseContext ctx)(Code)

Parameters:
  ctx - instance's context. true if instance was scheduled for batch cascade delete (not for cascade delete)



isScheduledForCascadeDelete
public boolean isScheduledForCascadeDelete(EntityEnterpriseContext ctx)(Code)

Parameters:
  ctx - instance's context. true if instance was scheduled for cascade delete (not for batch cascade delete)



isStoreRequired
public boolean isStoreRequired(EntityEnterpriseContext ctx)(Code)



loadPrimaryKeyResults
public int loadPrimaryKeyResults(ResultSet rs, int parameterIndex, Object[] pkRef)(Code)



removeFromRelations
public boolean removeFromRelations(EntityEnterpriseContext ctx, Object[] oldRelations)(Code)



resetPersistenceContext
public void resetPersistenceContext(EntityEnterpriseContext ctx)(Code)
This is only called in commit option B



resolveRelationships
public void resolveRelationships() throws DeploymentException(Code)



scheduleForBatchCascadeDelete
public void scheduleForBatchCascadeDelete(EntityEnterpriseContext ctx)(Code)
Marks the instance as scheduled for batch cascade delete (not for cascade delete)
Parameters:
  ctx - instance's context.



scheduleForCascadeDelete
public void scheduleForCascadeDelete(EntityEnterpriseContext ctx)(Code)
Marks the instance as scheduled for cascade delete (not for batch cascade delete)
Parameters:
  ctx - instance's context.



setCreated
public static void setCreated(EntityEnterpriseContext ctx)(Code)



setEjbCreateDone
public static void setEjbCreateDone(EntityEnterpriseContext ctx)(Code)



setIsBeingRemoved
public void setIsBeingRemoved(EntityEnterpriseContext ctx)(Code)
Marks an instance as being removed



setPrimaryKeyParameters
public int setPrimaryKeyParameters(PreparedStatement ps, int parameterIndex, Object primaryKey)(Code)



setRemoved
public void setRemoved(EntityEnterpriseContext ctx)(Code)
Marks the context as removed.
Parameters:
  ctx - instance's context



start
public void start() throws DeploymentException(Code)
The third phase of deployment. The method is called when relationships are already resolved.
throws:
  DeploymentException -



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)

w_w_w__.__j_av_a__2_s_.com_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.