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

All known Subclasses:   org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP1xFieldBridge,  org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge,
JDBCAbstractCMPFieldBridge
abstract public class JDBCAbstractCMPFieldBridge implements JDBCCMPFieldBridge(Code)
JDBCAbstractCMPFieldBridge is the default implementation of JDBCCMPFieldBridge. Most of the heavy lifting of this command is handled by JDBCUtil. It is left to subclasses to implement the logic for getting and setting instance values and dirty checking, as this is dependent on the CMP version used. Life-cycle: Tied to the EntityBridge. Multiplicity: One for each entity bean cmp field.
author:
   Dain Sundstrom
author:
   Alex Loubyansky
author:
   Heiko W.Rupp
version:
   $Revision: 57209 $
version:
  

Revisions:
version:
  

20021023 Steve Coy:
version:
  



Field Summary
protected  booleancheckDirtyAfterGet
    
protected  bytedefaultFlags
    
final protected  StringfieldName
    
final protected  intjdbcContextIndex
    
final protected  Loggerlog
    
final protected  JDBCStoreManagermanager
    
final protected  booleanprimaryKeyMember
    
final protected  booleanreadOnly
    
final protected  longreadTimeOut
    
protected  CMPFieldStateFactorystateFactory
    
final protected  inttableIndex
    

Constructor Summary
public  JDBCAbstractCMPFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata)
    
public  JDBCAbstractCMPFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata, JDBCType jdbcType)
    
public  JDBCAbstractCMPFieldBridge(JDBCStoreManager manager, String fieldName, Class fieldType, JDBCType jdbcType, boolean readOnly, long readTimeOut, Class primaryKeyClass, Field primaryKeyField, int jdbcContextIndex, int tableIndex, boolean checkDirtyAfterGet, CMPFieldStateFactory stateFactory)
    

Method Summary
public  voidaddDefaultFlag(byte flag)
    
public  bytegetDefaultFlags()
    
final public  intgetFieldIndex()
    
public  StringgetFieldName()
    
public  ClassgetFieldType()
    
public  JDBCTypegetJDBCType()
    
public  JDBCEntityPersistenceStoregetManager()
    
public  ClassgetPrimaryKeyClass()
    
public  FieldgetPrimaryKeyField()
    
public  ObjectgetPrimaryKeyValue(Object primaryKey)
    
public  longgetReadTimeOut()
    
public  intgetTableIndex()
    
public  ObjectgetValue(EntityEnterpriseContext ctx)
    
public  voidinitInstance(EntityEnterpriseContext ctx)
     Set CMPFieldValue to Java default value (i.e., 0 or null).
public  booleanisCMPField()
    
public  booleanisPrimaryKeyMember()
    
public  booleanisReadOnly()
    
public  booleanisRelationTableField()
    
public  intloadArgumentResults(ResultSet rs, int parameterIndex, Object[] argumentRef)
    
public  intloadInstanceResults(ResultSet rs, int parameterIndex, EntityEnterpriseContext ctx)
    
public  intloadPrimaryKeyResults(ResultSet rs, int parameterIndex, Object[] pkRef)
    
abstract public  voidresetPersistenceContext(EntityEnterpriseContext ctx)
    
public  intsetArgumentParameters(PreparedStatement ps, int parameterIndex, Object arg)
    
abstract protected  voidsetDirtyAfterGet(EntityEnterpriseContext ctx)
    
public  intsetInstanceParameters(PreparedStatement ps, int parameterIndex, EntityEnterpriseContext ctx)
    
public  voidsetLockingStrategy(LockingStrategy lockingStrategy)
    
public  intsetPrimaryKeyParameters(PreparedStatement ps, int parameterIndex, Object primaryKey)
    
public  ObjectsetPrimaryKeyValue(Object primaryKey, Object value)
    
public  voidsetValue(EntityEnterpriseContext ctx, Object value)
    

Field Detail
checkDirtyAfterGet
protected boolean checkDirtyAfterGet(Code)



defaultFlags
protected byte defaultFlags(Code)



fieldName
final protected String fieldName(Code)



jdbcContextIndex
final protected int jdbcContextIndex(Code)



log
final protected Logger log(Code)



manager
final protected JDBCStoreManager manager(Code)



primaryKeyMember
final protected boolean primaryKeyMember(Code)



readOnly
final protected boolean readOnly(Code)



readTimeOut
final protected long readTimeOut(Code)



stateFactory
protected CMPFieldStateFactory stateFactory(Code)



tableIndex
final protected int tableIndex(Code)




Constructor Detail
JDBCAbstractCMPFieldBridge
public JDBCAbstractCMPFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata) throws DeploymentException(Code)



JDBCAbstractCMPFieldBridge
public JDBCAbstractCMPFieldBridge(JDBCStoreManager manager, JDBCCMPFieldMetaData metadata, JDBCType jdbcType) throws DeploymentException(Code)



JDBCAbstractCMPFieldBridge
public JDBCAbstractCMPFieldBridge(JDBCStoreManager manager, String fieldName, Class fieldType, JDBCType jdbcType, boolean readOnly, long readTimeOut, Class primaryKeyClass, Field primaryKeyField, int jdbcContextIndex, int tableIndex, boolean checkDirtyAfterGet, CMPFieldStateFactory stateFactory)(Code)




Method Detail
addDefaultFlag
public void addDefaultFlag(byte flag)(Code)
get rid of it later



getDefaultFlags
public byte getDefaultFlags()(Code)



getFieldIndex
final public int getFieldIndex()(Code)



getFieldName
public String getFieldName()(Code)



getFieldType
public Class getFieldType()(Code)



getJDBCType
public JDBCType getJDBCType()(Code)



getManager
public JDBCEntityPersistenceStore getManager()(Code)



getPrimaryKeyClass
public Class getPrimaryKeyClass()(Code)



getPrimaryKeyField
public Field getPrimaryKeyField()(Code)



getPrimaryKeyValue
public Object getPrimaryKeyValue(Object primaryKey) throws IllegalArgumentException(Code)



getReadTimeOut
public long getReadTimeOut()(Code)



getTableIndex
public int getTableIndex()(Code)



getValue
public Object getValue(EntityEnterpriseContext ctx)(Code)



initInstance
public void initInstance(EntityEnterpriseContext ctx)(Code)
Set CMPFieldValue to Java default value (i.e., 0 or null).



isCMPField
public boolean isCMPField()(Code)



isPrimaryKeyMember
public boolean isPrimaryKeyMember()(Code)



isReadOnly
public boolean isReadOnly()(Code)



isRelationTableField
public boolean isRelationTableField()(Code)



loadArgumentResults
public int loadArgumentResults(ResultSet rs, int parameterIndex, Object[] argumentRef) throws IllegalArgumentException(Code)



loadInstanceResults
public int loadInstanceResults(ResultSet rs, int parameterIndex, EntityEnterpriseContext ctx)(Code)



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



resetPersistenceContext
abstract public void resetPersistenceContext(EntityEnterpriseContext ctx)(Code)



setArgumentParameters
public int setArgumentParameters(PreparedStatement ps, int parameterIndex, Object arg)(Code)



setDirtyAfterGet
abstract protected void setDirtyAfterGet(EntityEnterpriseContext ctx)(Code)



setInstanceParameters
public int setInstanceParameters(PreparedStatement ps, int parameterIndex, EntityEnterpriseContext ctx)(Code)



setLockingStrategy
public void setLockingStrategy(LockingStrategy lockingStrategy)(Code)



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



setPrimaryKeyValue
public Object setPrimaryKeyValue(Object primaryKey, Object value) throws IllegalArgumentException(Code)



setValue
public void setValue(EntityEnterpriseContext ctx, Object value)(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)

w__w__w_.___ja___v___a__2__s__.___c___o___m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.