A B C D F G H I M N O P R S T V

A

addEqualTo(String, Object) - Method in class uk.co.kimble.cobra.criteria.PersistentCriteria
Adds and equals (=) criteria, customer_id = 10034 Where Value is a string simple pattern matching can be used, the character * is a wildcard, e.g.
addGreaterThan(String, Object) - Method in class uk.co.kimble.cobra.criteria.PersistentCriteria
Adds Greater Than (>) criteria, customer_id > 10034
addLessThan(String, Object) - Method in class uk.co.kimble.cobra.criteria.PersistentCriteria
Adds Less Than (<) criteria, customer_id < 10034
addOrCriteria(PersistentCriteria) - Method in class uk.co.kimble.cobra.criteria.PersistentCriteria
ORs two sets of criteria together: active = true AND balance < 0 OR active = true AND overdraft = 0
asSQLClause(SelectionCriteria) - Method in class uk.co.kimble.cobra.SQLStatement
 
asSQLStatement(PersistentCriteria) - Method in class uk.co.kimble.cobra.SQLStatement
 
attribute - Variable in class uk.co.kimble.cobra.criteria.SelectionCriteria
 

B

begin() - Method in interface uk.co.kimble.cobra.rmi.Trans
 
begin() - Method in class uk.co.kimble.cobra.rmi.TransAdapter
 
begin() - Method in class uk.co.kimble.cobra.Trans
Start a new transaction, any old work is forgotten
begin() - Method in class uk.co.kimble.cobra.Transaction
Start a new transaction, any old work is forgotten
buildForCriteria(PersistentCriteria) - Method in class uk.co.kimble.cobra.SQLDeleteStatement
Build a delete statement based on some criteria.
buildForCriteria(PersistentCriteria) - Method in class uk.co.kimble.cobra.SQLStatement
Build an SQL statement for the object restricted by some criteria
buildForObject() - Method in class uk.co.kimble.cobra.SQLDeleteStatement
Build a delete statement for a single object, will use primary key(s)
buildForObject() - Method in class uk.co.kimble.cobra.SQLInsertStatement
Build an insert statement for the PersistentObject
buildForObject() - Method in class uk.co.kimble.cobra.SQLSelectStatement
 
buildForObject() - Method in class uk.co.kimble.cobra.SQLStatement
Every subclass must implement buildForObject, this method builds an SQL statment for the object as a string.
buildForObject() - Method in class uk.co.kimble.cobra.SQLUpdateStatement
 

C

class_dictionary - Variable in class uk.co.kimble.cobra.SQLStatement
 
close() - Method in class uk.co.kimble.cobra.PersistentSet
Frees up database resources at end of retrieve
close() - Method in interface uk.co.kimble.cobra.rmi.PersistentSet
 
close() - Method in class uk.co.kimble.cobra.rmi.PersistentSetAdapter
 
commit() - Method in interface uk.co.kimble.cobra.rmi.Trans
 
commit() - Method in class uk.co.kimble.cobra.rmi.Transaction
 
commit() - Method in class uk.co.kimble.cobra.rmi.TransAdapter
 
commit() - Method in class uk.co.kimble.cobra.Trans
Commit the unit of work, because COBRA can support multiple databases the semantics of a COBRA transaction differ slightly from an RDBMS transaction.
commit() - Method in class uk.co.kimble.cobra.Transaction
Commit the unit of work, because COBRA can support multiple databases the semantics of a COBRA transaction differ slightly from an RDBMS transaction.
ConnectionBroker - class uk.co.kimble.cobra.ConnectionBroker.
Singleton class, the init() method loads the data dictionary from the database.

D

DataDictionary - class uk.co.kimble.cobra.DataDictionary.
 
delete(PersistentObject) - Method in class uk.co.kimble.cobra.PersistentSource
Delete an PersistentObject from the persistence mechanism
delete(PersistentObject) - Method in interface uk.co.kimble.cobra.rmi.PersistentSource
 
delete(PersistentObject) - Method in class uk.co.kimble.cobra.rmi.PersistentSourceAdapter
Deletes an object from the persisent store, the object is identified by its primary key(s) values.
delete(PersistentObject) - Method in interface uk.co.kimble.cobra.rmi.Trans
 
delete(PersistentObject) - Method in class uk.co.kimble.cobra.rmi.TransAdapter
 
delete(PersistentObject) - Method in class uk.co.kimble.cobra.Trans
add an object to be deleted to the unit of work
delete(PersistentObject) - Method in class uk.co.kimble.cobra.Transaction
add an object to be deleted to the unit of work
delete(PersistentObject, PersistentCriteria) - Method in class uk.co.kimble.cobra.Transaction
add an object to be deleted to the unit of work
delete(String, PersistentCriteria) - Method in class uk.co.kimble.cobra.PersistentSource
Deletes a set (that is more than 1) of objects based on some criteria
delete(String, PersistentCriteria) - Method in interface uk.co.kimble.cobra.rmi.PersistentSource
 
delete(String, PersistentCriteria) - Method in class uk.co.kimble.cobra.rmi.PersistentSourceAdapter
Deletes aan object's attributes from a database table row, the database and table are located throught the data dictionary and the row is identified by the primary key(s).
delete(String, PersistentCriteria) - Method in interface uk.co.kimble.cobra.rmi.Trans
 
delete(String, PersistentCriteria) - Method in class uk.co.kimble.cobra.rmi.TransAdapter
 
delete(String, PersistentCriteria) - Method in class uk.co.kimble.cobra.Trans
add an object to be deleted to the unit of work

F

finalize() - Method in class uk.co.kimble.cobra.PersistentConnection
Cleanup
finalize() - Method in class uk.co.kimble.cobra.PersistentSet
If the set gets gc'd close the connection
fred() - Method in interface uk.co.kimble.cobra.rmi.PersistentObjectFactory
 
fred() - Method in class uk.co.kimble.cobra.rmi.PersistentObjectFactoryImpl
 

G

getAttribute() - Method in class uk.co.kimble.cobra.criteria.SelectionCriteria
 
getClassDictionary() - Method in class uk.co.kimble.cobra.SQLStatement
Return the class dictionary used by this SQL statement
getClassDictionary(String) - Method in class uk.co.kimble.cobra.DataDictionary
Returns a reference to the class dictionary for the given classname.
getClause() - Method in class uk.co.kimble.cobra.criteria.SelectionCriteria
 
getConnection(String) - Method in class uk.co.kimble.cobra.ConnectionBroker
Get a connection to the specified database
getConnectionBroker() - Static method in class uk.co.kimble.cobra.ConnectionBroker
Return the single instance of connection broker
getDataDictionary() - Static method in class uk.co.kimble.cobra.DataDictionary
Return the single instance of the data dictionary
getElements() - Method in class uk.co.kimble.cobra.criteria.PersistentCriteria
 
getName() - Method in class uk.co.kimble.cobra.PersistentObject
 
getO() - Method in class uk.co.kimble.cobra.criteria.SelectionCriteria
 
getOrderby() - Method in class uk.co.kimble.cobra.criteria.PersistentCriteria
 
getPersistentSource() - Method in interface uk.co.kimble.cobra.rmi.PersistentObjectFactory
 
getPersistentSource() - Method in class uk.co.kimble.cobra.rmi.PersistentObjectFactoryImpl
Returns an instance of a remote PersistentSource
getValue() - Method in class uk.co.kimble.cobra.criteria.SelectionCriteria
 

H

hasMoreObjects() - Method in class uk.co.kimble.cobra.PersistentSet
Used to enumerate a set of objects returned after a database query
hasMoreObjects() - Method in interface uk.co.kimble.cobra.rmi.PersistentSet
 
hasMoreObjects() - Method in class uk.co.kimble.cobra.rmi.PersistentSetAdapter
Used to enumerate a set of objects returned after a database query

I

init(PersistentConnection, String) - Static method in class uk.co.kimble.cobra.ConnectionBroker
Bootstrap method to initialise the ConnectionBroker
is_new - Variable in class uk.co.kimble.cobra.PersistentObject
 
is_proxy - Variable in class uk.co.kimble.cobra.PersistentObject
 

M

main(String[]) - Static method in class uk.co.kimble.cobra.rmi.PersistentObjectFactoryImpl
Called where COBRA used in n tier environment

N

name - Variable in class uk.co.kimble.cobra.PersistentObject
 
nextObject() - Method in class uk.co.kimble.cobra.PersistentSet
Return the next object in a set
nextObject() - Method in interface uk.co.kimble.cobra.rmi.PersistentSet
 
nextObject() - Method in class uk.co.kimble.cobra.rmi.PersistentSetAdapter
 

O

orderBy(String) - Method in class uk.co.kimble.cobra.criteria.PersistentCriteria
ORs two sets of criteria together: active = true AND balance < 0 OR active = true AND overdraft = 0

P

PersistentConnection - class uk.co.kimble.cobra.PersistentConnection.
Represents a connection to the database
PersistentConnection(String, String, String, String) - Constructor for class uk.co.kimble.cobra.PersistentConnection
Alternative constructor without specifying COBRA database name
PersistentConnection(String, String, String, String, String) - Constructor for class uk.co.kimble.cobra.PersistentConnection
Constructor, needs information to make a JDBC connection to the database
PersistentCriteria - class uk.co.kimble.cobra.criteria.PersistentCriteria.
Persistent Criteria can be used to retrieve sets of objects based on their attributes Normally each attribute is ANDed together, an OR can be performed by creating a new PersistentCriteria and adding it.
PersistentCriteria() - Constructor for class uk.co.kimble.cobra.criteria.PersistentCriteria
 
PersistentException - exception uk.co.kimble.cobra.PersistentException.
The only exception type thrown by COBRA is PersistentException
PersistentException() - Constructor for class uk.co.kimble.cobra.PersistentException
Constructs an exception without cause or reason.
PersistentException(Exception) - Constructor for class uk.co.kimble.cobra.PersistentException
Constructs a new exception caused by the specified exception.
PersistentException(String) - Constructor for class uk.co.kimble.cobra.PersistentException
Constructs a new exception for the specified reason.
PersistentObject - class uk.co.kimble.cobra.PersistentObject.
A persistent object can be saved, retrieved and deleted from the backing store.
PersistentObject - class uk.co.kimble.cobra.rmi.PersistentObject.
Remote PersistentObject Makes a local PersistentObject serializable
PersistentObject() - Constructor for class uk.co.kimble.cobra.PersistentObject
Basic constructor
PersistentObject() - Constructor for class uk.co.kimble.cobra.rmi.PersistentObject
 
PersistentObjectFactory - interface uk.co.kimble.cobra.rmi.PersistentObjectFactory.
 
PersistentObjectFactoryImpl - class uk.co.kimble.cobra.rmi.PersistentObjectFactoryImpl.
Implements the factory pattern, enables remote clients to create objects
PersistentObjectFactoryImpl(String) - Constructor for class uk.co.kimble.cobra.rmi.PersistentObjectFactoryImpl
Constructor, initialises RMI middle tier
PersistentSet - class uk.co.kimble.cobra.PersistentSet.
Represents a set of objects retrieved from the database
PersistentSet - interface uk.co.kimble.cobra.rmi.PersistentSet.
Interface defining the remote functions available to Persistent Set
PersistentSet(String) - Constructor for class uk.co.kimble.cobra.PersistentSet
Constructor
PersistentSetAdapter - class uk.co.kimble.cobra.rmi.PersistentSetAdapter.
Adapts a local PersistentSet to the remote inteface
PersistentSetAdapter(PersistentSet) - Constructor for class uk.co.kimble.cobra.rmi.PersistentSetAdapter
Object contruction
PersistentSource - class uk.co.kimble.cobra.PersistentSource.
A PersistentSource gives a user access to the underlying persistence mechanism.
PersistentSource - interface uk.co.kimble.cobra.rmi.PersistentSource.
Interface defines the remote functions available to PersistentSource
PersistentSource() - Constructor for class uk.co.kimble.cobra.PersistentSource
Constructor
PersistentSourceAdapter - class uk.co.kimble.cobra.rmi.PersistentSourceAdapter.
Adapts a local PersistentSource to the remote inteface
PersistentSourceAdapter() - Constructor for class uk.co.kimble.cobra.rmi.PersistentSourceAdapter
Object construction
printDatabases() - Method in class uk.co.kimble.cobra.ConnectionBroker
Debug method to print out the available databases

R

releaseConnection(PersistentConnection) - Method in class uk.co.kimble.cobra.ConnectionBroker
Release a database connection, frees for reuse
retrieve(PersistentObject) - Method in class uk.co.kimble.cobra.PersistentSource
Retrieves an object's attributes from a database table row, the database and table are located throught the data dictionary and the row is identified by the primary key(s).
retrieve(PersistentObject) - Method in interface uk.co.kimble.cobra.rmi.PersistentSource
 
retrieve(PersistentObject) - Method in class uk.co.kimble.cobra.rmi.PersistentSourceAdapter
Retrieves an object's attributes from a database table row, the database and table are located throught the data dictionary and the row is identified by the primary key(s).
retrieve(String) - Method in class uk.co.kimble.cobra.PersistentSource
Retrieves a set (that is more than 1) of objects based on some criteria
retrieve(String, PersistentCriteria) - Method in class uk.co.kimble.cobra.PersistentSource
Retrieves a set (that is more than 1) of objects based on some criteria
retrieve(String, PersistentCriteria) - Method in interface uk.co.kimble.cobra.rmi.PersistentSource
 
retrieve(String, PersistentCriteria) - Method in class uk.co.kimble.cobra.rmi.PersistentSourceAdapter
 

S

save(PersistentObject) - Method in class uk.co.kimble.cobra.PersistentSource
Saves a persistent_object to the store.
save(PersistentObject) - Method in interface uk.co.kimble.cobra.rmi.PersistentSource
 
save(PersistentObject) - Method in class uk.co.kimble.cobra.rmi.PersistentSourceAdapter
Saves an object from the persisent store, the object is identified by its primary key(s) values.
save(PersistentObject) - Method in interface uk.co.kimble.cobra.rmi.Trans
 
save(PersistentObject) - Method in class uk.co.kimble.cobra.rmi.TransAdapter
 
save(PersistentObject) - Method in class uk.co.kimble.cobra.Trans
add an object to be saved (inserted or updated) to the unit of work for the database
save(PersistentObject) - Method in class uk.co.kimble.cobra.Transaction
add an object to be saved (inserted or updated) to the unit of work for the database
SelectionCriteria - class uk.co.kimble.cobra.criteria.SelectionCriteria.
Superclass of all criteria classes, can't be instantiated.
setKeyValues(PreparedStatement, PersistentObject) - Method in class uk.co.kimble.cobra.SQLStatement
Set the primary key values in a prepared statement from the values in the corresponding persistent object attributed.
setValues(PreparedStatement, PersistentCriteria) - Method in class uk.co.kimble.cobra.SQLStatement
 
sql - Variable in class uk.co.kimble.cobra.SQLStatement
 
SQLDeleteStatement - class uk.co.kimble.cobra.SQLDeleteStatement.
Constructs delete statements from primary key values in the object or from criteria
SQLDeleteStatement(ClassDictionary) - Constructor for class uk.co.kimble.cobra.SQLDeleteStatement
Construct a basic SQL Delete string
SQLInsertStatement - class uk.co.kimble.cobra.SQLInsertStatement.
Insert Statement: INSERT INTO table VALUES (value1, value2...
SQLInsertStatement(ClassDictionary) - Constructor for class uk.co.kimble.cobra.SQLInsertStatement
Build an Insert statement to retrieve a single instance of the object based on the primary keys
SQLSelectStatement - class uk.co.kimble.cobra.SQLSelectStatement.
Builds SQL Select Statements for an object
SQLSelectStatement(ClassDictionary) - Constructor for class uk.co.kimble.cobra.SQLSelectStatement
Build a Select statement to retrieve a single instance of the object based on the primary keys
SQLStatement - class uk.co.kimble.cobra.SQLStatement.
All statements are versions of SQLStatement.
SQLStatement(ClassDictionary) - Constructor for class uk.co.kimble.cobra.SQLStatement
Constructor
SQLUpdateStatement - class uk.co.kimble.cobra.SQLUpdateStatement.
 
SQLUpdateStatement(ClassDictionary) - Constructor for class uk.co.kimble.cobra.SQLUpdateStatement
Build an Insert statement to retrieve a single instance of the object based on the primary keys

T

toString() - Method in class uk.co.kimble.cobra.criteria.PersistentCriteria
 
toString() - Method in class uk.co.kimble.cobra.criteria.SelectionCriteria
 
toString() - Method in class uk.co.kimble.cobra.rmi.PersistentObject
 
Trans - interface uk.co.kimble.cobra.rmi.Trans.
Interface defines the remote functions available to PersistentSource
Trans - class uk.co.kimble.cobra.Trans.
The Transaction class enables a set of operations on objects to be grouped into a single operation that will succeed or fail as a whole.
Trans() - Constructor for class uk.co.kimble.cobra.Trans
Constructor
Transaction - class uk.co.kimble.cobra.rmi.Transaction.
 
Transaction - class uk.co.kimble.cobra.Transaction.
The Transaction class enables a set of operations on objects to be grouped into a single operation that will succeed or fail as a whole.
Transaction() - Constructor for class uk.co.kimble.cobra.rmi.Transaction
 
Transaction() - Constructor for class uk.co.kimble.cobra.Transaction
Constructor
TransAdapter - class uk.co.kimble.cobra.rmi.TransAdapter.
 
TransAdapter() - Constructor for class uk.co.kimble.cobra.rmi.TransAdapter
 

V

value - Variable in class uk.co.kimble.cobra.criteria.SelectionCriteria
 

A B C D F G H I M N O P R S T V