Class BaseDirectoryDescriptor

    • Field Detail

      • AUTO_INCREMENT_ID_FIELD_DEFAULT

        public static final boolean AUTO_INCREMENT_ID_FIELD_DEFAULT
        See Also:
        Constant Field Values
      • DEFAULT_DATA_FILE_CHARACTER_SEPARATOR

        public static final char DEFAULT_DATA_FILE_CHARACTER_SEPARATOR
        See Also:
        Constant Field Values
      • CREATE_TABLE_POLICY_NEVER

        public static final String CREATE_TABLE_POLICY_NEVER
        Doesn't create or modify the table in any way.
        See Also:
        Constant Field Values
      • CREATE_TABLE_POLICY_ALWAYS

        public static final String CREATE_TABLE_POLICY_ALWAYS
        Always recreates the table from scratch and loads the CSV data.
        See Also:
        Constant Field Values
      • CREATE_TABLE_POLICY_ON_MISSING_COLUMNS

        public static final String CREATE_TABLE_POLICY_ON_MISSING_COLUMNS
        If the table doesn't exist then creates it and loads the CSV data. If the table already exists, only adds missing columns (with null values).
        See Also:
        Constant Field Values
      • CREATE_TABLE_POLICIES

        public static final List<String> CREATE_TABLE_POLICIES
      • DATA_LOADING_POLICY_LEGACY

        public static final String DATA_LOADING_POLICY_LEGACY
        Load the CSV file if the table has just been created (behavior before introducing data loading feature).
        Since:
        11.1
        See Also:
        Constant Field Values
      • DATA_LOADING_POLICY_NEVER_LOAD

        public static final String DATA_LOADING_POLICY_NEVER_LOAD
        Doesn't load the CSV data.
        Since:
        11.1
        See Also:
        Constant Field Values
      • DATA_LOADING_POLICY_SKIP_DUPLICATE

        public static final String DATA_LOADING_POLICY_SKIP_DUPLICATE
        Duplicate lines in data load from CSV are ignored.
        Since:
        11.1
        See Also:
        Constant Field Values
      • DATA_LOADING_POLICY_REJECT_DUPLICATE

        public static final String DATA_LOADING_POLICY_REJECT_DUPLICATE
        If the data loaded from CSV already exist throw an exception.
        Since:
        11.1
        See Also:
        Constant Field Values
      • DATA_LOADING_POLICY_UPDATE_DUPLICATE

        public static final String DATA_LOADING_POLICY_UPDATE_DUPLICATE
        Load CSV data and update duplicate lines.
        Since:
        11.1
        See Also:
        Constant Field Values
      • DATA_LOADING_POLICIES

        public static final List<String> DATA_LOADING_POLICIES
        Policy used to deal with duplicates when loading data to a directory.
        Since:
        11.1
      • remove

        public boolean remove
      • template

        public boolean template
      • extendz

        public String extendz
      • parentDirectory

        public String parentDirectory
      • schemaName

        public String schemaName
      • idField

        public String idField
      • autoincrementIdField

        public Boolean autoincrementIdField
      • tableName

        public String tableName
      • readOnly

        public Boolean readOnly
      • passwordField

        public String passwordField
      • passwordHashAlgorithm

        public String passwordHashAlgorithm
      • cacheTimeout

        public Integer cacheTimeout
      • cacheMaxSize

        public Integer cacheMaxSize
      • cacheEntryName

        public String cacheEntryName
      • cacheEntryWithoutReferencesName

        public String cacheEntryWithoutReferencesName
      • negativeCaching

        public Boolean negativeCaching
      • substringMatchType

        public String substringMatchType
      • computeMultiTenantId

        protected boolean computeMultiTenantId
      • types

        public String[] types
        Since:
        8.4
      • dataFileName

        public String dataFileName
      • dataFileCharacterSeparator

        public String dataFileCharacterSeparator
      • createTablePolicy

        public String createTablePolicy
      • dataLoadingPolicy

        public String dataLoadingPolicy
        Since:
        11.1
    • Constructor Detail

      • BaseDirectoryDescriptor

        public BaseDirectoryDescriptor()
    • Method Detail

      • isAutoincrementIdField

        public boolean isAutoincrementIdField()
      • setAutoincrementIdField

        public void setAutoincrementIdField​(boolean autoincrementIdField)
      • getDataFileName

        public String getDataFileName()
      • getDataFileCharacterSeparator

        public char getDataFileCharacterSeparator()
      • getCreateTablePolicy

        public String getCreateTablePolicy()
      • checkDataLoadingPolicy

        protected static void checkDataLoadingPolicy​(String dataLoadingPolicy)
      • isReadOnly

        public boolean isReadOnly()
      • setReadOnly

        public void setReadOnly​(boolean readOnly)
      • getCacheTimeout

        public int getCacheTimeout()
      • getCacheMaxSize

        public int getCacheMaxSize()
      • clone

        public BaseDirectoryDescriptor clone()
        Sub-classes MUST OVERRIDE and use a more specific return type.

        Usually it's bad to use clone(), and a copy-constructor is preferred, but here we want the copy method to be inheritable so clone() is appropriate.

        Overrides:
        clone in class Object
      • isComputeMultiTenantId

        public boolean isComputeMultiTenantId()
        Returns true if a multi tenant id should be computed for this directory, if the directory has support for multi tenancy, false otherwise.
        Since:
        10.1