Class DerbyConnectionPool


  • public class DerbyConnectionPool
    extends ConnectionPool

    Created by Jeff Gaynor
    on 2/22/24 at 10:43 AM

    • Method Detail

      • getCreateScript

        public List<String> getCreateScript()
      • setCreateScript

        public void setCreateScript​(List<String> createScript)
      • hasCreateScript

        public boolean hasCreateScript()
      • createStore

        public void createStore()
      • getDerbySecurityProperties

        protected Properties getDerbySecurityProperties()
      • setProperties

        protected Properties setProperties()
        Sets ths derby properties for creating the database. Once these are set the newly created database has the correct security internal to the database, including setting the user name and password. However, as long as these are set, this means any subsequent access can only be to this database, unless this is undone by unsetProperties(Properties). When creating a database, set these for the minimum time required, then unset them or you will get all manner of authentication failures!

        In particular if these are set, then you can only use a single database and attempts to connect to another database (unless it has identical password, bootpassword and user) will always fail.
        Returns:
      • unsetProperties

        protected void unsetProperties​(Properties oldProperties)
      • isMemoryStore

        public boolean isMemoryStore()
      • isFileStore

        public boolean isFileStore()