Java Doc for DListImpl.java in  » Database-ORM » db-ojb » org » apache » ojb » odmg » collections » 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 » db ojb » org.apache.ojb.odmg.collections 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.AbstractList
   org.apache.ojb.odmg.collections.DListImpl

All known Subclasses:   org.apache.ojb.odmg.collections.DBagImpl,
DListImpl
public class DListImpl extends AbstractList implements DList,DArray,ManageableCollection,PersistenceBrokerAware(Code)

author:
   Thomas Mahler
author:
   Armin Waibel
version:
   $Id: DListImpl.java,v 1.27.2.5 2005/12/21 22:29:50 tomdz Exp $



Constructor Summary
public  DListImpl()
    
public  DListImpl(PBKey pbKey)
    

Method Summary
public  voidadd(int index, Object element)
     Inserts the specified element at the specified position in this list (optional operation).
public  voidafterDelete(PersistenceBroker broker)
    
public  voidafterInsert(PersistenceBroker broker)
    
public  voidafterLookup(PersistenceBroker broker)
    
public  voidafterStore(PersistenceBroker broker)
    
public  voidafterUpdate(PersistenceBroker broker)
    
public  voidbeforeDelete(PersistenceBroker broker)
    
public  voidbeforeInsert(PersistenceBroker broker)
     prepare itself for persistence.
public  voidbeforeUpdate(PersistenceBroker broker)
    
protected  booleancheckForOpenTransaction(TransactionImpl tx)
    
public  DListconcat(DList otherList)
     Creates a new DList object that contains the contents of this DList object concatenated with the contents of the otherList object.
public  booleanexistsElement(String predicate)
     Determines whether there is an element of the collection that evaluates to true for the predicate.
public  Objectget(int index)
     Returns the element at the specified position in this list.
Parameters:
  index - index of element to return.
public  ListgetElements()
     Insert the method's description here.
public  IntegergetId()
     Lazily return the Id, no point in precomputing it.
protected  LoggergetLog()
    
public  PBKeygetPBKey()
    
protected  TransactionImplgetTransaction()
    
public  inthashCode()
    
public  Iteratoriterator()
     Returns an iterator over the elements in this collection.
public  ListIteratorlistIterator()
     Returns a list iterator of the elements in this list (in proper sequence).
public  ListIteratorlistIterator(int index)
     Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list.
public  voidojbAdd(Object anObject)
     add a single Object to the Collection.
public  voidojbAddAll(ManageableCollection otherCollection)
     adds a Collection to this collection.
public  IteratorojbIterator()
     returns an Iterator over all elements in the collection.
public  DCollectionquery(String predicate)
     Evaluate the boolean query predicate for each element of the collection and return a new collection that contains each element that evaluated to true.
public  Objectremove(int index)
     Removes the element at the specified position in this list (optional operation).
public  voidresize(int newSize)
     Resize the array to have newSize elements.
public  Iteratorselect(String predicate)
     Access all of the elements of the collection that evaluate to true for the provided query predicate.
public  ObjectselectElement(String predicate)
     Selects the single element of the collection for which the provided OQL query predicate is true.
Parameters:
  predicate - An OQL boolean query predicate.
public  voidsetElements(List elements)
     Sets the elements.
public  voidsetId(Integer id)
     Sets the id.
public  voidsetPBKey(PBKey pbKey)
    
public  intsize()
     Returns the number of elements in this collection.
public  StringtoString()
    


Constructor Detail
DListImpl
public DListImpl()(Code)
Used by PB-Kernel to instantiate ManageableCollections FOR INTERNAL USE ONLY



DListImpl
public DListImpl(PBKey pbKey)(Code)
Used on odmg-level




Method Detail
add
public void add(int index, Object element)(Code)
Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
Parameters:
  index - index at which the specified element is to be inserted.
Parameters:
  element - element to be inserted.
throws:
  UnsupportedOperationException - if the add method is notsupported by this list.
throws:
  ClassCastException - if the class of the specified elementprevents it from being added to this list.
throws:
  IllegalArgumentException - if some aspect of the specifiedelement prevents it from being added to this list.
throws:
  IndexOutOfBoundsException - if the index is out of range(index < 0 || index > size()).



afterDelete
public void afterDelete(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



afterInsert
public void afterInsert(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



afterLookup
public void afterLookup(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



afterStore
public void afterStore(PersistenceBroker broker) throws PersistenceBrokerException(Code)



afterUpdate
public void afterUpdate(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



beforeDelete
public void beforeDelete(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



beforeInsert
public void beforeInsert(PersistenceBroker broker) throws PersistenceBrokerException(Code)
prepare itself for persistence. Each DList entry generates an org.apache.ojb.broker.Identity for the wrapped persistent object.



beforeUpdate
public void beforeUpdate(PersistenceBroker broker) throws PersistenceBrokerException(Code)
noop



checkForOpenTransaction
protected boolean checkForOpenTransaction(TransactionImpl tx)(Code)



concat
public DList concat(DList otherList)(Code)
Creates a new DList object that contains the contents of this DList object concatenated with the contents of the otherList object.
Parameters:
  otherList - The list whose elements are placed at the end of the listreturned by this method. A new DList that is the concatenation of this list andthe list referenced by otherList.



existsElement
public boolean existsElement(String predicate) throws org.odmg.QueryInvalidException(Code)
Determines whether there is an element of the collection that evaluates to true for the predicate.
Parameters:
  predicate - An OQL boolean query predicate. True if there is an element of the collection that evaluates to truefor the predicate, otherwise false.
exception:
  org.odmg.QueryInvalidException - The query predicate is invalid.



get
public Object get(int index)(Code)
Returns the element at the specified position in this list.
Parameters:
  index - index of element to return. the element at the specified position in this list.
throws:
  IndexOutOfBoundsException - if the index is out of range (index< 0 || index >= size()).



getElements
public List getElements()(Code)
Insert the method's description here. Creation date: (10.02.2001 20:53:01) java.util.Vector



getId
public Integer getId()(Code)
Lazily return the Id, no point in precomputing it. int



getLog
protected Logger getLog()(Code)



getPBKey
public PBKey getPBKey()(Code)



getTransaction
protected TransactionImpl getTransaction()(Code)



hashCode
public int hashCode()(Code)



iterator
public Iterator iterator()(Code)
Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned (unless this collection is an instance of some class that provides a guarantee). an Iterator over the elements in this collection



listIterator
public ListIterator listIterator()(Code)
Returns a list iterator of the elements in this list (in proper sequence). a list iterator of the elements in this list (in propersequence).



listIterator
public ListIterator listIterator(int index)(Code)
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list. The specified index indicates the first element that would be returned by an initial call to the next method. An initial call to the previous method would return the element with the specified index minus one.
Parameters:
  index - index of first element to be returned from thelist iterator (by a call to the next method). a list iterator of the elements in this list (in propersequence), starting at the specified position in this list.
throws:
  IndexOutOfBoundsException - if the index is out of range (index< 0 || index > size()).



ojbAdd
public void ojbAdd(Object anObject)(Code)
add a single Object to the Collection. This method is used during reading Collection elements from the database. Thus it is is save to cast anObject to the underlying element type of the collection.



ojbAddAll
public void ojbAddAll(ManageableCollection otherCollection)(Code)
adds a Collection to this collection. Used in reading Extents from the Database. Thus it is save to cast otherCollection to this.getClass().



ojbIterator
public Iterator ojbIterator()(Code)
returns an Iterator over all elements in the collection. Used during store and delete Operations. If the implementor does not return an iterator over ALL elements, OJB cannot store and delete all elements properly.



query
public DCollection query(String predicate) throws QueryInvalidException(Code)
Evaluate the boolean query predicate for each element of the collection and return a new collection that contains each element that evaluated to true.
Parameters:
  predicate - An OQL boolean query predicate. A new collection containing the elements that evaluated true for the predicate.
exception:
  org.odmg.QueryInvalidException - The query predicate is invalid.



remove
public Object remove(int index)(Code)
Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.

This implementation always throws an UnsupportedOperationException.
Parameters:
  index - the index of the element to remove. the element previously at the specified position.
throws:
  UnsupportedOperationException - if the remove method isnot supported by this list.
throws:
  IndexOutOfBoundsException - if the specified index is out ofrange (index < 0 || index >= size()).




resize
public void resize(int newSize)(Code)
Resize the array to have newSize elements.
Parameters:
  newSize - The new size of the array.



select
public Iterator select(String predicate) throws org.odmg.QueryInvalidException(Code)
Access all of the elements of the collection that evaluate to true for the provided query predicate.
Parameters:
  predicate - An OQL boolean query predicate. An iterator used to iterate over the elements that evaluated true for the predicate.
exception:
  org.odmg.QueryInvalidException - The query predicate is invalid.



selectElement
public Object selectElement(String predicate) throws org.odmg.QueryInvalidException(Code)
Selects the single element of the collection for which the provided OQL query predicate is true.
Parameters:
  predicate - An OQL boolean query predicate. The element that evaluates to true for the predicate. If no elementevaluates to true, null is returned.
exception:
  org.odmg.QueryInvalidException - The query predicate is invalid.



setElements
public void setElements(List elements)(Code)
Sets the elements.
Parameters:
  elements - The elements to set



setId
public void setId(Integer id)(Code)
Sets the id.
Parameters:
  id - The id to set



setPBKey
public void setPBKey(PBKey pbKey)(Code)



size
public int size()(Code)
Returns the number of elements in this collection. If this collection contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE. the number of elements in this collection



toString
public String toString()(Code)



Fields inherited from java.util.AbstractList
protected transient int modCount(Code)(Java Doc)

Methods inherited from java.util.AbstractList
public boolean add(E e)(Code)(Java Doc)
public void add(int index, E element)(Code)(Java Doc)
public boolean addAll(int index, Collection<? extends E> c)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
abstract public E get(int index)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public int indexOf(Object o)(Code)(Java Doc)
public Iterator<E> iterator()(Code)(Java Doc)
public int lastIndexOf(Object o)(Code)(Java Doc)
public ListIterator<E> listIterator()(Code)(Java Doc)
public ListIterator<E> listIterator(int index)(Code)(Java Doc)
public E remove(int index)(Code)(Java Doc)
protected void removeRange(int fromIndex, int toIndex)(Code)(Java Doc)
public E set(int index, E element)(Code)(Java Doc)
public List<E> subList(int fromIndex, int toIndex)(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.