Class LWCNormalizedObject

java.lang.Object
com.ptc.core.lwc.server.LWCNormalizedObject

public final class LWCNormalizedObject extends Object
Deprecated.
LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

Supported API: true
  • Constructor Details

    • LWCNormalizedObject

      public LWCNormalizedObject(Persistable p, String type, Locale locale, OperationIdentifier operation) throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Parameters:
      p - The Persistable that will back this object.
      type - The type to set on the object.
      locale - The locale to be used when retrieving descriptors and formatting and parsing values.
      operation - The operation to be used when retrieving constraints.
      Throws:
      WTException
    • LWCNormalizedObject

      public LWCNormalizedObject(ObjectReference ref, String type, Locale locale, OperationIdentifier operation) throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Parameters:
      ref - The identifier of the Persistable that will back this object.
      type - The type to set on the object.
      locale - The locale to be used when retrieving descriptors and formatting and parsing values.
      operation - The operation to be used when retrieving constraints.
      Throws:
      WTException
    • LWCNormalizedObject

      public LWCNormalizedObject(TypeInstanceIdentifier tii, String type, Locale locale, OperationIdentifier operation) throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Parameters:
      tii - The identifier of the Persistable that will back this object.
      type - The type to set on the object.
      locale - The locale to be used when retrieving descriptors and formatting and parsing values.
      operation - The operation to be used when retrieving constraints.
      Throws:
      WTException
    • LWCNormalizedObject

      public LWCNormalizedObject(String type, Locale locale, OperationIdentifier operation) throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Parameters:
      type - The type to set on the object.
      locale - The locale to be used when retrieving descriptors and formatting and parsing values.
      operation - The operation to be used when retrieving constraints.
      Throws:
      WTException
  • Method Details

    • load

      public void load(String... attributes) throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Parameters:
      attributes - The set of attributes to be loaded.
      Throws:
      WTException
    • load

      public void load(Collection<String> attributes) throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Parameters:
      attributes - The set of attributes to be loaded.
      Throws:
      WTException
    • setIBAsPreLoaded

      public void setIBAsPreLoaded(boolean ibasRPreloaded)
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Parameters:
      ibasRPreloaded - If iba values should be treated as if they've already been loaded.
    • get

      public Object get(String attribute) throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Parameters:
      attribute - The name of the attribute
      Returns:
      The value of the given attribute
      Throws:
      WTException
    • getAsString

      public Object getAsString(String attribute) throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Parameters:
      attribute - The name of the attribute
      Returns:
      The value of the given attribute as a localized String
      Throws:
      WTException
    • set

      public Object set(String attribute, Object value) throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Parameters:
      attribute - The name of the attribute
      value - The value of the given attribute
      Returns:
      The value actually set on the object
      Throws:
      WTException
    • getTypeDescriptor

      public DefinitionDescriptor getTypeDescriptor() throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Returns:
      A descriptor for the type of the object
      Throws:
      WTException
    • getAttributeDescriptor

      public AttributeTypeSummary getAttributeDescriptor(String attribute) throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Parameters:
      attribute - The name of the attribute
      Returns:
      A descriptor for the attribute
      Throws:
      WTException
    • validate

      public void validate() throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Throws:
      WTException
    • apply

      public Persistable apply() throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Returns:
      The underlying Persistable.
      Throws:
      WTException
    • persist

      public TypeInstanceIdentifier persist() throws WTException
      Deprecated.
      LWCNormalizedObject is deprecated and is planned to be removed in the next release. Use PersistableAdapter instead.

      Supported API: true
      Returns:
      The ThypeInstanceIdentifier of the newly persisted object.
      Throws:
      WTException