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

ProfilePropertyInstance
public class ProfilePropertyInstance extends AbstractPropertyInstance implements Publishable(Code)
The ProfilePropertyInstance class represents an instance of a Property which can have other property instances as values.
author:
   Michael Bell
version:
   $Revision: 1.4.2.1 $


Field Summary
final protected static  StringCLMN_PROFILE_PARENT
    
final public static  StringTAG_PROPERTYINSTANCE_GROUP
    
final public static  Loggerm_logger
    

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

Method Summary
public  voidaddValue(Profile prof)
     Adds the given Profile as a value of this instance.
public  voidaddValue(Profile prof, int nId)
     Adds the given Profile as a value of this instance.
protected  voiddelete()
     Deletes this instance, which in turn will delete all the Profile values and their property instances.
protected  ColumnRefgetColumnForData()
    
public static  ColumnRefgetColumnRef(AbstractProfiledObject profObj, String sColumn, boolean bIsHist)
     Returns the column reference for the column in the profile database table belonging to the specified AbstractProfiledObject.
public static  StringgetDBTableName(Profile profile)
     Returns the database table which holds the data for this property instance type for the specified Profile.
public  ColumnRefgetInstanceColumnRef(String sColumn, boolean bIsHist)
    
public  JoinConditionsgetInstanceJoinConditions(String sObjectTag, boolean bIsOuter)
    
protected  ObjectgetValueToStoreForValue(Object val)
    
protected  booleanisChanged()
    
public  voidmarkValuesAsNew()
     Mark all values as new, i.e.
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  voidremoveValue(Profile prof)
     Removes the given Profile as a value of this instance.
protected  voidsave(Profile prof)
    
protected  voidsetDBTable(Profile profile)
    
protected  voidsetHistorical(boolean bIsHist)
    
protected  voidupdate(Profile prof)
    

Field Detail
CLMN_PROFILE_PARENT
final protected static String CLMN_PROFILE_PARENT(Code)
Parent profile id database column name



TAG_PROPERTYINSTANCE_GROUP
final public static String TAG_PROPERTYINSTANCE_GROUP(Code)
Property instance group XML element name



m_logger
final public static Logger m_logger(Code)
Logger for this class




Constructor Detail
ProfilePropertyInstance
public ProfilePropertyInstance()(Code)
Constructs a property instance



ProfilePropertyInstance
public ProfilePropertyInstance(AbstractDataStoreInterface dbint)(Code)
Constructs a property instance with an interface to the data store
Parameters:
  dbint - the data store interface



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



ProfilePropertyInstance
public ProfilePropertyInstance(AbstractDataStoreInterface dbintrf, int nPropertyId, Profile profile)(Code)
Constructs a property instance with an interface to the data store, a reference to the Profile which will contain this property instance and a reference to the Property identified by the specified id.
Parameters:
  dbintrf - the data store interface
Parameters:
  nPropertyId - the id of the Property that this object is an instance of
Parameters:
  profile - the 'owning' Profile



ProfilePropertyInstance
public ProfilePropertyInstance(AbstractDataStoreInterface dbintrf, Property prop)(Code)
Constructs a property instance of the specified Property with an interface to the data store.
Parameters:
  dbintrf - the data store interface
Parameters:
  prop - the Property that this object is an instance of



ProfilePropertyInstance
public ProfilePropertyInstance(AbstractDataStoreInterface dbintrf, Property property, Profile profile)(Code)
Constructs a property instance with an interface to the data store, a reference to the Profile which will contain this property instance 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(Profile prof) throws PopulateException(Code)
Adds the given Profile as a value of this instance.
Parameters:
  prof - the Profile to add
throws:
  InvalidPropertyValueException - if the value is invalid forthis property instance



addValue
public void addValue(Profile prof, int nId) throws PopulateException(Code)
Adds the given Profile as a value of this instance.
Parameters:
  prof - the Profile to add
Parameters:
  nId - the id of the Profile
throws:
  InvalidPropertyValueException - if the value is invalid forthis property instance



delete
protected void delete() throws ProfileException(Code)
Deletes this instance, which in turn will delete all the Profile values and their property instances.
throws:
  ProfileException - if there is an error deleting anyof the Profile values



getColumnForData
protected ColumnRef getColumnForData() throws DataStoreException(Code)



getColumnRef
public static ColumnRef getColumnRef(AbstractProfiledObject profObj, String sColumn, boolean bIsHist) throws DataStoreException(Code)
Returns the column reference for the column in the profile database table belonging to the specified AbstractProfiledObject.
Parameters:
  profObj - the AbstractProfiledObject associated to the required column reference
Parameters:
  sColumn - the database column name
Parameters:
  bIsHist - true if the column reference returned should reference the historical table the column reference for the column in the profile database tablebelonging to the specified AbstractProfiledObject
throws:
  DataStoreException - if the specified column is invalid



getDBTableName
public static String getDBTableName(Profile profile)(Code)
Returns the database table which holds the data for this property instance type for the specified Profile.
Parameters:
  profile - the Profile for which the requestedproperty instance table will be linked to the database table which holds the data for this property instance type for the specified Profile



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



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



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



isChanged
protected boolean isChanged()(Code)



markValuesAsNew
public void markValuesAsNew() throws PopulateException(Code)
Mark all values as new, i.e. set ids to 0 such that values can be resaved as new vals
throws:
  PopulateException -



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)



removeValue
public void removeValue(Profile prof) throws InvalidPropertyValueException(Code)
Removes the given Profile as a value of this instance.
Parameters:
  prof - the Profile to remove
throws:
  InvalidPropertyValueException - if the value is invalid forthis property instance



save
protected void save(Profile prof) throws ProfileException, EditException(Code)



setDBTable
protected void setDBTable(Profile profile)(Code)



setHistorical
protected void setHistorical(boolean bIsHist)(Code)



update
protected void update(Profile prof) throws ProfileException, EditException(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.