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

GeneralPropertyInstance
public class GeneralPropertyInstance extends AbstractPropertyInstance implements Publishable(Code)
PropertyInstance class for profile data held in string format in the database.
author:
   Michael Bell
version:
   $Revision: 1.5 $


Field Summary
final public static  StringATTRIB_DATEFORMAT
    
final protected static  StringCLMN_VALUE
    
final public static  StringTAG_DATA
    

Constructor Summary
public  GeneralPropertyInstance()
    
public  GeneralPropertyInstance(AbstractDataStoreInterface dbint)
     Constructs a property instance with an interface to the data store.
public  GeneralPropertyInstance(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  GeneralPropertyInstance(AbstractDataStoreInterface dbintrf, int nPropertyId, Profile profile)
     Constructs an GeneralPropertyInstance which has an interface to the database, has a reference to it's owner Profile and the Property associated to this instance.
public  GeneralPropertyInstance(AbstractDataStoreInterface dbintrf, Property prop)
     Constructs a property instance of the specified Property with an interface to the data store.
public  GeneralPropertyInstance(AbstractDataStoreInterface dbintrf, Property property, Profile profile)
     Constructs an GeneralPropertyInstance which has an interface to the data store, has a reference to its owner Profile and the Property associated to this instance.

Method Summary
public  voidaddValue(java.util.Date date)
     Adds a Date value to this instance.
public  voidaddValue(String sValue)
     Adds a String value to this instance.
protected  voidaddValue(String sValue, int nId)
     Adds a value to this instance.
protected  voidchangeDate(Calendar calendar, int nField, String sOperator, int nDelta)
     Changes date in the given calendar by the delta value given.
public  booleangetBooleanValue()
     Returns a boolean value for an instance of a property with a boolean range.
public  ListgetCalculatedValues()
     Returns a list of processed values for this property instance.
protected  ColumnRefgetColumnForData()
    
protected static  StringgetDBTableName(Profile prof)
     Returns the name of database table for a property instance associated to the given Profile.
public static  StringgetDBTableName(String sClassname)
     Returns the name of the database table for a property instance associated to the given AbstractProfileObject.
public static  StringgetDBTableName(AbstractProfiledObject profObj)
     Returns the name of the database table for a property instance associated to the given AbstractProfileObject.
public  DategetDateValue(String sVal)
     Returns a Date object representation of the given String.
public  ColumnRefgetInstanceColumnRef(String sColumn, boolean bIsHist)
    
public  JoinConditionsgetInstanceJoinConditions(String sObjectTag, boolean bIsOuter)
    
protected  ObjectgetValueToStoreForValue(Object val)
    
public  booleanmatch(AbstractPropertyInstance propInst)
    
protected  StringparseDate(String sDateFormula)
     Parses a date formula, creating a string representation of the absolute date.
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(String sValue)
    
protected  voidsetDBTable(Profile profile)
    

Field Detail
ATTRIB_DATEFORMAT
final public static String ATTRIB_DATEFORMAT(Code)
Date format attribute used to specify the date format to be used when publishing dates



CLMN_VALUE
final protected static String CLMN_VALUE(Code)
The name of the database column containing the property instance values



TAG_DATA
final public static String TAG_DATA(Code)
Data XML element name




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



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



GeneralPropertyInstance
public GeneralPropertyInstance(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 owner Profile



GeneralPropertyInstance
public GeneralPropertyInstance(AbstractDataStoreInterface dbintrf, int nPropertyId, Profile profile)(Code)
Constructs an GeneralPropertyInstance which has an interface to the database, has a reference to it's owner Profile and the Property associated to this instance.
Parameters:
  dbintrf - the data store inteface
Parameters:
  nPropertyId - the id of the Property that this object is an instance of
Parameters:
  profile - the owner Profile



GeneralPropertyInstance
public GeneralPropertyInstance(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



GeneralPropertyInstance
public GeneralPropertyInstance(AbstractDataStoreInterface dbintrf, Property property, Profile profile)(Code)
Constructs an GeneralPropertyInstance which has an interface to the data store, has a reference to its owner Profile and the Property associated to this instance.
Parameters:
  dbintrf - the data store interface
Parameters:
  property - the Property
Parameters:
  profile - the owner Profile




Method Detail
addValue
public void addValue(java.util.Date date) throws PopulateException(Code)
Adds a Date value to this instance.
Parameters:
  date - the date
throws:
  InvalidPropertyValueException - if the given value is invalid



addValue
public void addValue(String sValue) throws PopulateException(Code)
Adds a String value to this instance.
Parameters:
  sValue - the value to add
throws:
  InvalidPropertyValueException - if the given value is invalid



addValue
protected void addValue(String sValue, int nId) throws PopulateException(Code)
Adds a value to this instance.
Parameters:
  sValue - the value to add
throws:
  InvalidPropertyValueException - if the given valus is invalid



changeDate
protected void changeDate(Calendar calendar, int nField, String sOperator, int nDelta)(Code)
Changes date in the given calendar by the delta value given.
Parameters:
  calendar - calander representing date
Parameters:
  nField - the time field
Parameters:
  sOperator - '+' or '-'
Parameters:
  nDelta - the amount of date or time to be added to the field



getBooleanValue
public boolean getBooleanValue() throws DataAccessException(Code)
Returns a boolean value for an instance of a property with a boolean range. a boolean value for this property instance
throws:
  DataAccessException - if an error occurs accessing the property associated to this instance



getCalculatedValues
public List getCalculatedValues() throws DataAccessException(Code)
Returns a list of processed values for this property instance. This method is applicable for those values which are formulas which can be calculated at runtime. the list of values which have been processed
throws:
  DataAccessException - if an error occurs accessing the propertyassociated to this instance



getColumnForData
protected ColumnRef getColumnForData() throws DataStoreException(Code)



getDBTableName
protected static String getDBTableName(Profile prof)(Code)
Returns the name of database table for a property instance associated to the given Profile.
Parameters:
  prof - the Profile which will be the associated to the property #instance the database table name for the property instance



getDBTableName
public static String getDBTableName(String sClassname) throws DataStoreException(Code)
Returns the name of the database table for a property instance associated to the given AbstractProfileObject.
Parameters:
  profObj - the profiled object the database table name for the property instance



getDBTableName
public static String getDBTableName(AbstractProfiledObject profObj)(Code)
Returns the name of the database table for a property instance associated to the given AbstractProfileObject.
Parameters:
  profObj - the profiled object the database table name for the property instance



getDateValue
public Date getDateValue(String sVal) throws DataAccessException(Code)
Returns a Date object representation of the given String.
Parameters:
  sVal - the String value the Date obtained by parsing the String
throws:
  DataAccessException - if an error occurs parsing the Stringor accessing the associated Property



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)



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



parseDate
protected String parseDate(String sDateFormula) throws ParseException(Code)
Parses a date formula, creating a string representation of the absolute date.
Parameters:
  sDateFormula - the date formula to be parsed the resultant date
throws:
  ParseException - if an error occurs parsing the date formula



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(String sValue)(Code)
Removes the specified value from this instance
Parameters:
  sValue - the value to remove



setDBTable
protected void setDBTable(Profile profile)(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.