/** * INTERNAL: * Return source key fields for translation by an AggregateObjectMapping * By default, return an empty NonSynchronizedVector */ public Collection getFieldsForTranslationInAggregate() { return new NonSynchronizedVector(0); }
/** * INTERNAL: * EJB 3.0 support. Returns the default listeners. */ public Vector getDefaultEventListeners() { if (defaultEventListeners == null) { defaultEventListeners = new NonSynchronizedVector(); } return defaultEventListeners; }
/** * INTERNAL: * converts JDBC results to collections of rows. */ public AbstractRecord(int initialCapacity) { this.fields = new NonSynchronizedVector(initialCapacity); this.values = new NonSynchronizedVector(initialCapacity); this.size = 0; }
/** * 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); }
/** * 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); }
/** * INTERNAL: * converts JDBC results to collections of rows. */ public AbstractRecord() { this.fields = new NonSynchronizedVector(); this.values = new NonSynchronizedVector(); this.size = 0; this.nullValueInFields = false; }
/** * 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); }
/** * Reset the fields and values from the arrays. * This removes the optimization if a non-optimized method is called. */ protected void checkValues() { if (this.values == null) { this.values = new NonSynchronizedVector(this.valuesArray.length); for (Object value : this.valuesArray) { this.values.add(value); } } }
/** * INTERNAL: * Returns the set of fields that should be selected to build this mapping's value(s). * This is used by expressions to determine which fields to include in the select clause for non-object expressions. */ @Override public Vector getSelectFields() { Vector fields = new NonSynchronizedVector(2); fields.add(getDirectField()); return fields; }
/** * 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. */ @Override public Vector getSelectTables() { Vector tables = new NonSynchronizedVector(0); tables.add(getReferenceTable()); return tables; }
/** * 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. */ @Override public Vector getSelectTables() { Vector tables = new NonSynchronizedVector(0); tables.add(getReferenceTable()); return tables; }
/** * PUBLIC: * The default constructor initializes the sourceToTargetKeyFieldAssociations * and sourceToTargetKeys data structures. */ public XMLCollectionReferenceMapping() { sourceToTargetKeyFieldAssociations = new HashMap(); sourceToTargetKeys = new NonSynchronizedVector(); this.containerPolicy = ContainerPolicy.buildDefaultPolicy(); this.usesSingleNode = false; }
/** * INTERNAL: * Returns the set of fields that should be selected to build this mapping's value(s). * This is used by expressions to determine which fields to include in the select clause for non-object expressions. */ @Override public Vector getSelectFields() { Vector fields = new NonSynchronizedVector(2); fields.add(getDirectField()); return fields; }
/** * PUBLIC: * The default constructor initializes the sourceToTargetKeyFieldAssociations * and sourceToTargetKeys data structures. */ public XMLCollectionReferenceMapping() { sourceToTargetKeyFieldAssociations = new HashMap(); sourceToTargetKeys = new NonSynchronizedVector(); this.containerPolicy = ContainerPolicy.buildDefaultPolicy(); this.usesSingleNode = false; }
/** * PUBLIC: * The default constructor initializes the sourceToTargetKeyFieldAssociations * and sourceToTargetKeys data structures. */ public XMLCollectionReferenceMapping() { sourceToTargetKeyFieldAssociations = new HashMap(); sourceToTargetKeys = new NonSynchronizedVector(); this.containerPolicy = ContainerPolicy.buildDefaultPolicy(); this.usesSingleNode = false; }
/** * PUBLIC: * The primary key can be specified if used instead of an expression or selection object. * @deprecated since EclipseLink 2.1, replaced by setSelectionId(Object) * @see #setSelectionId(Object) */ @Deprecated public void setSingletonSelectionKey(Object selectionKey) { Vector key = new NonSynchronizedVector(); key.add(selectionKey); setSelectionKey(key); }
@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; }
@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; }
@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; }
@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; }