Class ResourceTable<T>


  • public final class ResourceTable<T>
    extends Table
    Account resources associated with objects. Use this class directly only for resources which do not have Open and/or Close events. Otherwise use ResourceRegistry instead which encapsulates an instance of this class, as well as dependent tables for Open and Close, providing useful methods to work with the triple.
    • Constructor Detail

      • ResourceTable

        public ResourceTable​(@NotNull
                             java.lang.Class<?> probeClass,
                             java.lang.String tableName,
                             @Nullable
                             java.lang.String resourceIdentifierColumnName)
        Create top table
      • ResourceTable

        public ResourceTable​(@NotNull
                             Table parentTable,
                             java.lang.String tableName,
                             @Nullable
                             java.lang.String resourceIdentifierColumnName)
        Create dependent table
    • Method Detail

      • setResourceObject

        public void setResourceObject​(int row,
                                      @NotNull
                                      T resource)
      • hasResourceName

        public boolean hasResourceName()
      • setResourceName

        public void setResourceName​(int row,
                                    @Nullable
                                    java.lang.String name)