Package | Description |
---|---|
net.aditsu.depeche |
Modifier and Type | Method and Description |
---|---|
Record |
Record.copy()
Returns a copy of this record, which can be modified independently
|
Record |
BaseQuery.get(int index) |
Record |
IQuery.getOneRecord()
Runs this query as a SELECT (if needed) and returns a single record;
it throws an exception if the number of results is not 1
|
Record |
BaseQuery.getOneRecord() |
Record |
SQLQuery.getOneRecord(Conn conn)
Runs this query as a SELECT (if needed) using the given connection and returns a single record;
it throws an exception if the number of results is not 1
|
Record |
IQuery.getRecord()
Runs this query as a SELECT (if needed) and returns a single record, or null if there are no results;
it throws an exception if there are multiple results
|
Record |
BaseQuery.getRecord() |
Record |
SQLQuery.getRecord(Conn conn)
Runs this query as a SELECT (if needed) using the given connection and returns a single record, or null if there are no results;
it throws an exception if there are multiple results
|
Record |
Provider.getRecord(String table,
Conn conn,
List<Serializable> values)
Returns a single record (or null if not found) given its table and primary key values,
using a given connection
|
Record |
Provider.getRecord(String table,
Conn conn,
Serializable... values)
Returns a single record (or null if not found) given its table and primary key values,
using a given connection
|
Record |
Provider.getRecord(String table,
List<Serializable> values)
Returns a single record (or null if not found) given its table and primary key values
|
Record |
Provider.getRecord(String table,
Serializable... values)
Returns a single record (or null if not found) given its table and primary key values
|
Record |
Provider.getRecord(Table table,
List<Serializable> values)
Deprecated.
|
Record |
Provider.getRecord(Table table,
Serializable... values)
Deprecated.
|
Record |
Provider.newRecord(ColumnInfo colInfo)
Creates a new record using given column information
|
Record |
Provider.newRecord(String table)
Creates a new record for a given table
|
Record |
Provider.newRecord(String table,
Conn conn)
Creates a new record for a given table, using the given connection if needed
|
Modifier and Type | Method and Description |
---|---|
List<Record> |
Provider.getGenericTableDetails(String catalog,
String schemaPattern,
String tableNamePattern,
String... types)
Returns a detailed list of table-like objects in this provider's database, matching the given criteria
|
Modifier and Type | Method and Description |
---|---|
Query |
Query.filter(Record rec,
KeyInfo cols) |
LocalQuery |
LocalQuery.filter(Record rec,
KeyInfo cols) |
DynamicQuery |
DynamicQuery.filter(Record rec,
KeyInfo cols)
Adds a condition to match a list of columns with a list of corresponding values from a Record,
and returns a new query
|
Query |
Query.filter(Record rec,
String... cols) |
LocalQuery |
LocalQuery.filter(Record rec,
String... cols) |
DynamicQuery |
DynamicQuery.filter(Record rec,
String... cols)
Adds a condition to match a list of columns with a list of corresponding values from a Record,
and returns a new query
|
Key |
KeyInfo.getKey(Record rec)
Returns the values corresponding to this key info in the given record,
or a list of null values if the record is null
|
Query |
Provider.query(Record rec)
Creates a new query that matches a given record
|
void |
Record.setParent(FKey fkey,
Record rec)
Sets the parent record linked from this one through a foreign key
|
void |
Record.setParent(String name,
Record rec)
Sets the parent record linked from this one through a foreign key
|
void |
Record.setParentFrom(String table,
Record rec)
Sets the parent record from a given table, linked from this one through a foreign key
|
Boolean |
InFilterCondition.test(Record r) |
Boolean |
FilterCondition.test(Record r) |
Boolean |
KeyFilterCondition.test(Record r) |
abstract Boolean |
Condition.test(Record r) |
Modifier and Type | Method and Description |
---|---|
void |
Provider.batchInsert(Conn conn,
String table,
List<Record> records)
Inserts a list of records into a table, in a single batch, using a given connection
|
void |
Provider.batchInsert(String table,
List<Record> records)
Inserts a list of records into a table, in a single batch, using a new connection
|
Constructor and Description |
---|
LocalQuery(List<Record> l) |