T - Specifies which implementation of NoSqlObject this connection provides.W - Specifies which type of database object is wrapped by the NoSqlObject implementation provided.public interface NoSqlConnection<W,T extends NoSqlObject<W>> extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying connection.
|
T[] |
createList(int length)
Creates an array of the specified length typed to match the
NoSqlObject implementation appropriate for
this provider. |
T |
createObject()
Instantiates and returns a
NoSqlObject instance whose properties can be configured before ultimate
insertion via insertObject(NoSqlObject). |
void |
insertObject(NoSqlObject<W> object)
Inserts the given object into the underlying NoSQL database.
|
boolean |
isClosed()
Indicates whether the underlying connection is closed.
|
T createObject()
NoSqlObject instance whose properties can be configured before ultimate
insertion via insertObject(NoSqlObject).NoSqlObjectT[] createList(int length)
NoSqlObject implementation appropriate for
this provider.length - the length of the array to create.NoSqlObjectvoid insertObject(NoSqlObject<W> object)
object - The object to insert.void close()
If this connection is part of a connection pool, executing this method should commit the transaction and return the connection to the pool, but it should not actually close the underlying connection.
close in interface AutoCloseableclose in interface Closeableboolean isClosed()
true if a call to insertObject(NoSqlObject) will fail due to the state of this object.true if this object is considered closed.Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.