Codota Logo
DynamicPropertiesManager
Code IndexAdd Codota to your IDE (free)

How to use
DynamicPropertiesManager
in
org.eclipse.persistence.internal.dynamic

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: com.haulmont.thirdparty/eclipselink

@Override
public void postConstruct(DynamicEntity entity) {
  if (DynamicEntityImpl.class.isAssignableFrom(entity.getClass())) {
    super.postConstruct(entity);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

@Override
public boolean containsProperty(String propertyName) {
  return dpm.contains(propertyName);
}
origin: com.haulmont.thirdparty/eclipselink

public void postConstruct(DynamicEntity entity) {
  // first step, create 'slots' in propertiesMap
  createSlots((DynamicEntityImpl)entity);
  // next step, initialize 'slot' values
  initializeSlotValues((DynamicEntityImpl)entity);
}
 
origin: org.eclipse.persistence/org.eclipse.persistence.core

public boolean isSet(String propertyName) throws DynamicException {
  if (fetchPropertiesManager().contains(propertyName)) {
    if (_persistence_getFetchGroup() != null &&
        !_persistence_getFetchGroup().containsAttributeInternal(propertyName)) {
      return false;
    }
    PropertyWrapper wrapper = propertiesMap.get(propertyName);
    if (wrapper == null) { // properties can be added after constructor is called
      wrapper = new PropertyWrapper();
      propertiesMap.put(propertyName, wrapper);
    }
    return wrapper.isSet();
  }
  else {
    throw DynamicException.invalidPropertyName(fetchPropertiesManager().getType(),
        propertyName);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

Field dpmField = dynamicClass.getField(DynamicPropertiesManager.PROPERTIES_MANAGER_FIELD);
DynamicPropertiesManager dpm = (DynamicPropertiesManager)dpmField.get(null);
dpm.setType(entityType);
entityType.setDynamicPropertiesManager(dpm);
origin: org.eclipse.persistence/org.eclipse.persistence.core

@Override
public List<String> getPropertiesNames() {
  return dpm.getPropertyNames();
}
origin: com.haulmont.thirdparty/eclipselink

dpm.checkSet(propertyName, value); // life-cycle callback
if (_persistence_getFetchGroup() != null) {
  String errorMsg = _persistence_getFetchGroup().onUnfetchedAttributeForSet(this,
      propertyName);
  if (errorMsg != null) {
    throw DynamicException.invalidPropertyName(dpm.getType(), propertyName);
origin: org.eclipse.persistence/org.eclipse.persistence.core

protected void initializeSlotValues(DynamicEntityImpl entity) {
  getInitializatonPolicy().initializeProperties((DynamicTypeImpl)type, entity);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Gets internal impl class of {@link DynamicType}.
 *
 * @return Dynamic type of this entity
 * @throws DynamicException if type is null
 */
public DynamicTypeImpl getType() throws DynamicException {
  DynamicType type = fetchPropertiesManager().getType();
  if (type == null) {
    throw DynamicException.entityHasNullType(this);
  }
  return (DynamicTypeImpl) type;
}
origin: com.haulmont.thirdparty/eclipselink

public boolean isSet(String propertyName) throws DynamicException {
  if (fetchPropertiesManager().contains(propertyName)) {
    if (_persistence_getFetchGroup() != null &&
        !_persistence_getFetchGroup().containsAttributeInternal(propertyName)) {
      return false;
    }
    PropertyWrapper wrapper = propertiesMap.get(propertyName);
    if (wrapper == null) { // properties can be added after constructor is called
      wrapper = new PropertyWrapper();
      propertiesMap.put(propertyName, wrapper);
    }
    return wrapper.isSet();
  }
  else {
    throw DynamicException.invalidPropertyName(fetchPropertiesManager().getType(),
        propertyName);
  }
}
origin: com.haulmont.thirdparty/eclipselink

Field dpmField = dynamicClass.getField(DynamicPropertiesManager.PROPERTIES_MANAGER_FIELD);
DynamicPropertiesManager dpm = (DynamicPropertiesManager)dpmField.get(null);
dpm.setType(entityType);
entityType.setDynamicPropertiesManager(dpm);
origin: com.haulmont.thirdparty/eclipselink

public List<String> getPropertiesNames() {
  return dpm.getPropertyNames();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

dpm.checkSet(propertyName, value); // life-cycle callback
if (_persistence_getFetchGroup() != null) {
  String errorMsg = _persistence_getFetchGroup().onUnfetchedAttributeForSet(this,
      propertyName);
  if (errorMsg != null) {
    throw DynamicException.invalidPropertyName(dpm.getType(), propertyName);
origin: com.haulmont.thirdparty/eclipselink

protected void initializeSlotValues(DynamicEntityImpl entity) {
  getInitializatonPolicy().initializeProperties((DynamicTypeImpl)type, entity);
}
 
origin: com.haulmont.thirdparty/eclipselink

/**
 * Gets internal impl class of {@link DynamicType}.
 *
 * @return Dynamic type of this entity
 * @throws DynamicException if type is null
 */
public DynamicTypeImpl getType() throws DynamicException {
  DynamicType type = fetchPropertiesManager().getType();
  if (type == null) {
    throw DynamicException.entityHasNullType(this);
  }
  return (DynamicTypeImpl) type;
}
origin: com.haulmont.thirdparty/eclipselink

public <T> T get(String propertyName) throws DynamicException {
  DynamicPropertiesManager dpm = fetchPropertiesManager();
  if (dpm.contains(propertyName)) {
    if (_persistence_getFetchGroup() != null) {
      String errorMsg = _persistence_getFetchGroup().onUnfetchedAttribute(this,
          propertyName);
      if (errorMsg != null) {
        throw DynamicException.invalidPropertyName(dpm.getType(), propertyName);
    throw DynamicException.invalidPropertyName(dpm.getType(), propertyName);
origin: com.haulmont.thirdparty/eclipselink

  descriptor.getJavaClass().getField(DynamicPropertiesManager.PROPERTIES_MANAGER_FIELD);
DynamicPropertiesManager dpm = (DynamicPropertiesManager)dpmField.get(null);
dpm.setType(entityType);
entityType.setDynamicPropertiesManager(dpm);
origin: org.eclipse.persistence/org.eclipse.persistence.dbws

@Override
public void postConstruct(DynamicEntity entity) {
  if (DynamicEntityImpl.class.isAssignableFrom(entity.getClass())) {
    super.postConstruct(entity);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

@Override
public int getNumberOfProperties() {
  return dpm.getPropertyNames().size();
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public void postConstruct(DynamicEntity entity) {
  // first step, create 'slots' in propertiesMap
  createSlots((DynamicEntityImpl)entity);
  // next step, initialize 'slot' values
  initializeSlotValues((DynamicEntityImpl)entity);
}
org.eclipse.persistence.internal.dynamicDynamicPropertiesManager

Javadoc

Information about a property is extracted (thru DynamicType) from the entity's ClassDescriptor

Important - DynamicPropertiesManager is NOT thread-safe

Most used methods

  • postConstruct
  • checkSet
  • contains
  • createSlots
  • getInitializatonPolicy
  • getPropertyNames
  • getType
  • initializeSlotValues
  • setType

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Path (java.nio.file)
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Join (org.hibernate.mapping)
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