| Package | Description |
|---|---|
| org.tentackle.pdo |
PDO persistence implementation.
|
| org.tentackle.persist |
Persistence layer implementation.
|
| org.tentackle.persist.rmi |
Persistence layer remoting.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
PersistentObjectClassVariables.isReferenced(Db db,
long id) |
| Modifier and Type | Field and Description |
|---|---|
protected Db |
MpxConnectionManager.serverDb
server Db to clone.
|
| Modifier and Type | Method and Description |
|---|---|
Db |
Db.clone()
Clones a logical connection.
|
Db |
StatementWrapper.getAttachedSession()
Same as
StatementWrapper.getSession() but nullsafe.Throws PersistenceException if statement no more attached to connection. |
Db |
Db.getClonedFromDb()
Gets the original db if this db is cloned.
|
Db |
AbstractDbObject.getSession()
Get the logical db connection for this object.
|
Db |
AbstractDbOperation.getSession()
Get the logical db connection for this object.
|
Db |
DbTransaction.getSession()
Gets the db.
|
Db |
DefaultDbPool.getSession() |
Db |
ManagedConnection.getSession()
Gets tha attached session.
|
Db |
ModificationTracker.getSession() |
Db |
ResultSetWrapper.getSession()
Gets the session associated to the result set.
|
Db |
StatementWrapper.getSession()
Gets the currently attached session.
|
| Modifier and Type | Method and Description |
|---|---|
static Collection<Db> |
Db.getAllOpenDb()
Gets a list of all currently open Db sessions.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
DefaultConnectionManager.addDb(Db db)
Adds a Db to the list.
|
void |
Query.apply(Db db,
PreparedStatementWrapper st)
Applies the query parameters to the statement.
Optionally applies limit, offset as well. |
protected void |
AbstractIdSource.assertDbNotRemote(Db db)
Assert the correct Db.
|
protected void |
AbstractIdSource.assertOneRowAffected(Db db,
int rowCount)
Asserts that exactly one row is affected by an update.
|
void |
ManagedConnection.attachSession(Db db)
Attaches a connection to a session.
|
protected void |
DefaultDbPool.closeDb(Db db)
Closes a db.
The method can be overridden if there is something to do after/before close. |
void |
CommitTxRunnable.commit(Db db)
Performs any processing necessary before commit.
|
IdSource |
DefaultIdSourceConfigurator.configure(Db db,
String idConfig) |
IdSource |
IdSourceConfigurator.configure(Db db,
String idConfig)
Connect to the ID-Source.
|
void |
AbstractDbObject.copyToDb(Db destDb,
boolean plain)
Copies an object from one db connection to another.
|
ModificationLog |
DefaultModificationLogFactory.createModificationLog(Db db) |
ModificationLog |
ModificationLogFactory.createModificationLog(Db db)
Creates an empty modification log for a given db.
|
ModificationLog |
DefaultModificationLogFactory.createModificationLog(Db db,
char modType) |
ModificationLog |
ModificationLogFactory.createModificationLog(Db db,
char modType)
Creates a modification log for a given db and modification type.
|
String |
Query.createSql(Db db)
Creates the SQL-String of this query.
Optionally modifies the sql query according to limit and offset. |
void |
ManagedConnection.detachSession(Db db)
Detaches a session from a connection.
|
ResultSetWrapper |
Query.execute(Db db)
Executes the query with ResultSet.TYPE_FORWARD_ONLY and ResultSet.CONCUR_READ_ONLY.
|
ResultSetWrapper |
Query.execute(Db db,
int resultSetType)
Executes the query with ResultSet.CONCUR_READ_ONLY.
|
ResultSetWrapper |
Query.execute(Db db,
int resultSetType,
int resultSetConcurrency)
Executes the query.
|
AbstractDbObject<?> |
ModificationLog.getDbObject(Db db)
Gets the db object referenced by this ModificationLog.
The object is lazily cached if the given db equals the db of this modlog. |
IdSource |
DbObjectClassVariables.getIdSource(Db db)
Get the IdSource.
If the IdSource is null, the method will look for a property file which is the classname + ".properties". |
org.tentackle.persist.rmi.AbstractDbObjectRemoteDelegate<P> |
DbObjectClassVariables.getRemoteDelegate(Db db)
Gets the RemoteDelegate for the class and db.
|
org.tentackle.persist.rmi.AbstractDbOperationRemoteDelegate<P> |
DbOperationClassVariables.getRemoteDelegate(Db db)
Gets the RemoteDelegate for the class and db.
|
int |
Query.getRowCount(Db db)
Gets the number of objects returned by this query.
|
protected void |
ModificationLog.handleMissingObject(ModificationLog modlog,
Db toDb)
Handles the case when an object to replay is not found.
|
static void |
DbModification.initializeModificationTable(Db db)
Initializes the modification table.
|
boolean |
DbObjectClassVariables.isReferenced(Db db,
long id)
Determines whether the class of this variable holder is referenced.
|
protected boolean |
DbObjectClassVariables.isReferencedImpl(Db db,
long id,
Set<DbObjectClassVariables.ForeignReference> foreignReferences)
Determines whether the class of this variable holder is referenced.
|
long |
ObjectId.nextId(Db db) |
long |
IdSource.nextId(Db db)
Get the next unique ID.
|
long |
ObjectSequenceId.nextId(Db db) |
ModificationLog.ReplayState |
ModificationLog.replay(ModificationLog.ReplayState state,
List<? extends ModificationLog> modList,
boolean copyLog,
Db toDb)
Replays a list of modlogs within a single transaction.
It will also create new txId if the modlogs are copied. |
void |
ModificationLog.replay(ModificationLog modlog,
Db toDb)
Applies a modification to another db.
The method is not static to allow overriding (e.g. |
void |
RollbackTxRunnable.rollback(Db db)
Performs any processing necessary before rollback.
|
void |
DbTransaction.setSession(Db db)
Sets the db.
|
| Constructor and Description |
|---|
AbstractDbObject(Db db)
Creates a database object.
|
AbstractDbOperation(Db session)
Creates a database object.
|
DbModification(Db db)
Creates an empty modification object.
|
DbModification(Db db,
String trackedName)
Creates a modification object for a given tablename.
|
DbPreferencesKey(Db db)
Creates a preferences key.
|
DbPreferencesNode(Db db)
Creates a node.
|
DbTransaction(Db db,
String txName,
boolean fromRemote)
Creates a transaction.
|
IdSourceEmptyException(Db db)
Constructs a new idsource empty exception for a given db connection
with
null as its detail message. |
IdSourceEmptyException(Db db,
String message)
Constructs a new idsource empty exception for a given db connection with the specified detail message.
|
IdSourceEmptyException(Db db,
String message,
Throwable cause)
Constructs a new idsource empty exception for a given db connection with the specified detail message and
cause.
|
IdSourceEmptyException(Db db,
Throwable cause)
Constructs a new idsource empty exception for a given db connection with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
|
IdSourceException(Db db)
Constructs a new id source exception for a given session
with
null as its detail message. |
IdSourceException(Db db,
String message)
Constructs a new id source exception for a given session with the specified detail message.
|
IdSourceException(Db db,
String message,
Throwable cause)
Constructs a new id source exception for a given session with the specified detail message and
cause.
|
IdSourceException(Db db,
Throwable cause)
Constructs a new id source exception for a given session with the specified cause and a
detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
|
ModificationLog(Db db)
Creates an empty modification log for a given db.
|
ModificationLog(Db db,
char modType)
Creates a modification log for a given db and modification type.
|
ModificationTally(Db db,
String trackedName)
Creates a modification counter for a given tracked name.
|
MpxConnectionManager(Db serverDb)
Creates a connection manager with reasonable values for most servers.
|
MpxConnectionManager(String name,
Db serverDb,
int maxDb,
int idOffset,
int iniSize,
int incSize,
int minSize,
int maxSize,
int minMinutes,
int maxMinutes)
Creates a new connection manager.
|
| Modifier and Type | Method and Description |
|---|---|
Db |
RemoteDbSessionImpl.getSession()
Gets the session db connection
|
protected Db |
RemoteDbSessionImpl.openDb()
Opens a new Db.
The default implementation opens a new Db. |
Copyright © 2016 Krake Softwaretechnik. All rights reserved.