Interface SaFieldDescription

  • All Superinterfaces:
    java.io.Serializable

    public interface SaFieldDescription
    extends java.io.Serializable
    Interface for field descriptions.
    Describes a field in a database definition (DDC).
    • Method Detail

      • getFieldType

        int getFieldType()
        Reads the fieldtype.
        Returns:
        Returns the fieldType.
      • getSaFieldType

        SaConstants.SaFieldType getSaFieldType()
        Reads the SAPERION fieldtype.
        Returns:
        Fieldtype enumeration
      • getIndexFieldKind

        com.saperion.jna.applsrv.m2j.natives.IndexFieldKind getIndexFieldKind()
        Returns:
        the field type as IndexFieldKind
      • isHasLookupTable

        boolean isHasLookupTable()
        Test, if this field has a lookup table.
        Returns:
        Returns the hasLookupTable.
      • isIndex

        boolean isIndex()
        Tests, if this field is an index field.
        Returns:
        Returns the isIndex.
      • isMandatory

        boolean isMandatory()
        Checks, if this field is mandatory.
        Returns:
        Returns the isMandatory.
      • isMultiValue

        boolean isMultiValue()
        Checks, if this field is multivalued.
        Returns:
        Returns the isMultiValue.
      • isUnique

        boolean isUnique()
        Checks, if this field is unique.
        Returns:
        Returns the isUnique.
      • getLength

        int getLength()
        Reads the length if this field.
        Returns:
        Returns the length.
      • getLookupTableDef

        java.lang.String getLookupTableDef()
        Reads the definition of lookup table.
        Returns:
        Returns the lookupTableDef.
      • getLookupTableField

        java.lang.String getLookupTableField()
        Reads the field in the lookup table.
        Returns:
        Returns the lookupTableField.
      • isLookupTableIsDirect

        boolean isLookupTableIsDirect()
        Reads the value for lookupTableIsDirect.
        Returns:
        Returns the lookupTableIsDirect.
      • getMultiValueSeparators

        java.lang.String getMultiValueSeparators()
        Reads the multivalue separators.
        Returns:
        Returns the multiValueSeparators.
      • getName

        java.lang.String getName()
        Reads the name of this field.
        Returns:
        Returns the name.
      • getDbName

        java.lang.String getDbName()
        Reads the real database name of this field.
        Returns:
        the dbName
      • toString

        java.lang.String toString()
        Returns the string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String representation "Name" / "DBName" type:"Fieldtype"
        See Also:
        Object.toString()
      • isNonSystemField

        boolean isNonSystemField()
        Checks whether this object's name is a non-system DDC field name.
        Returns:
        True if name denotes a non-system field
      • isStringFieldType

        boolean isStringFieldType()
        Checks if this object is a string type.
        Returns:
        True if fieldType is a string type
      • getCurrency

        java.lang.String getCurrency()
        Returns the currency symbol for currency type fields.
        Returns:
        symbol or empty string if not available
      • getPostDigits

        int getPostDigits()
        Returns the number of fraction digits for currency type fields.
        Returns:
        fraction digits or 0 if not available
      • isMultiSelect

        boolean isMultiSelect()
        Returns:
        true if the multiselect option is enabled
      • setMultiSelect

        void setMultiSelect​(boolean multiSelect)
        Enables or disables the multiselect option.
        Parameters:
        multiSelect - multiSelect option
      • getMultivalueTableName

        java.lang.String getMultivalueTableName()
        Returns:
        name of the associated multivalue table or null if this is not a multivalue field
      • setMultivalueTableName

        void setMultivalueTableName​(java.lang.String tableName)
        Parameters:
        tableName - the name of the associated multivalue table for this field
      • getProtoField

        default java.lang.String getProtoField()
      • setProtoField

        default void setProtoField​(java.lang.String protoField)