Java Doc for AbstractPersistentObject.java in  » Database-ORM » ODAL » com » completex » objective » components » persistency » 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 » Database ORM » ODAL » com.completex.objective.components.persistency 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.completex.objective.components.persistency.AbstractPersistentObject

All known Subclasses:   com.completex.objective.components.persistency.CompoundPersistentObject,  com.completex.objective.components.persistency.PersistentObject,
AbstractPersistentObject
abstract public class AbstractPersistentObject implements Cloneable,Parent,DelegatingPersistentObjectFactory,Compound,Serializable(Code)

author:
   Gennady Krizhevsky


Field Summary
final public static  StringKEY_SEP
    
protected transient  DelegatePersistentObjectFactorydelegateFactory
    
protected transient  PersistentObject[]persistentObjects
    
final static  longserialVersionUID
    


Method Summary
public static  booleanBoolean2boolean(Boolean value)
    
public static  doubleNumber2double(Number number)
    
public static  longNumber2long(Number number)
    
protected  JoinaddJoin()
    
abstract public  voidassemble()
    
public static  Booleanboolean2Boolean(boolean value)
    
public  Objectclone()
    
public  booleancompound()
    
protected  voidcompound(int size)
     Makes this object compound.
protected  voidcompoundAttrSetup()
    
public  voidcompoundCascadeAll(int index)
    
public  booleancompoundCascadeDelete(int index)
    
public  voidcompoundCascadeDelete(int index, boolean compoundCascadeDelete)
    
public  booleancompoundCascadeDelete()
    
protected  voidcompoundCascadeDelete(boolean compoundCascadeDelete)
    
public  booleancompoundCascadeInsert(int index)
    
public  voidcompoundCascadeInsert(int index, boolean compoundCascadeInsert)
    
public  booleancompoundCascadeInsert()
    
protected  voidcompoundCascadeInsert(boolean compoundCascadeInsert)
    
public  PersistentObject[]compoundEntries()
    
public  voidcompoundEntry(int index, PersistentObject persistentObject)
    
public  PersistentObjectcompoundEntry(int index)
    
public  intcompoundSize()
    
public  voidcompoundUncascadeAll(int index)
    
public  DelegatePersistentObjectFactorydelegateFactory()
    
public  booleandirty()
    
protected  voiddoSetupCompound()
    
public static  Doubledouble2Number(double value)
    
public  booleanequals(Object obj)
    
public  booleanequalsBasic(Object value)
    
public  booleanequalsCompound(Object value)
    
final public  AbstractPersistentObjectflatten()
     Flattens this PersistentObject.
abstract protected  voidflatten0()
    
public  booleanfromCache()
    
public  inthashCodeBasic()
    
public  Compound.ImplicitJoinModeimplicitJoinMode()
    
public  voidimplicitJoinMode(Compound.ImplicitJoinMode implicitJoinMode)
    
public static  booleanisEmptyEntry(PersistentObject entry)
    
public  Joinjoin()
    
public  Joinjoin(Compound.ImplicitJoinMode implicitJoinMode)
    
public  JoinjoinImplicitely(Compound.ImplicitJoinMode implicitJoinMode)
    
public  JoinjoinImplicitely(Join.Type[] joinTypes)
     This method will create join implicitely based on the mutual references To run it all the persistentObjects have to exist.
public  JoinjoinMinusOne()
    
public static  Longlong2Number(long value)
    
public static  voidmain(String[] args)
    
public  StringmappingType()
    
public  voidmappingType(String mappingType)
    
public  voidmarkFromCache(boolean fromCache)
    
abstract public  AbstractPersistentObjectnewPersistentInstance()
    
protected  intnextCompoundIndex()
     Returns next entry index to be used.
public  voidpopulateCompoundEntries()
    
public  voidpopulateCompoundEntries(int slaveIdx)
    
public  voidpopulateCompoundEntryByJoin(int indexFrom, int indexTo)
    
public  voidregisterDelegateFactory(DelegatePersistentObjectFactory delegateFactory)
     Sets DelegatePersistentObjectFactory.
abstract protected  voidselfReference()
    
abstract public  booleanselfReferencing()
     Returns true if this is this type of object can be the 1st object of PersistentObject[] of compound PersistentObject.
final protected  voidsetupCompound()
     Performs setup of compound object.
public  ObjecttoKey()
     Method used in Tracing Collections as a key to determine which objects get modified.
abstract public  LinktoLink()
    
abstract public  ParameterstoParameters(int[] indeces)
     Returns Parameters object based on values and column types of the record for columns with indeces specified with "indeces" parameter.
final public  AbstractPersistentObjectunflatten()
     Unflattening is procedure opposite to flattening.
abstract protected  voidunflatten0()
    
public  voidunmarkInitializedComplex()
     Unmarks this object as "InitializedComplex".
public  voidunuseStarAndColumnNames()
     Unsets query hint to use star in select clauses and names of PersistentObject columns when retrieving from ResultSet.
public  voiduseStarAndColumnNames()
     Sets query hint to use star in select clauses and names of PersistentObject columns when retrieving from ResultSet.
public  booleanusingColumnNames()
     Returns true query hint is set to use names of PersistentObject columns when retrieving from ResultSet.
public  booleanusingSelectStar()
     Returns true query hint is set to use star in select clauses.

Field Detail
KEY_SEP
final public static String KEY_SEP(Code)



delegateFactory
protected transient DelegatePersistentObjectFactory delegateFactory(Code)



persistentObjects
protected transient PersistentObject[] persistentObjects(Code)



serialVersionUID
final static long serialVersionUID(Code)





Method Detail
Boolean2boolean
public static boolean Boolean2boolean(Boolean value)(Code)



Number2double
public static double Number2double(Number number)(Code)



Number2long
public static long Number2long(Number number)(Code)



addJoin
protected Join addJoin()(Code)



assemble
abstract public void assemble()(Code)
Assembles LinkDependencyGraph associated with this PersistentObject



boolean2Boolean
public static Boolean boolean2Boolean(boolean value)(Code)



clone
public Object clone()(Code)



compound
public boolean compound()(Code)
Returns true if this object is compound true if this object is compound



compound
protected void compound(int size)(Code)
Makes this object compound.
Parameters:
  size - number of persistent entries



compoundAttrSetup
protected void compoundAttrSetup()(Code)
Sets extra coumpound attributes



compoundCascadeAll
public void compoundCascadeAll(int index)(Code)
Sets both delete and insert cascade flags to true
Parameters:
  index - index of entry



compoundCascadeDelete
public boolean compoundCascadeDelete(int index)(Code)
Returns true if cascade delete is to be performed based on entries joins for entry specified by index parameter
Parameters:
  index - index of entry true if cascade delete is to be performed based on entries joinsfor entry specified by index parameter



compoundCascadeDelete
public void compoundCascadeDelete(int index, boolean compoundCascadeDelete)(Code)
Sets flag to indicate if cascade delete is to be performed based on entries joins for entry specified by index parameter
Parameters:
  index - index of entry
Parameters:
  compoundCascadeDelete - flag to indicate if cascade delete is to be performed based on entries joinsfor entry specified by index parameter



compoundCascadeDelete
public boolean compoundCascadeDelete()(Code)
Returns true if cascade delete is to be performed based on entries joins true if cascade delete is to be performed based on entries joins



compoundCascadeDelete
protected void compoundCascadeDelete(boolean compoundCascadeDelete)(Code)
Sets true if cascade delete is to be performed based on entries joins
Parameters:
  compoundCascadeDelete - true if cascade delete is to be performed based on entries joins



compoundCascadeInsert
public boolean compoundCascadeInsert(int index)(Code)
Returns true if cascade insert is to be performed based on entries joins for entry specified by index parameter
Parameters:
  index - index of entry true if cascade insert is to be performed based on entries joinsfor entry specified by index parameter



compoundCascadeInsert
public void compoundCascadeInsert(int index, boolean compoundCascadeInsert)(Code)
Sets flag to indicate if cascade insert is to be performed based on entries joins for entry specified by index parameter
Parameters:
  index - index of entry
Parameters:
  compoundCascadeInsert - flag to indicate if cascade insert is to be performed based on entries joinsfor entry specified by index parameter



compoundCascadeInsert
public boolean compoundCascadeInsert()(Code)
Returns true if cascade insert is to be performed based on entries joins true if cascade insert is to be performed based on entries joins



compoundCascadeInsert
protected void compoundCascadeInsert(boolean compoundCascadeInsert)(Code)
Sets true if cascade insert is to be performed based on entries joins
Parameters:
  compoundCascadeInsert - true if cascade insert is to be performed based on entries joins



compoundEntries
public PersistentObject[] compoundEntries()(Code)
Returns PersistentObject [] - compound entries of this object PersistentObject [] - compound entries of this object



compoundEntry
public void compoundEntry(int index, PersistentObject persistentObject)(Code)
Sets PersistentObject - compound entry at specific index
Parameters:
  index - index which entry to be set
Parameters:
  persistentObject - compound entry



compoundEntry
public PersistentObject compoundEntry(int index)(Code)
Returns PersistentObject - compound entry at specific index
Parameters:
  index - index which entry to be returned PersistentObject - compound entry
throws:
  IndexOutOfBoundsException - if there is no entry at requested index



compoundSize
public int compoundSize()(Code)
Returns number of compound etries number of compound etries



compoundUncascadeAll
public void compoundUncascadeAll(int index)(Code)
Unsets both delete and insert cascade flags to true
Parameters:
  index - index of entry



delegateFactory
public DelegatePersistentObjectFactory delegateFactory()(Code)
Returns DelegatePersistentObjectFactory DelegatePersistentObjectFactory



dirty
public boolean dirty()(Code)
Returns true if this object has been modified true if this object has been modified



doSetupCompound
protected void doSetupCompound()(Code)
Method to be overrriden in descendants and being called from setupCompound()



double2Number
public static Double double2Number(double value)(Code)



equals
public boolean equals(Object obj)(Code)



equalsBasic
public boolean equalsBasic(Object value)(Code)
Equals by Basic Peristent Object fields (without children objects)
Parameters:
  value - the reference object with which to compare true if basic persistent object fields are equal



equalsCompound
public boolean equalsCompound(Object value)(Code)
Equals by Coumpound Peristent Object entries (without children objects)
Parameters:
  value - the reference object with which to compare true if Coumpound Peristent Object entries are equal



flatten
final public AbstractPersistentObject flatten()(Code)
Flattens this PersistentObject. Flattening is procedure of making PersistentObject a simple POJO like. All the additional structures used to keep records and links are nullified. The values are though preserved in the object fields. itself



flatten0
abstract protected void flatten0()(Code)



fromCache
public boolean fromCache()(Code)



hashCodeBasic
public int hashCodeBasic()(Code)
Returns hash code by basic persistent object fields hash code by basic persistent object fields are equal



implicitJoinMode
public Compound.ImplicitJoinMode implicitJoinMode()(Code)



implicitJoinMode
public void implicitJoinMode(Compound.ImplicitJoinMode implicitJoinMode)(Code)
Sets implicitJoinMode
Parameters:
  implicitJoinMode -



isEmptyEntry
public static boolean isEmptyEntry(PersistentObject entry)(Code)



join
public Join join()(Code)
Joins all the compound entries according to Compound.ImplicitJoinMode set new Join



join
public Join join(Compound.ImplicitJoinMode implicitJoinMode)(Code)
Joins all the compound entries according to Compound.ImplicitJoinMode passed
Parameters:
  implicitJoinMode - new Join



joinImplicitely
public Join joinImplicitely(Compound.ImplicitJoinMode implicitJoinMode)(Code)



joinImplicitely
public Join joinImplicitely(Join.Type[] joinTypes)(Code)
This method will create join implicitely based on the mutual references To run it all the persistentObjects have to exist.



joinMinusOne
public Join joinMinusOne()(Code)



long2Number
public static Long long2Number(long value)(Code)



main
public static void main(String[] args)(Code)



mappingType
public String mappingType()(Code)
internal type



mappingType
public void mappingType(String mappingType)(Code)
Sets internal type
Parameters:
  mappingType -



markFromCache
public void markFromCache(boolean fromCache)(Code)



newPersistentInstance
abstract public AbstractPersistentObject newPersistentInstance()(Code)
Factory method new instance of this object preserving tracing mode



nextCompoundIndex
protected int nextCompoundIndex()(Code)
Returns next entry index to be used. This method will resize number of entries if necessary. next entry index to be used



populateCompoundEntries
public void populateCompoundEntries()(Code)
Populates all entries by join



populateCompoundEntries
public void populateCompoundEntries(int slaveIdx)(Code)
Populates all entries by join
Parameters:
  slaveIdx - - index of the compound entry to populate



populateCompoundEntryByJoin
public void populateCompoundEntryByJoin(int indexFrom, int indexTo)(Code)
Populate compound Entry By Join
Parameters:
  indexFrom - - persistentObjects index of the master object
Parameters:
  indexTo - - persistentObjects index of the slave object



registerDelegateFactory
public void registerDelegateFactory(DelegatePersistentObjectFactory delegateFactory)(Code)
Sets DelegatePersistentObjectFactory. If set it will be used when retrieving result sets instead of default object factory (which normally object itself)
Parameters:
  delegateFactory -



selfReference
abstract protected void selfReference()(Code)
Makes this object the 1st object in PersistentObject[] of compound PersistentObject



selfReferencing
abstract public boolean selfReferencing()(Code)
Returns true if this is this type of object can be the 1st object of PersistentObject[] of compound PersistentObject. true if this is the 1st object in PersistentObject[] of compound PersistentObject



setupCompound
final protected void setupCompound()(Code)
Performs setup of compound object. Joins persistent entries if needed.



toKey
public Object toKey()(Code)
Method used in Tracing Collections as a key to determine which objects get modified. Cen be used for object caching as well. key of this object
See Also:   com.completex.objective.components.persistency.type.TracingCollection



toLink
abstract public Link toLink()(Code)
Returns Link reperesentation of this PersistentObject Link reperesentation of this Record



toParameters
abstract public Parameters toParameters(int[] indeces)(Code)
Returns Parameters object based on values and column types of the record for columns with indeces specified with "indeces" parameter. This method will populate parameters regardless of whether they are "dirty" flags or nulls
Parameters:
  indeces - Parameters object based on values and column types of the record for columns with indecesspecified with "indeces" parameter



unflatten
final public AbstractPersistentObject unflatten()(Code)
Unflattening is procedure opposite to flattening. itself
See Also:   com.completex.objective.components.persistency.AbstractPersistentObject.flatten



unflatten0
abstract protected void unflatten0()(Code)



unmarkInitializedComplex
public void unmarkInitializedComplex()(Code)
Unmarks this object as "InitializedComplex". Also resets LinkDependencyGraph.



unuseStarAndColumnNames
public void unuseStarAndColumnNames()(Code)
Unsets query hint to use star in select clauses and names of PersistentObject columns when retrieving from ResultSet. It should be used carefully since if there are repetitive SQL names it can cause incorrect results



useStarAndColumnNames
public void useStarAndColumnNames()(Code)
Sets query hint to use star in select clauses and names of PersistentObject columns when retrieving from ResultSet. It should be used carefully since if there are repetitive SQL names it can cause incorrect results



usingColumnNames
public boolean usingColumnNames()(Code)
Returns true query hint is set to use names of PersistentObject columns when retrieving from ResultSet. true query hint is set to use names of PersistentObject columns whenretrieving from ResultSet.



usingSelectStar
public boolean usingSelectStar()(Code)
Returns true query hint is set to use star in select clauses. true query hint is set to use star in select clauses.



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.