-
Notifications
You must be signed in to change notification settings - Fork 0
Database Class
Class Declaration:
public final class DatabaseKnown Subclasses: N/A(Since it is final)
Superclass: java.lang.Object
Implemented Interfaces: none
Package: io.github.demnetwork.sjdb
No Public constructors.
This method saves the Database into a file
Parameters:
-
user - The new username
-
password - the new password
Throws:
-
java.lang.Throwable- When something does not work properly
Sets the element at index index with the Object e
Parameters:
-
e - Element to set into a Database Root Index
-
index - Index to put the
eObject
Throws:
-
ArrayIndexOutOfBounds- If the index is negative or it is above or equals toRootMaxLength
This method returns the Object at index index in the root
Parameters:
- index - Index to retrieve the Object
Throws:
-
ArrayIndexOutOfBounds- If the index is negative or it is above or equals toRootMaxLength
Returns the Database root of this Database Instance.
Parameters:
none
Throws:
-
Error(If the JVM Runs out of memory or if something went wrong with the JVM)
SJDB Is licensed under the MIT License, and by using the SJDB API you agree to the license below:
Copyright (c) 2024 Arthur Yoshikasu Arakaki
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The license above states that you can use, modify, and distribute the software, even commercially, as long as the license above is included.