Index

A B C D E F G H I J K L M O P S T U 
All Classes and Interfaces|All Packages

A

AbstractJdbcDialect - Class in io.agentscope.extensions.jdbc.dialect
Aggregate dialect abstract class — implements all table-domain interfaces and the SandboxLockStrategy contract.
AbstractJdbcDialect() - Constructor for class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
 
AbstractJdbcDialectBuilder - Class in io.agentscope.extensions.jdbc.dialect
Builder for AbstractJdbcDialect — chainable configuration then AbstractJdbcDialectBuilder.build().
agentStateStore() - Method in class io.agentscope.extensions.jdbc.JdbcDistributedStore
 
autoCreateTable(boolean) - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialectBuilder
Whether to auto-create tables during AbstractJdbcDialectBuilder.build() (default true).

B

baseStore() - Method in class io.agentscope.extensions.jdbc.JdbcDistributedStore
 
bindDataSource(DataSource) - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
Binds the DataSource used for lock acquisition.
BoundSql - Record Class in io.agentscope.extensions.jdbc.dialect
An assembled SQL statement with its bind parameters.
BoundSql(String, Object...) - Constructor for record class io.agentscope.extensions.jdbc.dialect.BoundSql
Convenience constructor accepting varargs params.
BoundSql(String, List<Object>) - Constructor for record class io.agentscope.extensions.jdbc.dialect.BoundSql
Creates an instance of a BoundSql record class.
build() - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialectBuilder
Detects the dialect, assembles table names, optionally creates tables.
build() - Method in class io.agentscope.extensions.jdbc.sandbox.JdbcSandboxExecutionGuard.Builder
build() - Method in class io.agentscope.extensions.jdbc.store.JdbcStore.Builder
Builds the JdbcStore.
builder(SandboxLockStrategy) - Static method in class io.agentscope.extensions.jdbc.sandbox.JdbcSandboxExecutionGuard
Creates a builder for JdbcSandboxExecutionGuard.
builder(DataSource) - Static method in class io.agentscope.extensions.jdbc.store.JdbcStore
Creates a builder for JdbcStore.

C

closeConnection(Connection) - Static method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
Closes a JDBC connection quietly, returning it to the pool when pooled.
closeResultSet(ResultSet) - Static method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
Closes a JDBC result set quietly.
closeStatement(Statement) - Static method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
Closes a JDBC statement quietly.
create(DataSource) - Static method in class io.agentscope.extensions.jdbc.JdbcDistributedStore
Creates a JDBC distributed store with auto-detected dialect and table creation.
create(DataSource, AbstractJdbcDialect) - Static method in class io.agentscope.extensions.jdbc.JdbcDistributedStore
Creates a JDBC distributed store with an explicitly provided dialect.
createTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
Collects create-schema DDL for all table-domain interfaces, executed by the builder in a single connection during build().

D

delete(String, String) - Method in class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
 
delete(List<String>, String) - Method in class io.agentscope.extensions.jdbc.store.JdbcStore
 
dialect(StoreDialect) - Method in class io.agentscope.extensions.jdbc.store.JdbcStore.Builder
Sets the store dialect (required).
download(String) - Method in class io.agentscope.extensions.jdbc.snapshot.JdbcRemoteSnapshotClient
 

E

equals(Object) - Method in record class io.agentscope.extensions.jdbc.dialect.BoundSql
Indicates whether some other object is "equal to" this one.
exists(String) - Method in class io.agentscope.extensions.jdbc.snapshot.JdbcRemoteSnapshotClient
 
exists(String, String) - Method in class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
 

F

from(DataSource) - Static method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
Entry point for auto-detection.

G

get(String, String, String, Class<T>) - Method in class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
 
get(List<String>, String) - Method in class io.agentscope.extensions.jdbc.store.JdbcStore
 
getDataSource() - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
Returns the bound DataSource (for vendor lock implementations).
getList(String, String, String, Class<T>) - Method in class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
 
getOrder() - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
Detection priority (lower wins).
getVersioned(String, String, String, Class<T>) - Method in class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
 

H

H2Dialect - Class in io.agentscope.extensions.jdbc.dialect.vendor
H2 dialect.
H2Dialect() - Constructor for class io.agentscope.extensions.jdbc.dialect.vendor.H2Dialect
 
hashCode() - Method in record class io.agentscope.extensions.jdbc.dialect.BoundSql
Returns a hash code value for this object.

I

initializeSchema(boolean) - Method in class io.agentscope.extensions.jdbc.store.JdbcStore.Builder
When true, runs the dialect's CREATE TABLE during construction.
io.agentscope.extensions.jdbc - package io.agentscope.extensions.jdbc
 
io.agentscope.extensions.jdbc.dialect - package io.agentscope.extensions.jdbc.dialect
JDBC dialect layer: table-domain interfaces (table) + aggregate abstract class + vendor implementations (vendor).
io.agentscope.extensions.jdbc.dialect.table - package io.agentscope.extensions.jdbc.dialect.table
Table-domain dialect interfaces — one per table.
io.agentscope.extensions.jdbc.dialect.vendor - package io.agentscope.extensions.jdbc.dialect.vendor
Vendor dialect implementations — one class per database.
io.agentscope.extensions.jdbc.sandbox - package io.agentscope.extensions.jdbc.sandbox
 
io.agentscope.extensions.jdbc.snapshot - package io.agentscope.extensions.jdbc.snapshot
 
io.agentscope.extensions.jdbc.state - package io.agentscope.extensions.jdbc.state
 
io.agentscope.extensions.jdbc.store - package io.agentscope.extensions.jdbc.store
 

J

JdbcAgentStateStore - Class in io.agentscope.extensions.jdbc.state
Database-agnostic session state store backed by SessionStateDialect.
JdbcAgentStateStore(DataSource, SessionStateDialect) - Constructor for class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
Creates a store with auto-schema creation disabled.
JdbcAgentStateStore(DataSource, SessionStateDialect, boolean) - Constructor for class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
Creates a store with optional auto-schema creation.
JdbcDistributedStore - Class in io.agentscope.extensions.jdbc
Multi-database JDBC-backed DistributedStore with automatic dialect detection.
JdbcRemoteSnapshotClient - Class in io.agentscope.extensions.jdbc.snapshot
RemoteSnapshotClient backed by a JDBC BLOB column, with zero inline SQL.
JdbcRemoteSnapshotClient(DataSource, SnapshotDialect) - Constructor for class io.agentscope.extensions.jdbc.snapshot.JdbcRemoteSnapshotClient
Creates a client with auto table creation.
JdbcRemoteSnapshotClient(DataSource, SnapshotDialect, boolean) - Constructor for class io.agentscope.extensions.jdbc.snapshot.JdbcRemoteSnapshotClient
Creates a client with optional auto table creation.
JdbcSandboxExecutionGuard - Class in io.agentscope.extensions.jdbc.sandbox
JDBC-backed SandboxExecutionGuard that delegates all lock semantics to a SandboxLockStrategy provided by the dialect.
JdbcSandboxExecutionGuard.Builder - Class in io.agentscope.extensions.jdbc.sandbox
JdbcSnapshotSpec - Class in io.agentscope.extensions.jdbc.snapshot
Convenience SandboxSnapshotSpec for JDBC-backed snapshot storage.
JdbcSnapshotSpec(DataSource, SnapshotDialect) - Constructor for class io.agentscope.extensions.jdbc.snapshot.JdbcSnapshotSpec
Creates a snapshot spec with auto table creation.
JdbcSnapshotSpec(DataSource, SnapshotDialect, boolean) - Constructor for class io.agentscope.extensions.jdbc.snapshot.JdbcSnapshotSpec
Creates a snapshot spec with explicit table creation control.
JdbcStore - Class in io.agentscope.extensions.jdbc.store
JDBC-backed BaseStore with zero inline SQL — all database-specific SQL is delegated to StoreDialect.
JdbcStore.Builder - Class in io.agentscope.extensions.jdbc.store
Builder for JdbcStore.

K

keyPrefix(String) - Method in class io.agentscope.extensions.jdbc.sandbox.JdbcSandboxExecutionGuard.Builder
Sets a custom key prefix for the lock name.

L

listSessionIds(String) - Method in class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
 
lockTableName() - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
Lock table name, derived from the table prefix.
lockTimeout(Duration) - Method in class io.agentscope.extensions.jdbc.sandbox.JdbcSandboxExecutionGuard.Builder
Sets the lock timeout duration.

M

MysqlDialect - Class in io.agentscope.extensions.jdbc.dialect.vendor
MySQL / MariaDB dialect.
MysqlDialect() - Constructor for class io.agentscope.extensions.jdbc.dialect.vendor.MysqlDialect
 

O

objectMapper(ObjectMapper) - Method in class io.agentscope.extensions.jdbc.store.JdbcStore.Builder
Sets a custom Jackson ObjectMapper.

P

params() - Method in record class io.agentscope.extensions.jdbc.dialect.BoundSql
Returns the value of the params record component.
PostgresDialect - Class in io.agentscope.extensions.jdbc.dialect.vendor
PostgreSQL dialect — the ANSI baseline.
PostgresDialect() - Constructor for class io.agentscope.extensions.jdbc.dialect.vendor.PostgresDialect
 
put(List<String>, String, Map<String, Object>) - Method in class io.agentscope.extensions.jdbc.store.JdbcStore
 
putIfVersion(List<String>, String, Map<String, Object>, long) - Method in class io.agentscope.extensions.jdbc.store.JdbcStore
 

S

sandboxExecutionGuard() - Method in class io.agentscope.extensions.jdbc.JdbcDistributedStore
 
SandboxLockStrategy - Interface in io.agentscope.extensions.jdbc.dialect
Distributed lock contract implemented by AbstractJdbcDialect.
sandboxSnapshotSpec() - Method in class io.agentscope.extensions.jdbc.JdbcDistributedStore
 
save(String, String, String, State) - Method in class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
Saves a single value unconditionally.
save(String, String, String, List<? extends State>) - Method in class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
 
saveIfVersion(String, String, String, State, long) - Method in class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
Writes and obtains the assigned version in one database transaction.
search(List<String>, int, int) - Method in class io.agentscope.extensions.jdbc.store.JdbcStore
 
sessionStateCheckTableExists(String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
Table-existence probe SQL.
sessionStateCheckTableExists(String) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.H2Dialect
 
sessionStateCheckTableExists(String) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.MysqlDialect
 
sessionStateCheckTableExists(String) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.PostgresDialect
 
sessionStateCheckTableExists(String) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.SqliteDialect
 
sessionStateCreateTableDdls() - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
DDL statements (one or more) to create the sessions table.
sessionStateCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.H2Dialect
 
sessionStateCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.MysqlDialect
 
sessionStateCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.PostgresDialect
 
sessionStateCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.SqliteDialect
 
sessionStateDeleteByKey(String, String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
DELETE all items for a state key.
sessionStateDeleteSession(String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
DELETE an entire session.
SessionStateDialect - Interface in io.agentscope.extensions.jdbc.dialect.table
Table-domain dialect interface for the session-state table.
sessionStateExists(String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
Session-existence probe.
sessionStateInsert(String, String, int, String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
INSERT for list items (one row per element).
sessionStateInsertIfAbsent(String, String, int, String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
INSERT of a single state with version = 1.
sessionStateLikeEscapeChar() - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
sessionStateListSessionIds(String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
List distinct session IDs matching a prefix pattern.
sessionStateSelect(String, String, int) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
Single-state SELECT by item_index.
sessionStateSelectList(String, String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
Ordered list SELECT.
sessionStateSelectMaxIndex(String, String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
MAX(item_index) for change detection.
sessionStateSelectVersioned(String, String, int) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
Single-state SELECT with optimistic-concurrency version.
sessionStateTableName() - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
 
sessionStateTableName() - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
Base table name (without prefix).
sessionStateTableName(String) - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialectBuilder
Overrides the full session-state table name.
sessionStateUpdateIfVersion(String, String, int, String, long) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
Compare-and-swap UPDATE guarded by version == expectedVersion.
sessionStateUpsert(String, String, int, String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SessionStateDialect
UPSERT a single state value.
sessionStateUpsert(String, String, int, String) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.H2Dialect
 
sessionStateUpsert(String, String, int, String) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.MysqlDialect
 
sessionStateUpsert(String, String, int, String) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.PostgresDialect
 
sessionStateUpsert(String, String, int, String) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.SqliteDialect
 
snapshotCreateTableDdls() - Method in interface io.agentscope.extensions.jdbc.dialect.table.SnapshotDialect
DDL statements (one or more) to create the snapshots table.
snapshotCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.H2Dialect
 
snapshotCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.MysqlDialect
 
snapshotCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.PostgresDialect
 
snapshotCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.SqliteDialect
 
SnapshotDialect - Interface in io.agentscope.extensions.jdbc.dialect.table
Table-domain dialect interface for the snapshots table.
snapshotExists(String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SnapshotDialect
Snapshot existence probe.
snapshotSelect(String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SnapshotDialect
Single-snapshot SELECT.
snapshotTableName() - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
 
snapshotTableName() - Method in interface io.agentscope.extensions.jdbc.dialect.table.SnapshotDialect
Base table name (without prefix).
snapshotTableName(String) - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialectBuilder
Overrides the full snapshots table name.
snapshotUpsert(String, InputStream) - Method in interface io.agentscope.extensions.jdbc.dialect.table.SnapshotDialect
Idempotent UPSERT for uploading a snapshot.
snapshotUpsert(String, InputStream) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.H2Dialect
 
snapshotUpsert(String, InputStream) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.MysqlDialect
 
snapshotUpsert(String, InputStream) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.PostgresDialect
 
snapshotUpsert(String, InputStream) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.SqliteDialect
 
sql() - Method in record class io.agentscope.extensions.jdbc.dialect.BoundSql
Returns the value of the sql record component.
SqliteDialect - Class in io.agentscope.extensions.jdbc.dialect.vendor
SQLite dialect.
SqliteDialect() - Constructor for class io.agentscope.extensions.jdbc.dialect.vendor.SqliteDialect
 
storeCasUpdate(String, long, String, String, long) - Method in interface io.agentscope.extensions.jdbc.dialect.table.StoreDialect
Conditional UPDATE for CAS path.
storeCreateTableDdls() - Method in interface io.agentscope.extensions.jdbc.dialect.table.StoreDialect
DDL statements (one or more) to create the KV store table.
storeCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.H2Dialect
 
storeCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.MysqlDialect
 
storeCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.PostgresDialect
 
storeCreateTableDdls() - Method in class io.agentscope.extensions.jdbc.dialect.vendor.SqliteDialect
 
storeDelete(String, String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.StoreDialect
Single-item DELETE.
StoreDialect - Interface in io.agentscope.extensions.jdbc.dialect.table
Table-domain dialect interface for the KV store table.
storeInsert(String, String, String, long) - Method in interface io.agentscope.extensions.jdbc.dialect.table.StoreDialect
INSERT for create-only writes (version starts at 1).
storeLikeEscapeChar() - Method in interface io.agentscope.extensions.jdbc.dialect.table.StoreDialect
Escape character for LIKE patterns in StoreDialect.storeSearch(java.lang.String, int, int).
storeSearch(String, int, int) - Method in interface io.agentscope.extensions.jdbc.dialect.table.StoreDialect
Namespace-prefix search with pagination.
storeSelect(String, String) - Method in interface io.agentscope.extensions.jdbc.dialect.table.StoreDialect
Single-item SELECT.
storeTableName() - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
 
storeTableName() - Method in interface io.agentscope.extensions.jdbc.dialect.table.StoreDialect
Base table name (without prefix).
storeTableName(String) - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialectBuilder
Overrides the full KV store table name (takes priority over prefix + base).
storeUpsert(String, String, String, long) - Method in interface io.agentscope.extensions.jdbc.dialect.table.StoreDialect
UPSERT: insert new row with version=1 or update existing row with version+1.
storeUpsert(String, String, String, long) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.H2Dialect
 
storeUpsert(String, String, String, long) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.MysqlDialect
 
storeUpsert(String, String, String, long) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.PostgresDialect
 
storeUpsert(String, String, String, long) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.SqliteDialect
 
supports(DatabaseMetaData) - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
Whether this dialect supports the target database.
supports(DatabaseMetaData) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.H2Dialect
 
supports(DatabaseMetaData) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.MysqlDialect
 
supports(DatabaseMetaData) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.PostgresDialect
 
supports(DatabaseMetaData) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.SqliteDialect
 
supportsVersioning() - Method in class io.agentscope.extensions.jdbc.state.JdbcAgentStateStore
 

T

tablePrefix(String) - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialectBuilder
Sets the unified table prefix (default agentscope_).
toString() - Method in record class io.agentscope.extensions.jdbc.dialect.BoundSql
Returns a string representation of this record class.
tryEnter(SandboxIsolationKey) - Method in class io.agentscope.extensions.jdbc.sandbox.JdbcSandboxExecutionGuard
 
tryEnter(String, int) - Method in class io.agentscope.extensions.jdbc.dialect.AbstractJdbcDialect
 
tryEnter(String, int) - Method in interface io.agentscope.extensions.jdbc.dialect.SandboxLockStrategy
Acquires the named lock, blocking until available or timeout expires.
tryEnter(String, int) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.MysqlDialect
 
tryEnter(String, int) - Method in class io.agentscope.extensions.jdbc.dialect.vendor.PostgresDialect
 

U

upload(String, InputStream) - Method in class io.agentscope.extensions.jdbc.snapshot.JdbcRemoteSnapshotClient
 
A B C D E F G H I J K L M O P S T U 
All Classes and Interfaces|All Packages