Java Doc for Entity.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » amber » entity » 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 resin 3.1.5 » resin » com.caucho.amber.entity 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.caucho.amber.entity.Entity

Entity
public interface Entity extends MappedSuperclass(Code)
An entity instance


Field Summary
final public static  intP_DELETED
    
final public static  intP_DELETING
    
final public static  intP_NEW
    
final public static  intP_NON_TRANSACTIONAL
    
final public static  intP_PERSISTED
    
final public static  intP_PERSISTING
    
final public static  intP_TRANSACTIONAL
    
final public static  intTRANSIENT
    


Method Summary
public  void__caucho_afterCommit()
     After a commit.
public  void__caucho_afterRollback()
     After a rollback.
public  void__caucho_cascadePostPersist(AmberConnection aConn)
     Post-cascades the persist operation to child entities.
public  void__caucho_cascadePostRemove(AmberConnection aConn)
     Post-cascades the remove operation to child entities.
public  void__caucho_cascadePrePersist(AmberConnection aConn)
     Pre-cascades the persist operation to child entities.
public  void__caucho_cascadePreRemove(AmberConnection aConn)
     Pre-cascades the remove operation to child entities.
public  Entity__caucho_copy(AmberConnection aConn, EntityItem cacheItem)
     Creates a new instance based on the current entity.
public  void__caucho_copyDirtyMaskFrom(Entity sourceEntity)
     Copies all the dirty mask values from a source entity.
public  void__caucho_copyLoadMaskFrom(Entity sourceEntity)
     Copies all the load mask values from a source entity.
public  Entity__caucho_copyTo(Entity targetEntity, AmberConnection aConn, EntityItem cacheItem)
     Copies this entity state to an existing entity.
public  void__caucho_copyTo(Entity targetEntity, AmberConnection aConn)
     Copies this entity state to an existing entity.
public  void__caucho_copyTo(Entity targetEntity, AmberConnection aConn, boolean isFullMerge)
     Copies this entity state to an existing entity.
public  boolean__caucho_create(AmberConnection aConn, EntityType entityType)
     Creates the entity in the database, making it persistent-new.
public  void__caucho_delete()
     Deletes the entity from the database.
public  void__caucho_detach()
    
public  void__caucho_dumpRelationships()
     Checks entity-relationship consistency and adds information to the log about relationships from this entity.
public  void__caucho_expire()
    
public  boolean__caucho_flush()
     Flushes changes to the backing store.
public  Entity__caucho_getCacheEntity()
     Gets the corresponding cache entity referenced by __caucho_item.
public  EntityItem__caucho_getCacheItem()
     Gets the __caucho_item.
public  AmberConnection__caucho_getConnection()
     Returns the connection.
public  EntityState__caucho_getEntityState()
     Get the entity state.
public  EntityType__caucho_getEntityType()
     Get the entity type.
public  long__caucho_getLoadMask(int loadGroup)
     Returns the load mask value for a load group.
public  Object__caucho_getPrimaryKey()
     Get the primary key.
public  EntityItem__caucho_home_find(AmberConnection aConn, AmberEntityHome home, ResultSet rs, int index)
     Loads the entity from the database.
public  Entity__caucho_home_find(AmberConnection aConn, AmberEntityHome home, Object key)
     Returns a new entity.
public  Entity__caucho_home_new(AmberEntityHome home, Object key, AmberConnection aConn, EntityItem cacheItem)
     Returns a new entity.
public  void__caucho_invalidate_foreign(String table, Object key)
     Called when a foreign object is created/deleted.
public  boolean__caucho_isDirty()
     Returns true if the entity is dirty.
public  boolean__caucho_lazy_create(AmberConnection aConn, EntityType entityType)
     Changes the entity state to P_PERSISTING, but does not flush to database.
public  int__caucho_load(AmberConnection aConn, ResultSet rs, int index)
     Loads the entity from the database and returns the number of columns consumed from the result set.
public  Object__caucho_load_key(AmberConnection aConn, ResultSet rs, int index)
     Loads the entity key.
public  boolean__caucho_makePersistent(AmberConnection aConn, EntityType entityType)
     Makes the entity persistent.
public  void__caucho_makePersistent(AmberConnection aConn, EntityItem item)
     Makes the entity persistent.
public  boolean__caucho_match(String className, Object key)
     Returns true if the entity matches.
public  void__caucho_merge(Entity targetEntity, AmberConnection aConn, boolean isFullMerge)
     Merges this entity state into an existing entity.
public  void__caucho_retrieve_eager(AmberConnection aConn)
     Retrieves data from the data store, including the eager loads.
public  void__caucho_retrieve_self(AmberConnection aConn)
     Retrieves data from the data store, only loading own fields.
public  void__caucho_setCacheItem(EntityItem item)
     Sets the __caucho_item.
public  void__caucho_setConnection(AmberConnection aConn)
     Sets the connection.
public  void__caucho_setEntityState(EntityState state)
     Sets the entity state.
public  void__caucho_setKey(PreparedStatement pstmt, int index)
     Loads the entity from the database.
public  void__caucho_setLoadMask(long loadMask, int loadGroup)
     Sets the load mask value for a load group.
public  void__caucho_setPrimaryKey(Object key)
     Set the primary key.
public  void__caucho_updateCacheItem(Entity item)
     Updates the cache item after commit.

Field Detail
P_DELETED
final public static int P_DELETED(Code)



P_DELETING
final public static int P_DELETING(Code)



P_NEW
final public static int P_NEW(Code)



P_NON_TRANSACTIONAL
final public static int P_NON_TRANSACTIONAL(Code)



P_PERSISTED
final public static int P_PERSISTED(Code)



P_PERSISTING
final public static int P_PERSISTING(Code)



P_TRANSACTIONAL
final public static int P_TRANSACTIONAL(Code)



TRANSIENT
final public static int TRANSIENT(Code)





Method Detail
__caucho_afterCommit
public void __caucho_afterCommit()(Code)
After a commit.



__caucho_afterRollback
public void __caucho_afterRollback()(Code)
After a rollback.



__caucho_cascadePostPersist
public void __caucho_cascadePostPersist(AmberConnection aConn) throws SQLException(Code)
Post-cascades the persist operation to child entities.



__caucho_cascadePostRemove
public void __caucho_cascadePostRemove(AmberConnection aConn) throws SQLException(Code)
Post-cascades the remove operation to child entities.



__caucho_cascadePrePersist
public void __caucho_cascadePrePersist(AmberConnection aConn) throws SQLException(Code)
Pre-cascades the persist operation to child entities.



__caucho_cascadePreRemove
public void __caucho_cascadePreRemove(AmberConnection aConn) throws SQLException(Code)
Pre-cascades the remove operation to child entities.



__caucho_copy
public Entity __caucho_copy(AmberConnection aConn, EntityItem cacheItem)(Code)
Creates a new instance based on the current entity.



__caucho_copyDirtyMaskFrom
public void __caucho_copyDirtyMaskFrom(Entity sourceEntity)(Code)
Copies all the dirty mask values from a source entity.



__caucho_copyLoadMaskFrom
public void __caucho_copyLoadMaskFrom(Entity sourceEntity)(Code)
Copies all the load mask values from a source entity.



__caucho_copyTo
public Entity __caucho_copyTo(Entity targetEntity, AmberConnection aConn, EntityItem cacheItem)(Code)
Copies this entity state to an existing entity.



__caucho_copyTo
public void __caucho_copyTo(Entity targetEntity, AmberConnection aConn)(Code)
Copies this entity state to an existing entity.



__caucho_copyTo
public void __caucho_copyTo(Entity targetEntity, AmberConnection aConn, boolean isFullMerge)(Code)
Copies this entity state to an existing entity.



__caucho_create
public boolean __caucho_create(AmberConnection aConn, EntityType entityType) throws SQLException(Code)
Creates the entity in the database, making it persistent-new.



__caucho_delete
public void __caucho_delete()(Code)
Deletes the entity from the database.



__caucho_detach
public void __caucho_detach()(Code)
Detatch the entity



__caucho_dumpRelationships
public void __caucho_dumpRelationships()(Code)
Checks entity-relationship consistency and adds information to the log about relationships from this entity.



__caucho_expire
public void __caucho_expire()(Code)
Expires data



__caucho_flush
public boolean __caucho_flush() throws SQLException(Code)
Flushes changes to the backing store.



__caucho_getCacheEntity
public Entity __caucho_getCacheEntity()(Code)
Gets the corresponding cache entity referenced by __caucho_item.



__caucho_getCacheItem
public EntityItem __caucho_getCacheItem()(Code)
Gets the __caucho_item.



__caucho_getConnection
public AmberConnection __caucho_getConnection()(Code)
Returns the connection.



__caucho_getEntityState
public EntityState __caucho_getEntityState()(Code)
Get the entity state.



__caucho_getEntityType
public EntityType __caucho_getEntityType()(Code)
Get the entity type.



__caucho_getLoadMask
public long __caucho_getLoadMask(int loadGroup)(Code)
Returns the load mask value for a load group.



__caucho_getPrimaryKey
public Object __caucho_getPrimaryKey()(Code)
Get the primary key.



__caucho_home_find
public EntityItem __caucho_home_find(AmberConnection aConn, AmberEntityHome home, ResultSet rs, int index) throws SQLException(Code)
Loads the entity from the database.



__caucho_home_find
public Entity __caucho_home_find(AmberConnection aConn, AmberEntityHome home, Object key)(Code)
Returns a new entity. In the case of inheritance, needs to query the database.



__caucho_home_new
public Entity __caucho_home_new(AmberEntityHome home, Object key, AmberConnection aConn, EntityItem cacheItem)(Code)
Returns a new entity.



__caucho_invalidate_foreign
public void __caucho_invalidate_foreign(String table, Object key)(Code)
Called when a foreign object is created/deleted.



__caucho_isDirty
public boolean __caucho_isDirty()(Code)
Returns true if the entity is dirty.



__caucho_lazy_create
public boolean __caucho_lazy_create(AmberConnection aConn, EntityType entityType) throws SQLException(Code)
Changes the entity state to P_PERSISTING, but does not flush to database.



__caucho_load
public int __caucho_load(AmberConnection aConn, ResultSet rs, int index) throws SQLException(Code)
Loads the entity from the database and returns the number of columns consumed from the result set.



__caucho_load_key
public Object __caucho_load_key(AmberConnection aConn, ResultSet rs, int index) throws SQLException(Code)
Loads the entity key.



__caucho_makePersistent
public boolean __caucho_makePersistent(AmberConnection aConn, EntityType entityType) throws SQLException(Code)
Makes the entity persistent.



__caucho_makePersistent
public void __caucho_makePersistent(AmberConnection aConn, EntityItem item) throws SQLException(Code)
Makes the entity persistent.



__caucho_match
public boolean __caucho_match(String className, Object key)(Code)
Returns true if the entity matches.



__caucho_merge
public void __caucho_merge(Entity targetEntity, AmberConnection aConn, boolean isFullMerge)(Code)
Merges this entity state into an existing entity.



__caucho_retrieve_eager
public void __caucho_retrieve_eager(AmberConnection aConn)(Code)
Retrieves data from the data store, including the eager loads.



__caucho_retrieve_self
public void __caucho_retrieve_self(AmberConnection aConn)(Code)
Retrieves data from the data store, only loading own fields.



__caucho_setCacheItem
public void __caucho_setCacheItem(EntityItem item)(Code)
Sets the __caucho_item.



__caucho_setConnection
public void __caucho_setConnection(AmberConnection aConn)(Code)
Sets the connection.



__caucho_setEntityState
public void __caucho_setEntityState(EntityState state)(Code)
Sets the entity state.



__caucho_setKey
public void __caucho_setKey(PreparedStatement pstmt, int index) throws SQLException(Code)
Loads the entity from the database.



__caucho_setLoadMask
public void __caucho_setLoadMask(long loadMask, int loadGroup)(Code)
Sets the load mask value for a load group.



__caucho_setPrimaryKey
public void __caucho_setPrimaryKey(Object key)(Code)
Set the primary key.



__caucho_updateCacheItem
public void __caucho_updateCacheItem(Entity item)(Code)
Updates the cache item after commit.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.