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


java.lang.Object
   org.openharmonise.rm.metadata.AbstractPropertyInstance
      org.openharmonise.rm.metadata.ChildObjectPropertyInstance

All known Subclasses:   org.openharmonise.rm.workflow.WorkflowPropertyInstance,
ChildObjectPropertyInstance
public class ChildObjectPropertyInstance extends AbstractPropertyInstance implements Publishable(Code)
A concrete implementation of AbstractPropertyInstance to handle property instances which contain AbstractChildObject values.
author:
   Michael Bell
version:
   $Revision: 1.5 $


Field Summary
final protected static  StringCLMN_OBJECT_ID
    

Constructor Summary
public  ChildObjectPropertyInstance()
     Constructs a property instance.
public  ChildObjectPropertyInstance(AbstractDataStoreInterface dbint)
     Constructs a property instance with a data store interface.
public  ChildObjectPropertyInstance(AbstractDataStoreInterface dbintrf, Profile profile)
     Constructs a property instance with a data store interface and a reference to the Profile which will contain this instance.
public  ChildObjectPropertyInstance(AbstractDataStoreInterface dbintrf, int nPropertyId, Profile profile)
     Constructs a property instance with a data store interface, a reference to the Profile which will contain this instance and a reference to the Property of which this is property instance is an instance of.
public  ChildObjectPropertyInstance(AbstractDataStoreInterface dbintrf, Property prop)
     Constructs a property instance with a data store interface and referenec to the Property it is an instance of.
public  ChildObjectPropertyInstance(AbstractDataStoreInterface dbintrf, Property property, Profile profile)
     Constructs a property instance with a data store interface, a reference to the Profile which will contain this object and a reference to the Property which this object is an instance of.

Method Summary
public  voidaddValue(AbstractChildObject child)
     Adds the given AbstractChildObject as a value to this property instance.
public  voidaddValue(AbstractChildObject child, int nId)
     Adds the given AbstractChildObject as a value to this property instance with the specified id.
public static  StringconstructDBTableName(Profile profile, String sTable)
     Returns the name of the property instance data base table for holding AbstractChildObject value references from the given table name and the parent profile.
public static  voidcreateTable(AbstractDataStoreInterface dsi, String domainClass, String valueClass, boolean bIsHist)
    
public static  voidgenerateTable(AbstractDataStoreInterface dsi, String sProfileTable, String sTableName)
     Creates table for property instances associated to the specified profile table and with the given table name.
protected  ColumnRefgetColumnForData()
    
public static  StringgetDBTableName(Profile profile, String sClassname)
     Returns the database table for the property instance which will be attached to the specified Profile and contain values of the type specified by the given class name.
public  StringgetDBTableName()
    
public static  StringgetDBTableName(String domainClass, String valueClass, boolean bIsHist)
     Returns the name of the property instance table for objects of type domainClass which have relationships to objects of type valueClass.
public  ColumnRefgetInstanceColumnRef(String sColumn, boolean bIsHist)
    
public  JoinConditionsgetInstanceJoinConditions(String sObjectTag, boolean bIsOuter)
    
public  ObjectgetValue()
    
public  ObjectgetValue(int nIndex)
    
protected  ObjectgetValueToStoreForValue(Object val)
    
public  ListgetValues()
    
public  booleanmatch(AbstractPropertyInstance propInst)
    
public  voidpopulate(Element xmlElement, State state)
    
public  ListprocessResultSet(CachedResultSet resultSet, SelectStatement select)
    
public  ListprocessResultSet(CachedResultSet resultSet, SelectStatement select, int limit)
    
public  Elementpublish(Element formEl, HarmoniseOutput xmlDoc, State state)
    
public  Elementpublish(Template template, HarmoniseOutput xmlDoc, State state)
    
protected  voidremoveChildReferences(AbstractChildObject child)
     Removes the reference to child from the property instance database table, used to discard invalid references.
public  voidremoveValue(AbstractChildObject child)
     Removes the specified AbstractChildObject from this property instance's list of values.
protected  voidsetDBTable(Profile profile)
    
public  voidsetValues(List values)
    

Field Detail
CLMN_OBJECT_ID
final protected static String CLMN_OBJECT_ID(Code)




Constructor Detail
ChildObjectPropertyInstance
public ChildObjectPropertyInstance()(Code)
Constructs a property instance.



ChildObjectPropertyInstance
public ChildObjectPropertyInstance(AbstractDataStoreInterface dbint)(Code)
Constructs a property instance with a data store interface.
Parameters:
  dbint - the data store interface



ChildObjectPropertyInstance
public ChildObjectPropertyInstance(AbstractDataStoreInterface dbintrf, Profile profile)(Code)
Constructs a property instance with a data store interface and a reference to the Profile which will contain this instance.
Parameters:
  dbintrf - the data store interface
Parameters:
  profile - the owner Profile



ChildObjectPropertyInstance
public ChildObjectPropertyInstance(AbstractDataStoreInterface dbintrf, int nPropertyId, Profile profile)(Code)
Constructs a property instance with a data store interface, a reference to the Profile which will contain this instance and a reference to the Property of which this is property instance is an instance of.
Parameters:
  dbintrf - the data store interface
Parameters:
  nPropertyId - the id of the Property
Parameters:
  profile - the owner Profile



ChildObjectPropertyInstance
public ChildObjectPropertyInstance(AbstractDataStoreInterface dbintrf, Property prop)(Code)
Constructs a property instance with a data store interface and referenec to the Property it is an instance of.
Parameters:
  dbintrf - the data store interface
Parameters:
  prop - the Property this is an instance of



ChildObjectPropertyInstance
public ChildObjectPropertyInstance(AbstractDataStoreInterface dbintrf, Property property, Profile profile)(Code)
Constructs a property instance with a data store interface, a reference to the Profile which will contain this object and a reference to the Property which this object is an instance of.
Parameters:
  dbintrf - the data store interface
Parameters:
  property - the Property
Parameters:
  profile - the owner Profile




Method Detail
addValue
public void addValue(AbstractChildObject child) throws PopulateException(Code)
Adds the given AbstractChildObject as a value to this property instance.
Parameters:
  child - the new value to add to this property instance
throws:
  InvalidPropertyValueException - if the value given is invalid



addValue
public void addValue(AbstractChildObject child, int nId) throws PopulateException(Code)
Adds the given AbstractChildObject as a value to this property instance with the specified id.
Parameters:
  child - the new value to add to this property instance
Parameters:
  nId - the id to associate with this value
throws:
  InvalidPropertyValueException - if the value given is invalid



constructDBTableName
public static String constructDBTableName(Profile profile, String sTable)(Code)
Returns the name of the property instance data base table for holding AbstractChildObject value references from the given table name and the parent profile. The table name is determined by the profile database table name and the given table name. The given table name must be the table name associated to a AbstractChildObject such as Document, User, etc.
Parameters:
  profile - the owner Profile
Parameters:
  sTable - the name of the table associated to a AbstractChildObject the name of the property instance data base table



createTable
public static void createTable(AbstractDataStoreInterface dsi, String domainClass, String valueClass, boolean bIsHist) throws DataAccessException, DataStoreException(Code)
Creates the table required to hold property instances for the profiled object of type domainClass and with values of type valueClass
Parameters:
  m_dsi - the data store interface
Parameters:
  domainClass - the class name of the profiled object
Parameters:
  valueClass - the class name of the values of the property instance
Parameters:
  bIsHist - true if the table is historical
throws:
  DataStoreException - if there is an error creating the new database table
throws:
  DataAccessException - if there is an error constructing the details of the new table



generateTable
public static void generateTable(AbstractDataStoreInterface dsi, String sProfileTable, String sTableName) throws DataStoreException(Code)
Creates table for property instances associated to the specified profile table and with the given table name.
Parameters:
  dsi - the data store interface
Parameters:
  sProfileTable - the profile table name
Parameters:
  sTableName - the new table name
throws:
  DataStoreException - if an error occurs creating the table



getColumnForData
protected ColumnRef getColumnForData() throws DataStoreException(Code)



getDBTableName
public static String getDBTableName(Profile profile, String sClassname) throws DataStoreException(Code)
Returns the database table for the property instance which will be attached to the specified Profile and contain values of the type specified by the given class name. The table name is determined by the profile database table name and the type of AbstractChildObject.
Parameters:
  profile - the owning Profile
Parameters:
  sClassname - the class name of the AbstractChildObject value for the property instance the database table for the property instance
throws:
  DataStoreException - if there is an error obtaining the databasetable name for the given AbstractChildObject class name



getDBTableName
public String getDBTableName()(Code)



getDBTableName
public static String getDBTableName(String domainClass, String valueClass, boolean bIsHist) throws DataAccessException(Code)
Returns the name of the property instance table for objects of type domainClass which have relationships to objects of type valueClass.
Parameters:
  domainClass - the class name of the profile object
Parameters:
  valueClass - the class name of the objects which will be values of the property instance
Parameters:
  bIsHist - true if the table is historical the name of the property instance table
throws:
  DataAccessException - if an error occurs constructing the table name



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



getInstanceJoinConditions
public JoinConditions getInstanceJoinConditions(String sObjectTag, boolean bIsOuter) throws DataStoreException(Code)



getValue
public Object getValue()(Code)



getValue
public Object getValue(int nIndex)(Code)



getValueToStoreForValue
protected Object getValueToStoreForValue(Object val) throws ProfileException(Code)



getValues
public List getValues()(Code)



match
public boolean match(AbstractPropertyInstance propInst) throws ProfileException(Code)



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



processResultSet
public List processResultSet(CachedResultSet resultSet, SelectStatement select)(Code)



processResultSet
public List processResultSet(CachedResultSet resultSet, SelectStatement select, int limit)(Code)



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



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



removeChildReferences
protected void removeChildReferences(AbstractChildObject child) throws DataStoreException(Code)
Removes the reference to child from the property instance database table, used to discard invalid references.
Parameters:
  child - the child whose reference is to be removed
throws:
  DataStoreException - if there is an error deleting data from the database



removeValue
public void removeValue(AbstractChildObject child) throws InvalidPropertyValueException(Code)
Removes the specified AbstractChildObject from this property instance's list of values.
Parameters:
  child - the value to remove
throws:
  InvalidPropertyValueException - if the specified valueis an invalid value for this property instance



setDBTable
protected void setDBTable(Profile profile)(Code)



setValues
public void setValues(List values) throws InvalidPropertyValueException(Code)



Fields inherited from org.openharmonise.rm.metadata.AbstractPropertyInstance
final public static String ATTRIB_OBJECT_TYPE(Code)(Java Doc)
final public static String ATTRIB_OPERATOR(Code)(Java Doc)
final public static String ATTRIB_PROPERTY_ID(Code)(Java Doc)
final protected static String CLMN_ID(Code)(Java Doc)
final protected static String CLMN_PROFILE_ID(Code)(Java Doc)
final protected static String CLMN_PROPERTY_ID(Code)(Java Doc)
final protected static String CLMN_VERSION_COMMENT(Code)(Java Doc)
final protected static String EXT_HIST(Code)(Java Doc)
final protected static String SEQ_PROFILE_DATA(Code)(Java Doc)
final public static String TAG_ATTACH(Code)(Java Doc)
final public static String TAG_DETACH(Code)(Java Doc)
final public static String TAG_PROPERTYINSTANCE(Code)(Java Doc)
final public static String TAG_PROP_INSTANCE_VALUES(Code)(Java Doc)
final public static String TAG_VALUE(Code)(Java Doc)
protected boolean m_bIsTemporary(Code)(Java Doc)
protected AbstractDataStoreInterface m_dsi(Code)(Java Doc)
protected Profile m_profile(Code)(Java Doc)
protected CachePointer m_property_ptr(Code)(Java Doc)
protected String m_sDataTable(Code)(Java Doc)
protected String m_sOperator(Code)(Java Doc)
protected List m_valueIds(Code)(Java Doc)
protected List m_values(Code)(Java Doc)
protected List m_values2Add(Code)(Java Doc)
protected List m_values2Remove(Code)(Java Doc)

Methods inherited from org.openharmonise.rm.metadata.AbstractPropertyInstance
protected void addValue(Object obj) throws PopulateException(Code)(Java Doc)
protected void addValue(Object val, int nId) throws PopulateException(Code)(Java Doc)
public void clearValues()(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
abstract protected ColumnRef getColumnForData() throws DataStoreException(Code)(Java Doc)
public String getDBTableName()(Code)(Java Doc)
public int getId()(Code)(Java Doc)
public ColumnRef getInstanceColumnRef(String sColumn, boolean bIsHist) throws DataStoreException(Code)(Java Doc)
public String getName() throws DataAccessException(Code)(Java Doc)
public String getOperator()(Code)(Java Doc)
public Profile getProfile()(Code)(Java Doc)
protected AbstractProfiledObject getProfiledObject()(Code)(Java Doc)
public Property getProperty() throws DataAccessException(Code)(Java Doc)
public String getTagName()(Code)(Java Doc)
public Object getValue()(Code)(Java Doc)
public Object getValue(int nIndex)(Code)(Java Doc)
abstract protected Object getValueToStoreForValue(Object val) throws ProfileException(Code)(Java Doc)
public List getValues()(Code)(Java Doc)
public String getVersionComment()(Code)(Java Doc)
public boolean hasValues()(Code)(Java Doc)
protected boolean isChanged()(Code)(Java Doc)
protected boolean isHistorical()(Code)(Java Doc)
public boolean isPopulated()(Code)(Java Doc)
public boolean isTemporary()(Code)(Java Doc)
abstract public boolean match(AbstractPropertyInstance propInst) throws ProfileException(Code)(Java Doc)
public boolean merge(AbstractPropertyInstance property)(Code)(Java Doc)
public void populate(Element xmlElement, State state) throws PopulateException(Code)(Java Doc)
public Element publish(Template template, HarmoniseOutput xmlDoc, State state) throws PublishException(Code)(Java Doc)
public Element publish(Element formEl, HarmoniseOutput xmlDoc, State state) throws PublishException(Code)(Java Doc)
public void removeValue(Object val)(Code)(Java Doc)
protected void save(Profile prof) throws ProfileException, EditException(Code)(Java Doc)
abstract protected void setDBTable(Profile profile)(Code)(Java Doc)
public void setDataStoreInterface(AbstractDataStoreInterface dsi)(Code)(Java Doc)
protected void setHistorical(boolean bIsHist)(Code)(Java Doc)
protected void setIsChanged(boolean bIsChanged)(Code)(Java Doc)
protected void setIsPopulated(boolean bIsPopulated)(Code)(Java Doc)
public void setIsTemporary(boolean bIsTemporary)(Code)(Java Doc)
public void setOperator(String sOperator)(Code)(Java Doc)
public void setProfile(Profile prof)(Code)(Java Doc)
public void setProperty(Property prop) throws PopulateException(Code)(Java Doc)
public void setValues(List values) throws InvalidPropertyValueException(Code)(Java Doc)
public void setVersionComment(String sComment)(Code)(Java Doc)
protected void update(Profile prof) throws ProfileException, EditException(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.