Class SDODataType

java.lang.Object
org.eclipse.persistence.sdo.SDOType
org.eclipse.persistence.sdo.types.SDODataType
All Implemented Interfaces:
Type, Serializable

public class SDODataType extends SDOType implements Type
See Also:
  • Constructor Details

  • Method Details

    • isAbstract

      public boolean isAbstract()
      Description copied from interface: Type
      Indicates if this Type is abstract. If true, this Type cannot be instantiated. Abstract types cannot be used in DataObject or DataFactory create methods.
      Specified by:
      isAbstract in interface Type
      Overrides:
      isAbstract in class SDOType
      Returns:
      true if this Type is abstract.
    • isDataType

      public boolean isDataType()
      Description copied from interface: Type
      Indicates if this Type specifies DataTypes (true) or DataObjects (false). When false, any object that is an instance of this type also implements the DataObject interface. True for simple types such as Strings and numbers. For any object:
         isInstance(object) && !isDataType() implies
         DataObject.class.isInstance(object) returns true. 
       
      Specified by:
      isDataType in interface Type
      Overrides:
      isDataType in class SDOType
      Returns:
      true if Type specifies DataTypes, false for DataObjects.
    • isInstance

      public boolean isInstance(Object object)
      Description copied from interface: Type
      Returns whether the specified object is an instance of this type.
      Specified by:
      isInstance in interface Type
      Overrides:
      isInstance in class SDOType
      Parameters:
      object - the object in question.
      Returns:
      true if the object is an instance.
      See Also:
    • isOpen

      public boolean isOpen()
      Description copied from interface: Type
      Indicates if this Type allows any form of open content. If false, dataObject.getInstanceProperties() must be the same as dataObject.getType().getProperties() for any DataObject dataObject of this Type.
      Specified by:
      isOpen in interface Type
      Overrides:
      isOpen in class SDOType
      Returns:
      true if this Type allows open content.
    • isSequenced

      public boolean isSequenced()
      Description copied from interface: Type
      Indicates if this Type specifies Sequenced DataObjects. Sequenced DataObjects are used when the order of values between Properties must be preserved. When true, a DataObject will return a Sequence. For example,
        Sequence elements = dataObject.getSequence();
       
      Specified by:
      isSequenced in interface Type
      Overrides:
      isSequenced in class SDOType
      Returns:
      true if this Type specifies Sequenced DataObjects.
    • getPseudoDefault

      public Object getPseudoDefault()
      Description copied from class: SDOType
      INTERNAL: Return the wrapped initial value for the primitive numeric (when not defined) See p.45 of Java Spec 4th edition. See p.85 Sect 9.3 of the SDO Spec.
      Overrides:
      getPseudoDefault in class SDOType
      Returns:
      aDefault Object (primitive numerics) or null (DataObjects, String, Lists)
    • addOpenMappings

      protected void addOpenMappings()
    • setOpen

      public void setOpen(boolean bOpen)
      Description copied from class: SDOType
      INTERNAL: Make this Type an opened Type to allow open content by assigning true value or a Type not to accept any additional properties by assigning false value, SDOType.isOpen().
      Overrides:
      setOpen in class SDOType
      Parameters:
      bOpen - boolean value implying if this Type is open