Codota Logo
org.eclipse.persistence.internal.descriptors
Code IndexAdd Codota to your IDE (free)

How to use org.eclipse.persistence.internal.descriptors

Best Java code snippets using org.eclipse.persistence.internal.descriptors (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public void useDefaultConstructorInstantiationPolicy() {
  setMethodName(null);
  setFactory(null);
  setFactoryClass(null);
  setFactoryClassName(null);
  setFactoryMethodName(null);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Build and return the default (zero-argument) constructor for the factory class.
 */
protected Constructor buildFactoryDefaultConstructor() throws DescriptorException {
  return this.buildDefaultConstructorFor(this.getFactoryClass());
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Build the row representation of the object for update. The row built does not
 * contain entries for uninstantiated attributes.
 */
public AbstractRecord buildRowForShallowInsert(Object object, AbstractSession session) {
  return buildRowForShallowInsert(createRecord(session), object, session);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Return the default (zero-argument) constructor for the descriptor class.
 */
protected Constructor getDefaultConstructor() throws DescriptorException {
  // Lazy initialize, because the constructor cannot be serialized
  if (defaultConstructor == null) {
    this.setDefaultConstructor(this.buildDefaultConstructor());
  }
  return defaultConstructor;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Used to updated any attributes that may be cached on a woven entity
 */
public void updateCachedAttributes(PersistenceEntity persistenceEntity, CacheKey cacheKey, Object primaryKey){
  persistenceEntity._persistence_setCacheKey(cacheKey);
  persistenceEntity._persistence_setId(primaryKey);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Gets the value of an instance variable in the object.
 */
@Override
public Object getAttributeValueFromObject(Object anObject) throws DescriptorException {
  return getAttributeValueFromObject(anObject, new Object[] {getAttributeName()});
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Create a new row/record for the object builder. This allows subclasses to
 * define different record types.  This will typically be called when a
 * record will be used for temporarily holding on to primary key fields.
 */
protected AbstractRecord createRecordForPKExtraction(int size, AbstractSession session) {
  return createRecord(size, session);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Extract primary key attribute values from the domainObject.
 */
@Override
public Object extractPrimaryKeyFromObject(Object domainObject, AbstractSession session) {
  return extractPrimaryKeyFromObject(domainObject, session, false);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * If no method name is specified, they we have to use the default (zero-argument) constructor.
 */
public boolean isUsingDefaultConstructor() {
  return this.getMethodName() == null;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Iterate a primitive object (String, Date, Integer, etc.).
 * Override this method if appropriate.
 */
protected void internalIteratePrimitive(Object primitiveValue) {
  iterate(primitiveValue);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Update the object primary key by fetching a new sequence number from the accessor.
 * This assume the uses sequence numbers check has already been done.
 * @return the sequence value or null if not assigned.
 * @exception  DatabaseException - an error has occurred on the database.
 */
public Object assignSequenceNumber(Object object, AbstractSession writeSession) throws DatabaseException {
  return assignSequenceNumber(object, writeSession, null);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Returns the value of the attribute on the specified object.
 */
public Object getAttributeValueFromObject(Object object) {
  return ((PersistenceObject)object)._persistence_get(this.attributeName);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Set the descriptor.  This method is overridden so the
 * isXMLDescriptor Boolean can be reset.
 */
public void setDescriptor(ClassDescriptor aDescriptor) {
  super.setDescriptor(aDescriptor);
  isXMLDescriptor = null;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 */
public void setQueryKeyFields(Map<DatabaseField, DatabaseField> queryKeyFields) {
  setQueryKeyFields(queryKeyFields, true);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Sets the instantiation policy.
 */
@Override
public void setInstantiationPolicy(InstantiationPolicy instantiationPolicy) {
  this.instantiationPolicy = instantiationPolicy;
  if (instantiationPolicy != null) {
    instantiationPolicy.setDescriptor(this);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 * Iterate on the specified element.
 */
@Override
public void iterateOnElement(DescriptorIterator iterator, Object element) {
  iterator.iteratePrimitiveForMapping(element, this);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * INTERNAL:
 */
@Override
public Object getObjectValue(Object fieldValue, Session session) {
  return accessor.getValue(session);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Convenience method to ensure converters have an opportunity to convert
 * any class names to classes during project setup.
 */
protected void convertConverterClassNamesToClasses(Converter converter, ClassLoader classLoader) {
  if (converter != null && converter instanceof ClassNameConversionRequired) {
    ((ClassNameConversionRequired)converter).convertClassNamesToClasses(classLoader);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public void useFactoryInstantiationPolicy(Object factory, String methodName) {
  setMethodName(methodName);
  setFactory(factory);
  setFactoryClass(null);
  setFactoryClassName(null);
  setFactoryMethodName(null);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Iterate an aggregate object
 * (i.e. an object that is the target of an AggregateMapping).
 * Override this method if appropriate.
 */
protected void internalIterateAggregateObject(Object aggregateObject) {
  iterate(aggregateObject);
}
org.eclipse.persistence.internal.descriptors

Most used classes

  • ObjectBuilder
    Purpose: Object builder is one of the behavior class attached to descriptor. It is responsible for b
  • InstantiationPolicy
    Purpose: Allows customization of how an object is created/instantiated. So, here is how it works:
  • InstanceVariableAttributeAccessor
    Purpose: A wrapper class for handling cases when the domain object has instance variable to map to t
  • MethodAttributeAccessor
    Purpose: A wrapper class for handling cases when the domain object attributes are to be accessed thr
  • PersistenceEntity
    Define an interface for utility methods weaved into the persistence classes. These general methods a
  • AttributeChangeListener,
  • CascadeLockingPolicy,
  • DescriptorIterator$CascadeCondition,
  • DescriptorIterator,
  • FieldTransformation,
  • FieldTranslation,
  • InteractionArgument,
  • MethodBasedFieldTransformation,
  • OptimisticLockingPolicy,
  • PersistenceObject,
  • PersistenceObjectAttributeAccessor,
  • PersistenceObjectInstantiationPolicy,
  • QueryArgument,
  • QueryKeyReference
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now