Java Doc for AbstractEditableObject.java in  » Content-Management-System » harmonise » org » openharmonise » rm » resources » 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 » Content Management System » harmonise » org.openharmonise.rm.resources 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openharmonise.rm.resources.AbstractObject
      org.openharmonise.rm.resources.AbstractEditableObject

All known Subclasses:   org.openharmonise.rm.resources.AbstractProfiledObject,
AbstractEditableObject
abstract public class AbstractEditableObject extends AbstractObject implements Editable,Publishable,DataStoreObject,Cloneable,EditEventListener(Code)
AbstractEditableObject is the abstract implementation of the Editable interface for objects within Harmonise.
author:
   Michael Bell
version:
   $Revision: 1.9.2.3 $


Field Summary
final public static  StringATTRIB_IS_LOCKED
    
final protected static  StringCLMN_DISPLAY_NAME
    
final public static  StringTAG_DISPLAY_NAME
    
final public static  StringTAG_HISTORICAL_VERSION
    
final public static  StringTAG_HISTORY_DATE
    
final public static  StringTAG_LIVE_VERSION
    
final public static  StringTAG_LOCKED
    
final public static  StringTAG_PENDING_VERSION
    
final public static  StringTAG_STATUS
    
final public static  StringTAG_VERSION
    
final public static  StringTAG_VERSION_COMMENT
    
final public static  StringTAG_VERSION_DATE
    
protected  java.util.Datem_dtHistDate
    
protected  java.util.Datem_dtVersionDate
    
protected  intm_nLiveId
    
protected  intm_nLockUserId
    
protected  intm_nVersionNumber
    
protected  CachePointerm_pending
    
protected  Stringm_sDisplayName
    
protected  Stringm_sVersionComment
    
protected  Statusm_status
    

Constructor Summary
public  AbstractEditableObject()
     Constructs a new or anonymous instance without an interface to the database.
public  AbstractEditableObject(AbstractDataStoreInterface con)
     Standard constructor for a new or anonymous resource, registering an AbstractDataStoreInterface to use with all database communications.
public  AbstractEditableObject(AbstractDataStoreInterface con, int nId)
     Standard constructor for an existing resource, registering an AbstractDataStoreInterface to use with all database communications.
public  AbstractEditableObject(AbstractDataStoreInterface con, int nId, int nKey, boolean bIsHist)
     Standard constructor for an existing resource which may be historical.

Method Summary
public  voidacquireEditWriteLock()
    
protected  voidaddColumnsToPopulateQuery(SelectStatement select, boolean bIsHist)
    
protected  voidaddDataToSave(InsertStatement insert)
     Adds data to insert statement which will be executed in the save() method.
public  voidaddEditEventListener(EditEventListener listener)
    
public  Editablearchive()
    
public  EditablechangeStatus(Status status)
    
public  voidclear()
    
public  Objectclone()
    
public  EditablecreateNewVersion()
    
protected  voiddelete(boolean bDeleteHist)
     Deletes object data from data store.
public  ListgetAllVersions()
    
public static  ColumnRefgetColumnRef(String sClassname, String sColumn, boolean bHist)
    
public  StringgetDisplayName()
     Returns the display name of this resource.
public  ListgetHistoricalVersions()
    
public  java.util.DategetHistoryDate()
     Returns the date this object was archived if this object is an archived object, otherwise it will return a null.
public  ColumnRefgetInstanceColumnRef(String sColumn, boolean bIsHist)
    
public  EditablegetLiveVersion()
    
public  UsergetLockOwner()
    
public  intgetLockUserId()
     Returns the user id for the lock on this object.
public static  ColumnRefgetObjectColumnRef(String sTable, String sColumn)
    
public  ListgetPendingVersions()
    
public  StatusgetStatus()
    
public  StringgetVersionComment()
     Returns the version comment.
public  java.util.DategetVersionDate()
     Returns the version date of this object.
public  intgetVersionNumber()
     Returns the version number of this object.
protected  booleanisKeySupported()
    
public  booleanisLiveVersion()
    
protected  booleanisLockThread()
     Returns true if a write lock has been acquired on this object and the current thread acquired that lock, or there is no write lock currently acquired.
public  booleanisLocked()
    
public  booleanisPendingVersion()
     Returns true if this object is a pending version.
public synchronized  voidlock(User usr)
    
public  voidpopulate(Element xmlElement, State state)
    
protected  voidpopulateFromResultSetRow(ResultSet rs, SelectStatement select)
    
public  Elementpublish(Element topEl, HarmoniseOutput xmlDoc, State state)
    
public  Editablereactivate()
    
public  voidreleaseEditWriteLock()
    
public  voidremoveEditEventListener(EditEventListener listener)
    
public  Editablesave()
    
abstract protected  voidsaveCoreData()
     Save data external to the main object DB table yet part of it's core data to the database.
abstract protected  voidsaveNonCoreData()
     Saves data external to the main object DB table and not part of it's core data gets saved to the database.
public  voidsetDisplayName(String sDisplayName)
    
public  voidsetVersionComment(String sVersionComment)
     Sets the version comment attached to this object.
public  voidunlock(User usr)
    
protected  voidupdate()
     Updates data in database.
protected  voidupdateDBStatus()
     Updates the database with the new status value and any other relavent changes, such as id, key and live id.
public  voidworkflowObjectArchived(EditEvent event)
    
public  voidworkflowObjectLocked(EditEvent event)
    
public  voidworkflowObjectReactivated(EditEvent event)
    
public  voidworkflowObjectSaved(EditEvent event)
    
public  voidworkflowObjectStatusChanged(EditEvent event)
    
public  voidworkflowObjectUnlocked(EditEvent event)
    

Field Detail
ATTRIB_IS_LOCKED
final public static String ATTRIB_IS_LOCKED(Code)
Is locked attribute name



CLMN_DISPLAY_NAME
final protected static String CLMN_DISPLAY_NAME(Code)
Display name column name



TAG_DISPLAY_NAME
final public static String TAG_DISPLAY_NAME(Code)
Display name tag name



TAG_HISTORICAL_VERSION
final public static String TAG_HISTORICAL_VERSION(Code)
Historical version tag name



TAG_HISTORY_DATE
final public static String TAG_HISTORY_DATE(Code)
History date tag name



TAG_LIVE_VERSION
final public static String TAG_LIVE_VERSION(Code)
Live version tag name



TAG_LOCKED
final public static String TAG_LOCKED(Code)
Locked tag name



TAG_PENDING_VERSION
final public static String TAG_PENDING_VERSION(Code)
Pending version tag name



TAG_STATUS
final public static String TAG_STATUS(Code)
Status tag name



TAG_VERSION
final public static String TAG_VERSION(Code)
Version tag name



TAG_VERSION_COMMENT
final public static String TAG_VERSION_COMMENT(Code)
Version comment tag name



TAG_VERSION_DATE
final public static String TAG_VERSION_DATE(Code)
Version date tag name



m_dtHistDate
protected java.util.Date m_dtHistDate(Code)
The archive date



m_dtVersionDate
protected java.util.Date m_dtVersionDate(Code)
The version date



m_nLiveId
protected int m_nLiveId(Code)
The id of the live version



m_nLockUserId
protected int m_nLockUserId(Code)
The id of the user that locked this resource



m_nVersionNumber
protected int m_nVersionNumber(Code)
The version number



m_pending
protected CachePointer m_pending(Code)
A cache pointer to the pending version



m_sDisplayName
protected String m_sDisplayName(Code)
The display name



m_sVersionComment
protected String m_sVersionComment(Code)
The version comment



m_status
protected Status m_status(Code)
The current status




Constructor Detail
AbstractEditableObject
public AbstractEditableObject()(Code)
Constructs a new or anonymous instance without an interface to the database.



AbstractEditableObject
public AbstractEditableObject(AbstractDataStoreInterface con)(Code)
Standard constructor for a new or anonymous resource, registering an AbstractDataStoreInterface to use with all database communications.
Parameters:
  con - the interface to the database



AbstractEditableObject
public AbstractEditableObject(AbstractDataStoreInterface con, int nId)(Code)
Standard constructor for an existing resource, registering an AbstractDataStoreInterface to use with all database communications.
Parameters:
  con - the interface to the database
Parameters:
  nId - the id of the resource



AbstractEditableObject
public AbstractEditableObject(AbstractDataStoreInterface con, int nId, int nKey, boolean bIsHist)(Code)
Standard constructor for an existing resource which may be historical.
Parameters:
  con - the interface to the database
Parameters:
  nId - the id of the resource
Parameters:
  nKey - the unique key of the resource
Parameters:
  bIsHist - true if the object is historical




Method Detail
acquireEditWriteLock
public void acquireEditWriteLock() throws EditException(Code)
Acquire a lock on child addition and removal Note: this method provides a mechanism for external classes to implement locking on the management of children but does NOT guarantee that other threads cannot manipulate the children of the collection
throws:
  EditException -



addColumnsToPopulateQuery
protected void addColumnsToPopulateQuery(SelectStatement select, boolean bIsHist) throws DataStoreException(Code)



addDataToSave
protected void addDataToSave(InsertStatement insert) throws DataStoreException(Code)
Adds data to insert statement which will be executed in the save() method.
Parameters:
  insert - the insert statement
throws:
  DataStoreException - if an error occurs



addEditEventListener
public void addEditEventListener(EditEventListener listener)(Code)



archive
public Editable archive() throws EditException(Code)



changeStatus
public Editable changeStatus(Status status) throws EditException(Code)



clear
public void clear()(Code)



clone
public Object clone()(Code)



createNewVersion
public Editable createNewVersion() throws EditException(Code)



delete
protected void delete(boolean bDeleteHist) throws DataStoreException, DataAccessException, EditException, PopulateException(Code)
Deletes object data from data store. If bDeleteHist is true then the archived data will also be deleted.
Parameters:
  bDeleteHist - true if the the archived data should be deleted
throws:
  DataStoreException - if an error occurs



getAllVersions
public List getAllVersions() throws DataAccessException(Code)



getColumnRef
public static ColumnRef getColumnRef(String sClassname, String sColumn, boolean bHist) throws DataStoreException(Code)



getDisplayName
public String getDisplayName() throws DataAccessException(Code)
Returns the display name of this resource. the display name of this resource
throws:
  DataAccessException - if an error occurs populating this object



getHistoricalVersions
public List getHistoricalVersions() throws DataAccessException(Code)



getHistoryDate
public java.util.Date getHistoryDate() throws DataAccessException(Code)
Returns the date this object was archived if this object is an archived object, otherwise it will return a null. the date this object was archived
throws:
  DataAccessException - if an error occurs while populating this object



getInstanceColumnRef
public ColumnRef getInstanceColumnRef(String sColumn, boolean bIsHist) throws DataStoreException(Code)



getLiveVersion
public Editable getLiveVersion() throws DataAccessException(Code)



getLockOwner
public User getLockOwner() throws DataAccessException(Code)



getLockUserId
public int getLockUserId() throws DataAccessException(Code)
Returns the user id for the lock on this object. the user id for the lock on this object
throws:
  DataAccessException - if an error occurs while populating this object



getObjectColumnRef
public static ColumnRef getObjectColumnRef(String sTable, String sColumn) throws DataStoreException(Code)



getPendingVersions
public List getPendingVersions() throws DataAccessException(Code)



getStatus
public Status getStatus() throws DataAccessException(Code)



getVersionComment
public String getVersionComment() throws DataAccessException(Code)
Returns the version comment. the version comment
throws:
  DataAccessException - if an error occurs while populating this object



getVersionDate
public java.util.Date getVersionDate() throws DataAccessException(Code)
Returns the version date of this object. the version date of this object
throws:
  DataAccessException - if an error occurs while populating this object



getVersionNumber
public int getVersionNumber() throws DataAccessException(Code)
Returns the version number of this object. the version number of the object
throws:
  DataAccessException - if an error occurs while populating this object



isKeySupported
protected boolean isKeySupported()(Code)



isLiveVersion
public boolean isLiveVersion() throws DataAccessException(Code)



isLockThread
protected boolean isLockThread()(Code)
Returns true if a write lock has been acquired on this object and the current thread acquired that lock, or there is no write lock currently acquired. true if a write lock has been acquired onthis object and the current thread acquired that lock, or thereis no write lock currently acquired.



isLocked
public boolean isLocked() throws DataAccessException(Code)



isPendingVersion
public boolean isPendingVersion() throws DataAccessException(Code)
Returns true if this object is a pending version. true if this object is a pending version
throws:
  DataAccessException - if an error occurs while populating this object



lock
public synchronized void lock(User usr) throws EditException(Code)



populate
public void populate(Element xmlElement, State state) throws PopulateException(Code)



populateFromResultSetRow
protected void populateFromResultSetRow(ResultSet rs, SelectStatement select) throws PopulateException(Code)



publish
public Element publish(Element topEl, HarmoniseOutput xmlDoc, State state) throws PublishException(Code)



reactivate
public Editable reactivate() throws EditException(Code)



releaseEditWriteLock
public void releaseEditWriteLock()(Code)
Release lock on child additions and removals



removeEditEventListener
public void removeEditEventListener(EditEventListener listener)(Code)



save
public Editable save() throws EditException(Code)



saveCoreData
abstract protected void saveCoreData() throws EditException(Code)
Save data external to the main object DB table yet part of it's core data to the database.
throws:
  EditException - if an error occurs



saveNonCoreData
abstract protected void saveNonCoreData() throws EditException(Code)
Saves data external to the main object DB table and not part of it's core data gets saved to the database.
throws:
  EditException - if an error occurs



setDisplayName
public void setDisplayName(String sDisplayName)(Code)
Sets the display name
Parameters:
  sName - the display name of this resource



setVersionComment
public void setVersionComment(String sVersionComment)(Code)
Sets the version comment attached to this object.
Parameters:
  sVersionComment - the version comment



unlock
public void unlock(User usr) throws EditException(Code)



update
protected void update() throws DataStoreException, EditException(Code)
Updates data in database.
throws:
  DataStoreException - if any database errors occur
throws:
  EditException - if any errors occur processing the data



updateDBStatus
protected void updateDBStatus() throws PopulateException(Code)
Updates the database with the new status value and any other relavent changes, such as id, key and live id.
throws:
  PopulateException - if an error occurs



workflowObjectArchived
public void workflowObjectArchived(EditEvent event)(Code)



workflowObjectLocked
public void workflowObjectLocked(EditEvent event)(Code)



workflowObjectReactivated
public void workflowObjectReactivated(EditEvent event)(Code)



workflowObjectSaved
public void workflowObjectSaved(EditEvent event)(Code)



workflowObjectStatusChanged
public void workflowObjectStatusChanged(EditEvent event)(Code)



workflowObjectUnlocked
public void workflowObjectUnlocked(EditEvent event)(Code)



Fields inherited from org.openharmonise.rm.resources.AbstractObject
final public static String ATTRIB_HISTORICAL(Code)(Java Doc)
final public static String ATTRIB_ID(Code)(Java Doc)
final public static String ATTRIB_KEY(Code)(Java Doc)
final public static String ATTRIB_NAME(Code)(Java Doc)
final public static String ATTRIB_OBJECT_TYPE(Code)(Java Doc)
final public static String ATTRIB_TYPE(Code)(Java Doc)
final protected static String CLMN_ID(Code)(Java Doc)
final protected static String CLMN_NAME(Code)(Java Doc)
final protected static String CLMN_SUMMARY(Code)(Java Doc)
final public static String EXT_HIST(Code)(Java Doc)
final public static int NOTDBSAVED_ID(Code)(Java Doc)
final public static int NOTDBSAVED_KEY(Code)(Java Doc)
final public static String TAG_HARMONISE_OBJECT(Code)(Java Doc)
final public static String TAG_LINK(Code)(Java Doc)
final public static String TAG_LINK_IMAGE(Code)(Java Doc)
final public static String TAG_LINK_TEXT(Code)(Java Doc)
final public static String TAG_NAME(Code)(Java Doc)
final public static String TAG_SUMMARY(Code)(Java Doc)
protected boolean m_bIsChanged(Code)(Java Doc)
protected boolean m_bIsPopulated(Code)(Java Doc)
protected AbstractDataStoreInterface m_dsi(Code)(Java Doc)
protected int m_nId(Code)(Java Doc)
protected int m_nObjectKey(Code)(Java Doc)
protected String m_sName(Code)(Java Doc)
protected String m_sSummary(Code)(Java Doc)
protected String m_sTable(Code)(Java Doc)
protected String m_sType(Code)(Java Doc)

Methods inherited from org.openharmonise.rm.resources.AbstractObject
public void addCacheListener(CacheListener listener)(Code)(Java Doc)
protected void addColumnsToPopulateQuery(SelectStatement select, boolean bIsHist) throws DataStoreException(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public int compareTo(Object obj)(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public boolean exists()(Code)(Java Doc)
protected void fullPopulate() throws PopulateException(Code)(Java Doc)
public List getCacheListeners()(Code)(Java Doc)
public static ColumnRef getColumnRef(AbstractObject obj, String sColumn) throws DataStoreException(Code)(Java Doc)
public static ColumnRef getColumnRef(String sClassname, String sColumn) throws DataStoreException(Code)(Java Doc)
public static ColumnRef getColumnRef(String sClassname, String sColumn, boolean bHist) throws DataStoreException(Code)(Java Doc)
protected static Collection getCoreColumnRefs(String sClassname) throws DataStoreException(Code)(Java Doc)
abstract public String getDBTableName()(Code)(Java Doc)
public AbstractDataStoreInterface getDataStoreInterface()(Code)(Java Doc)
protected String getHistoricalDBTableName()(Code)(Java Doc)
public int getId()(Code)(Java Doc)
public ColumnRef getInstanceColumnRef(String sColumn, boolean bIsHist) throws DataStoreException(Code)(Java Doc)
public int getKey() throws DataAccessException(Code)(Java Doc)
public String getName() throws DataAccessException(Code)(Java Doc)
protected static ColumnRef getObjectColumnRef(String sDBTable, String sColumn) throws DataStoreException(Code)(Java Doc)
public String getSummary() throws DataAccessException(Code)(Java Doc)
public static String getTableName(String sClassname, boolean bHist) throws DataStoreException(Code)(Java Doc)
protected String getTableName(boolean bIsHist)(Code)(Java Doc)
public String getType() throws DataAccessException(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isChanged() throws DataAccessException(Code)(Java Doc)
public boolean isHistorical()(Code)(Java Doc)
abstract protected boolean isKeySupported()(Code)(Java Doc)
protected boolean isPopulated()(Code)(Java Doc)
protected void markAsNew() throws PopulateException(Code)(Java Doc)
public void notifyCacheListeners()(Code)(Java Doc)
public void populate(Element xmlElement, State state) throws PopulateException(Code)(Java Doc)
protected synchronized void populateFromDatabase() throws PopulateException(Code)(Java Doc)
protected void populateFromResultSetRow(ResultSet rs, SelectStatement select) throws PopulateException(Code)(Java Doc)
public Element publish(Template template, HarmoniseOutput xmlDoc, State state) throws PublishException(Code)(Java Doc)
public Element publish(Element topEl, HarmoniseOutput xmlDoc, State state) throws PublishException(Code)(Java Doc)
public void removeCacheListener(CacheListener listener)(Code)(Java Doc)
public void setDataStoreInterface(AbstractDataStoreInterface dsi) throws PopulateException(Code)(Java Doc)
public void setHistorical(boolean bIsHistorical)(Code)(Java Doc)
public void setId(int nId)(Code)(Java Doc)
public void setIsChanged(boolean bIsChanged)(Code)(Java Doc)
public void setKey(int nKey)(Code)(Java Doc)
public void setName(String sName) throws InvalidNameException(Code)(Java Doc)
public void setSummary(String sSummary)(Code)(Java Doc)
public void setType(String type)(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.