Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AbstractBuilder(String) - Constructor for class is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder
- AbstractEntityConnectionProvider - Class in is.codion.framework.db
-
An abstract EntityConnectionProvider implementation.
- AbstractEntityConnectionProvider(AbstractEntityConnectionProvider.AbstractBuilder<?, ?>) - Constructor for class is.codion.framework.db.AbstractEntityConnectionProvider
- AbstractEntityConnectionProvider.AbstractBuilder<T extends EntityConnectionProvider,
B extends EntityConnectionProvider.Builder<T, B>> - Class in is.codion.framework.db - addOnConnectListener(Consumer<EntityConnection>) - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- addOnConnectListener(Consumer<EntityConnection>) - Method in interface is.codion.framework.db.EntityConnectionProvider
-
Adds a listener notified each time this connection provider establishes a connection to the database
- all(EntityType) - Static method in interface is.codion.framework.db.EntityConnection.Count
- all(EntityType) - Static method in interface is.codion.framework.db.EntityConnection.Select
- all(EntityType) - Static method in interface is.codion.framework.db.EntityConnection.Update
- attributes() - Method in interface is.codion.framework.db.EntityConnection.Select
- attributes(Collection<? extends Attribute<?>>) - Method in interface is.codion.framework.db.EntityConnection.Select.Builder
-
Sets the attributes to include in the query result.
- attributes(T...) - Method in interface is.codion.framework.db.EntityConnection.Select.Builder
-
Sets the attributes to include in the query result.
B
- batchSize(int) - Method in interface is.codion.framework.db.EntityConnection.Copy.Builder
- batchSize(int) - Method in interface is.codion.framework.db.EntityConnection.Insert.Builder
- beginTransaction() - Method in interface is.codion.framework.db.EntityConnection
-
Begins a transaction on this connection
- build() - Method in interface is.codion.framework.db.EntityConnection.Copy.Builder
- build() - Method in interface is.codion.framework.db.EntityConnection.Count.Builder
- build() - Method in interface is.codion.framework.db.EntityConnection.Insert.Builder
- build() - Method in interface is.codion.framework.db.EntityConnection.Select.Builder
- build() - Method in interface is.codion.framework.db.EntityConnection.Update.Builder
- build() - Method in interface is.codion.framework.db.EntityConnectionProvider.Builder
-
Builds a
EntityConnectionProviderinstance based on this builder - builder() - Static method in interface is.codion.framework.db.EntityConnectionProvider
- builder(Condition) - Static method in interface is.codion.framework.db.EntityConnection.Count
C
- CLIENT_CONNECTION_TYPE - Static variable in interface is.codion.framework.db.EntityConnectionProvider
-
Specifies whether the client should connect locally, via rmi or http, accepted values: local, remote, http
Value type: String
Default value:EntityConnectionProvider.CONNECTION_TYPE_LOCAL - CLIENT_DOMAIN_TYPE - Static variable in interface is.codion.framework.db.EntityConnectionProvider
-
Specifies the domain type required for a client connection.
Value type: is.codion.framework.domain.DomainType
Default value: null - clientId() - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- clientId() - Method in interface is.codion.framework.db.EntityConnectionProvider
- clientId(UUID) - Method in class is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder
- clientId(UUID) - Method in interface is.codion.framework.db.EntityConnectionProvider.Builder
- clientTypeId() - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- clientTypeId() - Method in interface is.codion.framework.db.EntityConnectionProvider
- clientTypeId(String) - Method in class is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder
- clientTypeId(String) - Method in interface is.codion.framework.db.EntityConnectionProvider.Builder
- clientVersion() - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- clientVersion() - Method in interface is.codion.framework.db.EntityConnectionProvider
- clientVersion(Version) - Method in class is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder
- clientVersion(Version) - Method in interface is.codion.framework.db.EntityConnectionProvider.Builder
- close() - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- close() - Method in interface is.codion.framework.db.EntityConnection
-
Performs a rollback and disconnects this connection
- close() - Method in interface is.codion.framework.db.EntityConnectionProvider
-
Closes the underlying connection and performs cleanup if required
- close(EntityConnection) - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
-
Closes the given connection
- columnValues() - Method in interface is.codion.framework.db.EntityConnection.Update
- commitTransaction() - Method in interface is.codion.framework.db.EntityConnection
-
Performs a commit and ends the current transaction
- condition(Condition) - Method in interface is.codion.framework.db.EntityConnection.Copy.Builder
-
Specifies a condition to use when determining which entities of the given type to copy, if none is specified all entities are copied.
- connect() - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- connected() - Method in interface is.codion.framework.db.EntityConnection
- connection() - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- connection() - Method in interface is.codion.framework.db.EntityConnectionProvider
-
Provides a EntityConnection object, is responsible for returning a healthy EntityConnection object, that is, it must reconnect an invalid connection whether remotely or locally
- CONNECTION_TYPE_HTTP - Static variable in interface is.codion.framework.db.EntityConnectionProvider
-
Indicates a http database connection
- CONNECTION_TYPE_LOCAL - Static variable in interface is.codion.framework.db.EntityConnectionProvider
-
Indicates a local database connection
- CONNECTION_TYPE_REMOTE - Static variable in interface is.codion.framework.db.EntityConnectionProvider
-
Indicates a remote database connection
- connectionType() - Method in class is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder
- connectionType() - Method in interface is.codion.framework.db.EntityConnectionProvider.Builder
-
Returns a String specifying the type of connection provided by this connection provider builder
- connectionType() - Method in interface is.codion.framework.db.EntityConnectionProvider
-
Returns a String specifying the type of connection provided by this connection provider
- connectionValid() - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- connectionValid() - Method in interface is.codion.framework.db.EntityConnectionProvider
- copyEntities(EntityConnection, EntityConnection) - Static method in interface is.codion.framework.db.EntityConnection
-
Creates a new
EntityConnection.Copy.Builderinstance for copying entities from source to destination, with a default batch size of 100. - count(EntityConnection.Count) - Method in interface is.codion.framework.db.EntityConnection
-
Counts the number of rows returned based on the given count conditions
D
- DEFAULT_QUERY_TIMEOUT_SECONDS - Static variable in interface is.codion.framework.db.EntityConnection
- delete(Condition) - Method in interface is.codion.framework.db.EntityConnection
-
Deletes the entities specified by the given condition.
- delete(Entity.Key) - Method in interface is.codion.framework.db.EntityConnection
-
Deletes the entity with the given primary key.
- delete(Collection<Entity.Key>) - Method in interface is.codion.framework.db.EntityConnection
-
Deletes the entities with the given primary keys.
- dependencies(Collection<? extends Entity>) - Method in interface is.codion.framework.db.EntityConnection
-
Selects the entities that depend on the given entities via (non-soft) foreign keys, mapped to corresponding entityTypes
- description() - Method in interface is.codion.framework.db.EntityConnectionProvider
- domainType() - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- domainType() - Method in interface is.codion.framework.db.EntityConnectionProvider
- domainType(DomainType) - Method in class is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder
- domainType(DomainType) - Method in interface is.codion.framework.db.EntityConnectionProvider.Builder
E
- entities() - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- entities() - Method in interface is.codion.framework.db.EntityConnection
- entities() - Method in interface is.codion.framework.db.EntityConnectionProvider
-
Returns the domain entities this connection is based on
- EntityConnection - Interface in is.codion.framework.db
-
A connection to a database, for querying and manipulating
Entitys and running database operations specified by a singleDomainmodel. - EntityConnection.Copy - Interface in is.codion.framework.db
-
Copies a set of entities between a source and destination connection, performing a commit after each
batchSizenumber of inserts, unless the destination connection has an open transaction. - EntityConnection.Copy.Builder - Interface in is.codion.framework.db
-
A builder for a
EntityConnection.Copyoperation. - EntityConnection.Count - Interface in is.codion.framework.db
-
A class encapsulating count query parameters.
- EntityConnection.Count.Builder - Interface in is.codion.framework.db
-
Builds a
EntityConnection.Copyinstance. - EntityConnection.Insert - Interface in is.codion.framework.db
-
Inserts entities in batches, performing a commit after each
batchSizenumber of inserts, unless the destination connection has an open transaction. - EntityConnection.Insert.Builder - Interface in is.codion.framework.db
-
A builder for
EntityConnection.Insertoperation. - EntityConnection.Select - Interface in is.codion.framework.db
-
A class encapsulating select query parameters.
- EntityConnection.Select.Builder - Interface in is.codion.framework.db
-
Builds a
EntityConnection.Select. - EntityConnection.Update - Interface in is.codion.framework.db
-
A class encapsulating a where clause along with columns and their associated values for update.
- EntityConnection.Update.Builder - Interface in is.codion.framework.db
-
Builds an
EntityConnection.Update. - EntityConnectionProvider - Interface in is.codion.framework.db
-
Specifies a class responsible for providing a single
EntityConnectioninstance. - EntityConnectionProvider.Builder<T extends EntityConnectionProvider,
B extends EntityConnectionProvider.Builder<T, B>> - Interface in is.codion.framework.db -
Builds a
EntityConnectionProviderinstances - entityTypes(EntityType...) - Method in interface is.codion.framework.db.EntityConnection.Copy.Builder
- execute() - Method in interface is.codion.framework.db.EntityConnection.Copy.Builder
-
Builds and executes this copy operation
- execute() - Method in interface is.codion.framework.db.EntityConnection.Copy
-
Executes this copy operation
- execute() - Method in interface is.codion.framework.db.EntityConnection.Insert.Builder
-
Builds and executes this insert operation
- execute() - Method in interface is.codion.framework.db.EntityConnection.Insert
-
Executes this batch insert
- execute(FunctionType<C, T, R>) - Method in interface is.codion.framework.db.EntityConnection
-
Executes the function with the given type with no arguments
- execute(FunctionType<C, T, R>, T) - Method in interface is.codion.framework.db.EntityConnection
-
Executes the function with the given type
- execute(ProcedureType<C, T>) - Method in interface is.codion.framework.db.EntityConnection
-
Executes the procedure with the given type with no arguments
- execute(ProcedureType<C, T>, T) - Method in interface is.codion.framework.db.EntityConnection
-
Executes the procedure with the given type
F
- fetchDepth() - Method in interface is.codion.framework.db.EntityConnection.Select
- fetchDepth(int) - Method in interface is.codion.framework.db.EntityConnection.Select.Builder
-
Limit the levels of foreign keys to fetch
- fetchDepth(ForeignKey) - Method in interface is.codion.framework.db.EntityConnection.Select
-
Returns the number of levels of foreign key values to fetch, with 0 meaning no referenced entities should be fetched, -1 no limit and an empty Optional if unspecified (use default).
- fetchDepth(ForeignKey, int) - Method in interface is.codion.framework.db.EntityConnection.Select.Builder
-
Limit the levels of foreign keys to fetch via the given foreign key
- foreignKeyFetchDepths() - Method in interface is.codion.framework.db.EntityConnection.Select
-
Returns a map containing the number of levels of foreign key values to fetch per foreign key, with 0 meaning no referenced entities should be fetched, -1 no limit.
- forUpdate() - Method in interface is.codion.framework.db.EntityConnection.Select.Builder
-
Marks Select instance as a for update query, this means the resulting rows will be locked by the given connection until unlocked by running another (non select for update) query on the same connection or performing an update.
- forUpdate() - Method in interface is.codion.framework.db.EntityConnection.Select
H
- having() - Method in interface is.codion.framework.db.EntityConnection.Count
- having() - Method in interface is.codion.framework.db.EntityConnection.Select
- having(Condition) - Method in interface is.codion.framework.db.EntityConnection.Count.Builder
- having(Condition) - Static method in interface is.codion.framework.db.EntityConnection.Count
- having(Condition) - Method in interface is.codion.framework.db.EntityConnection.Select.Builder
-
The HAVING condition.
I
- includePrimaryKeys(boolean) - Method in interface is.codion.framework.db.EntityConnection.Copy.Builder
- insert(Entity) - Method in interface is.codion.framework.db.EntityConnection
-
Inserts the given entity, returning the primary key.
- insert(Collection<? extends Entity>) - Method in interface is.codion.framework.db.EntityConnection
-
Inserts the given entities, returning the primary keys.
- insertEntities(EntityConnection, Iterator<Entity>) - Static method in interface is.codion.framework.db.EntityConnection
-
Creates a new
EntityConnection.Insertinstance the given entities, with a default batch size of 100. - insertSelect(Entity) - Method in interface is.codion.framework.db.EntityConnection
-
Inserts the given entity, returning the inserted entity.
- insertSelect(Collection<? extends Entity>) - Method in interface is.codion.framework.db.EntityConnection
-
Inserts the given entities, returning the inserted entities.
- is.codion.framework.db - package is.codion.framework.db
-
Package configuration values:
EntityConnectionProvider.CLIENT_DOMAIN_TYPE
EntityConnectionProvider.CLIENT_CONNECTION_TYPE - is.codion.framework.db.core - module is.codion.framework.db.core
- isQueryCacheEnabled() - Method in interface is.codion.framework.db.EntityConnection
L
- limit() - Method in interface is.codion.framework.db.EntityConnection.Select
- limit(int) - Method in interface is.codion.framework.db.EntityConnection.Select.Builder
O
- offset() - Method in interface is.codion.framework.db.EntityConnection.Select
- offset(int) - Method in interface is.codion.framework.db.EntityConnection.Select.Builder
- onClose(Consumer<EntityConnectionProvider>) - Method in class is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder
- onClose(Consumer<EntityConnectionProvider>) - Method in interface is.codion.framework.db.EntityConnectionProvider.Builder
- onInsert(Consumer<Collection<Entity.Key>>) - Method in interface is.codion.framework.db.EntityConnection.Insert.Builder
- orderBy() - Method in interface is.codion.framework.db.EntityConnection.Select
- orderBy(OrderBy) - Method in interface is.codion.framework.db.EntityConnection.Select.Builder
-
Sets the OrderBy for this condition
P
- progressReporter(Consumer<Integer>) - Method in interface is.codion.framework.db.EntityConnection.Insert.Builder
Q
- queryTimeout() - Method in interface is.codion.framework.db.EntityConnection.Select
- queryTimeout(int) - Method in interface is.codion.framework.db.EntityConnection.Select.Builder
R
- removeOnConnectListener(Consumer<EntityConnection>) - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- removeOnConnectListener(Consumer<EntityConnection>) - Method in interface is.codion.framework.db.EntityConnectionProvider
-
Removes the given listener
- report(ReportType<T, R, P>, P) - Method in interface is.codion.framework.db.EntityConnection
-
Takes a ReportType object using a JDBC datasource and returns an initialized report result object
- rollbackTransaction() - Method in interface is.codion.framework.db.EntityConnection
-
Performs a rollback and ends the current transaction
S
- select(EntityConnection.Select) - Method in interface is.codion.framework.db.EntityConnection
-
Selects entities based on the given select
- select(Column<T>) - Method in interface is.codion.framework.db.EntityConnection
-
Selects ordered and distinct non-null values of the given column.
- select(Column<T>, EntityConnection.Select) - Method in interface is.codion.framework.db.EntityConnection
-
Selects distinct non-null values of the given column.
- select(Column<T>, Condition) - Method in interface is.codion.framework.db.EntityConnection
-
Selects distinct non-null values of the given column.
- select(Condition) - Method in interface is.codion.framework.db.EntityConnection
-
Selects entities based on the given condition
- select(Entity.Key) - Method in interface is.codion.framework.db.EntityConnection
-
Selects an entity by key
- select(Collection<Entity.Key>) - Method in interface is.codion.framework.db.EntityConnection
-
Selects entities based on the given
keys - selectSingle(EntityConnection.Select) - Method in interface is.codion.framework.db.EntityConnection
-
Selects a single entity based on the specified select
- selectSingle(Condition) - Method in interface is.codion.framework.db.EntityConnection
-
Selects a single entity based on the specified condition
- set(Column<?>, T) - Method in interface is.codion.framework.db.EntityConnection.Update.Builder
-
Adds a column value to update
- setQueryCacheEnabled(boolean) - Method in interface is.codion.framework.db.EntityConnection
-
Controls the enabled state of the query result cache.
T
- transactionOpen() - Method in interface is.codion.framework.db.EntityConnection
U
- update(EntityConnection.Update) - Method in interface is.codion.framework.db.EntityConnection
-
Performs an update based on the given update, updating the columns found in the
EntityConnection.Update.columnValues()map, with the associated values. - update(Entity) - Method in interface is.codion.framework.db.EntityConnection
-
Updates the given entity based on its attribute values.
- update(Collection<? extends Entity>) - Method in interface is.codion.framework.db.EntityConnection
-
Updates the given entities based on their attribute values.
- updateSelect(Entity) - Method in interface is.codion.framework.db.EntityConnection
-
Updates the given entity based on its attribute values.
- updateSelect(Collection<? extends Entity>) - Method in interface is.codion.framework.db.EntityConnection
-
Updates the given entities based on their attribute values.
- user() - Method in class is.codion.framework.db.AbstractEntityConnectionProvider
- user() - Method in interface is.codion.framework.db.EntityConnection
- user() - Method in interface is.codion.framework.db.EntityConnectionProvider
- user(User) - Method in class is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder
- user(User) - Method in interface is.codion.framework.db.EntityConnectionProvider.Builder
W
- where() - Method in interface is.codion.framework.db.EntityConnection.Count
- where() - Method in interface is.codion.framework.db.EntityConnection.Select
- where() - Method in interface is.codion.framework.db.EntityConnection.Update
- where(Condition) - Static method in interface is.codion.framework.db.EntityConnection.Count
- where(Condition) - Static method in interface is.codion.framework.db.EntityConnection.Select
- where(Condition) - Static method in interface is.codion.framework.db.EntityConnection.Update
All Classes and Interfaces|All Packages|Constant Field Values