/** * INTERNAL: * Return source key fields for translation by an AggregateObjectMapping * By default, return an empty NonSynchronizedVector */ public Collection getFieldsForTranslationInAggregate() { return new NonSynchronizedVector(0); }
/** * INTERNAL: * Return all the fields */ public Vector<DatabaseField> getFields() { if (fields == null) { fields = NonSynchronizedVector.newInstance(); } return fields; }
public void setSize(int newSize) { modCount++; if (newSize > elementCount) { ensureCapacityHelper(newSize); } else { for (int i = newSize ; i < elementCount ; i++) { elementData[i] = null; } } elementCount = newSize; }
public boolean removeElement(Object obj) { modCount++; int i = indexOf(obj); if (i >= 0) { removeElementAt(i); return true; } return false; }
@Override public Object getAttributeValueFromObject(Object object) throws DescriptorException { IsSetNullPolicy aPolicy = (IsSetNullPolicy)object; NonSynchronizedVector aCollection = new NonSynchronizedVector(); for(int i = 0, size = aPolicy.getIsSetParameters().length; i<size;i++) { aCollection.add(aPolicy.getIsSetParameters()[i]); } return aCollection; }
public boolean removeAll(Collection c) { boolean modified = false; Iterator e = iterator(); while (e.hasNext()) { if(c.contains(e.next())) { e.remove(); modified = true; } } return modified; }
public boolean containsAll(Collection c) { Iterator e = c.iterator(); while (e.hasNext()) if(!contains(e.next())) return false; return true; }
public int lastIndexOf(Object elem) { return lastIndexOf(elem, elementCount-1); }
@Override public Object getAttributeValueFromObject(Object object) throws DescriptorException { IsSetNullPolicy aPolicy = (IsSetNullPolicy)object; NonSynchronizedVector aCollection = new NonSynchronizedVector(); for(int i = 0, size = aPolicy.getIsSetParameters().length; i<size;i++) { aCollection.add(aPolicy.getIsSetParameters()[i]); } return aCollection; }
public boolean removeElement(Object obj) { modCount++; int i = indexOf(obj); if (i >= 0) { removeElementAt(i); return true; } return false; }
public boolean removeAll(Collection c) { boolean modified = false; Iterator e = iterator(); while (e.hasNext()) { if(c.contains(e.next())) { e.remove(); modified = true; } } return modified; }
public boolean containsAll(Collection c) { Iterator e = c.iterator(); while (e.hasNext()) if(!contains(e.next())) return false; return true; }
public int lastIndexOf(Object elem) { return lastIndexOf(elem, elementCount-1); }
/** * INTERNAL: */ public final List<DatabaseTable> getHistoricalTables() { if (historicalTables == null) { historicalTables = org.eclipse.persistence.internal.helper.NonSynchronizedVector.newInstance(1); } return historicalTables; }
/** * INTERNAL: * Returns the table(s) that should be selected to build this mapping's value(s). * This is used by expressions to determine which tables to include in the from clause for non-object expressions. */ public Vector getSelectTables() { return new NonSynchronizedVector(0); }
@Override public Object getAttributeValueFromObject(Object object) throws DescriptorException { IsSetNullPolicy aPolicy = (IsSetNullPolicy)object; NonSynchronizedVector aCollection = new NonSynchronizedVector(); for(int i = 0, size = aPolicy.getIsSetParameterTypes().length; i<size;i++) { aCollection.add(aPolicy.getIsSetParameterTypes()[i]); } return aCollection; }