diff --git a/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java b/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java index caa9813..399f46f 100644 --- a/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java +++ b/src/fr/devinsy/sikevadb/core/XMLSikevaDB.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2017 Christian Pierre MOMON + * Copyright (C) 2013-2018 Christian Pierre MOMON * * This file is part of SikevaDB, simple key value database. * diff --git a/src/fr/devinsy/sikevadb/demo/SikevaDBDemo.java b/src/fr/devinsy/sikevadb/demo/SikevaDBDemo.java index 9b81f27..2d6d734 100644 --- a/src/fr/devinsy/sikevadb/demo/SikevaDBDemo.java +++ b/src/fr/devinsy/sikevadb/demo/SikevaDBDemo.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2017 Christian Pierre MOMON + * Copyright (C) 2013-2018 Christian Pierre MOMON * * This file is part of SikevaDB, simple key value database. * diff --git a/src/fr/devinsy/sikevadb/filetree/FileTreeSikevaDB.java b/src/fr/devinsy/sikevadb/filetree/FileTreeSikevaDB.java index 3cc0e6c..aababf4 100644 --- a/src/fr/devinsy/sikevadb/filetree/FileTreeSikevaDB.java +++ b/src/fr/devinsy/sikevadb/filetree/FileTreeSikevaDB.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2017 Christian Pierre MOMON + * Copyright (C) 2013-2018 Christian Pierre MOMON * * This file is part of SikevaDB, simple key value database. * @@ -735,40 +735,6 @@ public class FileTreeSikevaDB implements SikevaDB return result; } - /* (non-Javadoc) - * @see fr.devinsy.sikevadb.core.SikevaDB#getKeys() - */ - @Override - public StringList getTopKeys() throws SikevaDBException - { - StringList result; - - if (isClosed()) - { - throw new ClosedDatabaseException(); - } - else - { - result = new StringList((int) countOfElements()); - - File[] topFiles = this.dataDirectory.listFiles(); - for (File file : topFiles) - { - if (file.isFile()) - { - result.add(file.getName()); - } - else if (file.isDirectory()) - { - result.add(file.getName()); - } - } - } - - // - return result; - } - /** * Gets the login. * @@ -835,6 +801,40 @@ public class FileTreeSikevaDB implements SikevaDB return result; } + /* (non-Javadoc) + * @see fr.devinsy.sikevadb.core.SikevaDB#getKeys() + */ + @Override + public StringList getTopKeys() throws SikevaDBException + { + StringList result; + + if (isClosed()) + { + throw new ClosedDatabaseException(); + } + else + { + result = new StringList((int) countOfElements()); + + File[] topFiles = this.dataDirectory.listFiles(); + for (File file : topFiles) + { + if (file.isFile()) + { + result.add(file.getName()); + } + else if (file.isDirectory()) + { + result.add(file.getName()); + } + } + } + + // + return result; + } + /* (non-Javadoc) * @see fr.devinsy.sikevadb.core.SikevaDB#getValue(java.lang.String) */ diff --git a/src/fr/devinsy/sikevadb/sql/SQLSikevaDB.java b/src/fr/devinsy/sikevadb/sql/SQLSikevaDB.java index 3a1ea48..aaed024 100644 --- a/src/fr/devinsy/sikevadb/sql/SQLSikevaDB.java +++ b/src/fr/devinsy/sikevadb/sql/SQLSikevaDB.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2017 Christian Pierre MOMON + * Copyright (C) 2013-2018 Christian Pierre MOMON * * This file is part of SikevaDB, simple key value database. * diff --git a/test/fr/devinsy/sikevadb/filetree/TreeFileSikevaDBTest.java b/test/fr/devinsy/sikevadb/filetree/TreeFileSikevaDBTest.java index ccef121..33b2806 100644 --- a/test/fr/devinsy/sikevadb/filetree/TreeFileSikevaDBTest.java +++ b/test/fr/devinsy/sikevadb/filetree/TreeFileSikevaDBTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2017 Christian Pierre MOMON, DEVINSY + * Copyright (C) 2013-2018 Christian Pierre MOMON, DEVINSY * * This file is part of SikevaDB, simple key value database. * diff --git a/test/fr/devinsy/sikevadb/sql/SQLSikevaDBTest.java b/test/fr/devinsy/sikevadb/sql/SQLSikevaDBTest.java index df6c3cf..171869b 100644 --- a/test/fr/devinsy/sikevadb/sql/SQLSikevaDBTest.java +++ b/test/fr/devinsy/sikevadb/sql/SQLSikevaDBTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2017 Christian Pierre MOMON, DEVINSY + * Copyright (C) 2013-2018 Christian Pierre MOMON, DEVINSY * * This file is part of SikevaDB, simple key value database. *