Interface IndexInterface

All Superinterfaces:
ColumnContainerInterface, MetadataInterface, PublicObjectInterface, Remote

public interface IndexInterface extends ColumnContainerInterface
Represents Index associated with Physical Table.
  • Method Details

    • setIndexAttributes

      void setIndexAttributes(Set<IndexAttribute> setIndexAttribute) throws ServiceException, RemoteException
      Sets the attributes of an Index
      Parameters:
      setIndexAttribute -
      Throws:
      ServiceException - If there's a repository error.
      RemoteException - in the event of remote object failure.
    • getIndexAttributes

      Set<IndexAttribute> getIndexAttributes() throws ServiceException, RemoteException
      Gets the attributes of an Index
      Returns:
      Set
      Throws:
      ServiceException - If there's a repository error.
      RemoteException - in the event of remote object failure.
    • convertToSimpleIndex

      IndexInterface convertToSimpleIndex(ColumnInterface column) throws ServiceException, RemoteException
      Convert composite index (contains more than 1 column) to simple index (contains only 1 column)
      Parameters:
      column -
      Returns:
      Throws:
      ServiceException - If there's a repository error.
      RemoteException - in the event of remote object failure.
    • convertToCompositeIndex

      IndexInterface convertToCompositeIndex(String name, List<ColumnInterface> columns) throws ServiceException, RemoteException
      Convert simple index (contains only 1 column) to composite index (contains more than 1 column)
      Parameters:
      name -
      columns -
      Returns:
      Throws:
      ServiceException - If there's a repository error.
      RemoteException - in the event of remote object failure.
    • isSimpleIndex

      boolean isSimpleIndex() throws ServiceException, RemoteException
      Checks for the Simple Index
      Returns:
      true if index is Simple Index
      Throws:
      ServiceException - If there's a repository error.
      RemoteException - in the event of remote object failure.
    • isAssociatedWithKey

      boolean isAssociatedWithKey() throws ServiceException, RemoteException
      Checks whether index is associated with a Unique/Primary key.
      Returns:
      true if index is associated with Unique/Primary key.
      Throws:
      ServiceException - If there's a repository error.
      RemoteException - in the event of remote object failure.