A B C D E F G H I L M N O P R S T U

A

addCondition(String, Object) - Method in class org.brains2b.data.Condition
Adds a single statement to a condition of type identifier equals value
addCondition(String, int) - Method in class org.brains2b.data.Condition
Adds a single statement to a condition of type identifier equals value
addCondition(String, long) - Method in class org.brains2b.data.Condition
Adds a single statement to a condition of type identifier equals value
addCondition(String, Object) - Method in class org.brains2b.data.sql.SqlCondition
Implementation of addCondition which checks for null values and makes them absolute so the condition will have a condition FIELD IS NULL in the query.
addOrderBy(String) - Method in class org.brains2b.data.Condition
Adds a sort order to the condition.
addOrderBy(String, boolean) - Method in class org.brains2b.data.sql.SqlCondition
adds an Order By statement with the option to sort it descending
addParameter(int, int) - Method in class org.brains2b.data.sql.cursor.SqlCursor
adds a integer value for the given placeholder position in the prepared statement.
addParameter(int, long) - Method in class org.brains2b.data.sql.cursor.SqlCursor
 
addParameter(int, double) - Method in class org.brains2b.data.sql.cursor.SqlCursor
 
addParameter(int, Object) - Method in class org.brains2b.data.sql.cursor.SqlCursor
adds a value for the given placeholder position in the prepared statement.
addParameter(int, Object) - Method in class org.brains2b.data.sql.SqlCondition
adds a value for the given placeholder position in the prepared statement.
addParameter(int, int) - Method in class org.brains2b.data.sql.SqlCondition
adds a integer value for the given placeholder position in the prepared statement.

B

BlobImpl - Class in org.brains2b.data.sql.lob
Implementation of Blob to access Blob's independently of the underlying database
BlobImpl() - Constructor for class org.brains2b.data.sql.lob.BlobImpl
 
BlobImpl(Blob) - Constructor for class org.brains2b.data.sql.lob.BlobImpl
 

C

clearOrderBy() - Method in class org.brains2b.data.Condition
removes previously set sort order.
ClobImpl - Class in org.brains2b.data.sql.lob
Implementation of Clob to access Clob's independently of the underlying database
ClobImpl() - Constructor for class org.brains2b.data.sql.lob.ClobImpl
 
ClobImpl(Clob) - Constructor for class org.brains2b.data.sql.lob.ClobImpl
 
clone() - Method in class org.brains2b.data.cursor.CursorData
clone will copy the column definitions, but will not clone the values set for this CursorData.
cloneAll() - Method in class org.brains2b.data.cursor.CursorData
clone will copy the column definitions including the values
Condition - Class in org.brains2b.data
Abstract class defining a condition on a datastore.
Condition() - Constructor for class org.brains2b.data.Condition
Default Constructor
Condition(String) - Constructor for class org.brains2b.data.Condition
Create a new Condition.
Condition(String, Object) - Constructor for class org.brains2b.data.Condition
Create new Condition
Condition(String, Object, String) - Constructor for class org.brains2b.data.Condition
Creates new Condition initialized with both an condition and a sort order.
ConnectedStream - Class in org.brains2b.data.sql.lob
Implementation of Stream for database streams that are connected to the stream in the database
ConnectedStream() - Constructor for class org.brains2b.data.sql.lob.ConnectedStream
 
ConnectedStream(InputStream) - Constructor for class org.brains2b.data.sql.lob.ConnectedStream
 
copyDataObject(Object, Object) - Static method in class org.brains2b.data.DataHelper
copy the content of one data object to another.
copyDataObject(CursorData, Object) - Static method in class org.brains2b.data.DataHelper
 
CopyException - Exception in org.brains2b.data
Exception used when copying data from one data object to another.
CopyException() - Constructor for exception org.brains2b.data.CopyException
Constructor
CopyException(String) - Constructor for exception org.brains2b.data.CopyException
Constructor
createBlob() - Static method in class org.brains2b.data.sql.lob.LobHelper
create a new empty Blob
createBlob(Blob) - Static method in class org.brains2b.data.sql.lob.LobHelper
create a wrapper around an existing Blob
createClob() - Static method in class org.brains2b.data.sql.lob.LobHelper
create a new empty Clob
createClob(Clob) - Static method in class org.brains2b.data.sql.lob.LobHelper
create a wrapper around an existing Clob
createStream(InputStream, boolean) - Static method in class org.brains2b.data.sql.lob.LobHelper
create a Stream object for the InputStream from the database, that can then be used to change the content by using Stream.getOutputStream()
createStream() - Static method in class org.brains2b.data.sql.lob.LobHelper
create a new empty Stream
Cursor - Class in org.brains2b.data.cursor
Cursor is the Control class for a valid SQL select statement to be be used as a data class for which we can manipulate the data.
Cursor(String) - Constructor for class org.brains2b.data.cursor.Cursor
default constructor
CursorData - Class in org.brains2b.data.cursor
Object for containing results from a Cursor
CursorData(String) - Constructor for class org.brains2b.data.cursor.CursorData
Constructor for CursorData.

D

DataControl - Interface in org.brains2b.data
Interface DataControl
DataController - Interface in org.brains2b.data
Interface for a general Controller to use for all different data objects.
DataException - Exception in org.brains2b.data
Implementation of Exception for future use as default Exception in DataControl and DataController as replacement for the java.lang.Exception which is used in current versions.
DataException() - Constructor for exception org.brains2b.data.DataException
Constructor for DataException.
DataException(int) - Constructor for exception org.brains2b.data.DataException
Constructor
DataException(int, Throwable) - Constructor for exception org.brains2b.data.DataException
Constructor
DataException(String) - Constructor for exception org.brains2b.data.DataException
Constructor for DataException.
DataException(String, Throwable) - Constructor for exception org.brains2b.data.DataException
Constructor for DataException.
DataHelper - Class in org.brains2b.data
DateHelper is a Library class which provides method(s) which provide support for working with data objects.
DataHelper() - Constructor for class org.brains2b.data.DataHelper
 
delete(CursorData) - Method in class org.brains2b.data.cursor.Cursor
delete an object of type o from the datastore
delete() - Method in interface org.brains2b.data.DataControl
Delete the data object from the datatore on primary key.
delete(Object) - Method in interface org.brains2b.data.DataController
delete an object of type o from the datastore
delete(CursorData) - Method in class org.brains2b.data.sql.cursor.SqlCursor
 
DELETE_FAILED - Static variable in exception org.brains2b.data.DataException
 
DisconnectedStream - Class in org.brains2b.data.sql.lob
Implementation of Stream for database streams that are not connected to the stream in the database.
DisconnectedStream() - Constructor for class org.brains2b.data.sql.lob.DisconnectedStream
 
DisconnectedStream(InputStream) - Constructor for class org.brains2b.data.sql.lob.DisconnectedStream
 

E

equals(Object) - Method in class org.brains2b.data.Condition
 
equals(Object) - Method in class org.brains2b.data.cursor.CursorData
determines if two objects are equal by comparing their hashCodes

F

finalize() - Method in class org.brains2b.data.sql.lob.LobCache
 

G

getAsciiStream() - Method in class org.brains2b.data.sql.lob.ClobImpl
 
getBinaryStream() - Method in class org.brains2b.data.sql.lob.BlobImpl
 
getBinaryStream() - Method in class org.brains2b.data.sql.lob.LobCache
 
getBoolean(String) - Static method in class org.brains2b.data.sql.SqlDataHelper
Function getBoolean, returns true if the String consist of the letter Y or y and return false in all other cases.
getBytes(long, int) - Method in class org.brains2b.data.sql.lob.BlobImpl
 
getBytes(long, int) - Method in class org.brains2b.data.sql.lob.LobCache
 
getCharacterStream() - Method in class org.brains2b.data.sql.lob.ClobImpl
 
getChecksum() - Method in class org.brains2b.data.cursor.CursorData
 
getChecksum() - Method in interface org.brains2b.data.OptimisticLock
get the checksum value
getColumn(int) - Method in class org.brains2b.data.cursor.CursorData
get the column identifier for the column at the given index
getColumnCount() - Method in class org.brains2b.data.cursor.CursorData
get the number of fields in this cursor data object
getColumnType(String) - Method in class org.brains2b.data.cursor.CursorData
get the column type for the column identified by name
getColumnType(int) - Method in class org.brains2b.data.cursor.CursorData
get the column type for the column given by the specified index
getCondition() - Method in class org.brains2b.data.Condition
abstract function left to specific datasource implementation to actually use condition and order by in a way the implementation does understand
getCondition() - Method in class org.brains2b.data.sql.SqlCondition
 
getConditions() - Method in class org.brains2b.data.Condition
get the statements added by the addCondition in a hashtable
getConnection() - Method in class org.brains2b.data.sql.cursor.SqlCursor
 
getDoubleValue(int) - Method in class org.brains2b.data.cursor.CursorData
get the value of the column at the given index as a double
getDoubleValue(String) - Method in class org.brains2b.data.cursor.CursorData
get the double balue belonging to the column identified by name
getErrorNo() - Method in exception org.brains2b.data.DataException
get the error number for this Exception
getInputStream() - Method in class org.brains2b.data.sql.lob.ConnectedStream
 
getInputStream() - Method in class org.brains2b.data.sql.lob.DisconnectedStream
 
getIntValue(int) - Method in class org.brains2b.data.cursor.CursorData
get the value of the column at the given index as an integer.
getIntValue(String) - Method in class org.brains2b.data.cursor.CursorData
get the intValue belonging to the column identified by name
getLongValue(int) - Method in class org.brains2b.data.cursor.CursorData
get the value of the column at the given index as a long.
getLongValue(String) - Method in class org.brains2b.data.cursor.CursorData
get the longValue belonging to the column identified by name
getMessage() - Method in exception org.brains2b.data.DataException
get the Message for this Exception.
getName() - Method in class org.brains2b.data.cursor.Cursor
get the name for this cursor
getName() - Method in class org.brains2b.data.cursor.CursorData
get the name of the Cursor this CursorData object is a result for
getNewCursorData() - Method in class org.brains2b.data.cursor.Cursor
Get an new CursorData object for this cursor, which has all the fields for this Cursor defined.
getObject(CursorData, ResultSet) - Method in class org.brains2b.data.cursor.Cursor
get a CursorData object filled from the current position in the ResultSet.
getObject(CursorData, ResultSet) - Method in class org.brains2b.data.sql.cursor.SqlCursor
 
getObject(ResultSet) - Method in class org.brains2b.data.sql.SqlDC
Method getObject returns an instance of the Object this DataControl was intended to service by reading out the resultset and filling the methods of the object with the values of the individual fields
getOrderBy() - Method in class org.brains2b.data.Condition
get list of order by statements
getOutputStream() - Method in class org.brains2b.data.sql.lob.ConnectedStream
 
getOutputStream() - Method in class org.brains2b.data.sql.lob.DisconnectedStream
 
getPreparedQuery() - Method in class org.brains2b.data.sql.SqlCondition
get the SQL WHERE clause
getPreparedStatement(Connection, String) - Method in class org.brains2b.data.sql.cursor.SqlCursor
returns a prepared statement build from the prepared query set, the parameters added, the conditions set and the order by supplied.
getPreparedStatement(Connection, String) - Method in class org.brains2b.data.sql.SqlCondition
returns a prepared statement build from the prepared query set, the parameters added, the conditions set and the order by supplied.
getProtoType() - Method in class org.brains2b.data.cursor.Cursor
get a prototype for this cursor, which is basically a defintion of the columns and types, but without the values
getProtoType() - Method in class org.brains2b.data.sql.cursor.SqlCursor
 
getProtoType(ResultSetMetaData) - Method in class org.brains2b.data.sql.cursor.SqlCursor
get a prototype on the basis of the SQL-statement for this Cursor, which is defined in the ResultSetMetaData.
getRowNo() - Method in class org.brains2b.data.cursor.CursorData
get the position of this CursorData object in a collection
getSelect() - Method in class org.brains2b.data.sql.cursor.SqlCursor
 
getSubString(long, int) - Method in class org.brains2b.data.sql.lob.ClobImpl
 
getValue(int) - Method in class org.brains2b.data.cursor.CursorData
get the value of the column at the given index as an Object
getValue(String) - Method in class org.brains2b.data.cursor.CursorData
get the value of the column identified by name as an Object
getYesNo(boolean) - Static method in class org.brains2b.data.sql.SqlDataHelper
Function getYesNo returns the character 'Y' for boolean true and 'N' for boolean false

H

hash(int, int) - Static method in class org.brains2b.data.HashCodeHelper
 
hash(int, boolean) - Static method in class org.brains2b.data.HashCodeHelper
 
hash(int, long) - Static method in class org.brains2b.data.HashCodeHelper
 
hash(int, double) - Static method in class org.brains2b.data.HashCodeHelper
 
hash(int, float) - Static method in class org.brains2b.data.HashCodeHelper
 
hash(int, Object) - Static method in class org.brains2b.data.HashCodeHelper
 
hashCode() - Method in class org.brains2b.data.cursor.CursorData
 
hashCode() - Method in interface org.brains2b.data.OptimisticLock
get a hash for the particular object that implements this interface.
hashCode() - Method in class org.brains2b.data.sql.lob.BlobImpl
 
hashCode() - Method in class org.brains2b.data.sql.lob.ClobImpl
 
hashCode() - Method in class org.brains2b.data.sql.lob.ConnectedStream
 
hashCode() - Method in class org.brains2b.data.sql.lob.DisconnectedStream
 
hashCode() - Method in class org.brains2b.data.sql.lob.LobCache
 
HashCodeHelper - Class in org.brains2b.data
Best practice implementation for generating a hash code with a minimal amount of clashes, but a reasonable execution time
HashCodeHelper() - Constructor for class org.brains2b.data.HashCodeHelper
 

I

INITIAL - Static variable in class org.brains2b.data.HashCodeHelper
 
insert(CursorData) - Method in class org.brains2b.data.cursor.Cursor
insert an object of type o to the datastore
insert() - Method in interface org.brains2b.data.DataControl
insert a data object
insert(Object) - Method in interface org.brains2b.data.DataController
insert an object of type o to the datastore
insert(CursorData) - Method in class org.brains2b.data.sql.cursor.SqlCursor
insert the cursor data in the table for this cursor
INSERT_FAILED - Static variable in exception org.brains2b.data.DataException
 
isAccessed() - Method in class org.brains2b.data.sql.lob.ConnectedStream
 
isAccessed() - Method in class org.brains2b.data.sql.lob.DisconnectedStream
 

L

length() - Method in class org.brains2b.data.sql.lob.BlobImpl
 
length() - Method in class org.brains2b.data.sql.lob.ClobImpl
 
length() - Method in class org.brains2b.data.sql.lob.LobCache
 
LobCache - Class in org.brains2b.data.sql.lob
LobCache is local way to store data for a Blob, Clob and ConnectedStream
LobCache() - Constructor for class org.brains2b.data.sql.lob.LobCache
 
LobHelper - Class in org.brains2b.data.sql.lob
Helper method to create Clob, Blob and Streams either on the basis of the objects supplied or for creating new Objects
LobHelper() - Constructor for class org.brains2b.data.sql.lob.LobHelper
 

M

m_con - Variable in class org.brains2b.data.sql.cursor.SqlCursor
 
m_con - Variable in class org.brains2b.data.sql.SqlDC
 
m_cond - Variable in class org.brains2b.data.Condition
 
m_obj - Variable in class org.brains2b.data.sql.SqlDC
 
m_orderBy - Variable in class org.brains2b.data.Condition
 
m_prep - Variable in class org.brains2b.data.sql.cursor.SqlCursor
 
m_prep - Variable in class org.brains2b.data.sql.SqlDC
 
m_prototype - Variable in class org.brains2b.data.cursor.Cursor
 
m_select - Variable in class org.brains2b.data.sql.cursor.SqlCursor
 

N

NO_PRIMARY_KEY - Static variable in exception org.brains2b.data.DataException
 

O

OptimisticLock - Interface in org.brains2b.data
Interface that defines the methods used for optimistic locking.
OracleCondition - Class in org.brains2b.sql.oracle
Deprecated. use SqlCondition instead
OracleCondition() - Constructor for class org.brains2b.sql.oracle.OracleCondition
Deprecated. Default Constructor
OracleCondition(String) - Constructor for class org.brains2b.sql.oracle.OracleCondition
Deprecated. Constructor for OracleCondition
OracleCondition(String, Object) - Constructor for class org.brains2b.sql.oracle.OracleCondition
Deprecated. Constructor for OracleCondition
OracleCondition(String, Object, String) - Constructor for class org.brains2b.sql.oracle.OracleCondition
Deprecated. Constructor for OracleCondition
OracleCursor - Class in org.brains2b.sql.oracle.cursor
Deprecated. use SqlCursor
OracleCursor() - Constructor for class org.brains2b.sql.oracle.cursor.OracleCursor
Deprecated. use OracleCursor(String, String) and OracleCursor(Connection,String,String)
OracleCursor(String, String) - Constructor for class org.brains2b.sql.oracle.cursor.OracleCursor
Deprecated. Constructor for OracleCursor
OracleCursor(Connection, String, String) - Constructor for class org.brains2b.sql.oracle.cursor.OracleCursor
Deprecated. Constructor for OracleCursor.
OracleDC - Class in org.brains2b.sql.oracle
Deprecated. use SqlDC instead
OracleDC(Connection, Object) - Constructor for class org.brains2b.sql.oracle.OracleDC
Deprecated. Constructor for OracleDC which sets the Connection to use for this DataControl and the Object on which it should operate.
org.brains2b.data - package org.brains2b.data
 
org.brains2b.data.cursor - package org.brains2b.data.cursor
 
org.brains2b.data.sql - package org.brains2b.data.sql
 
org.brains2b.data.sql.cursor - package org.brains2b.data.sql.cursor
 
org.brains2b.data.sql.lob - package org.brains2b.data.sql.lob
 
org.brains2b.sql.oracle - package org.brains2b.sql.oracle
 
org.brains2b.sql.oracle.cursor - package org.brains2b.sql.oracle.cursor
 

P

position(byte[], long) - Method in class org.brains2b.data.sql.lob.BlobImpl
 
position(Blob, long) - Method in class org.brains2b.data.sql.lob.BlobImpl
 
position(String, long) - Method in class org.brains2b.data.sql.lob.ClobImpl
 
position(Clob, long) - Method in class org.brains2b.data.sql.lob.ClobImpl
 
position(Blob, long) - Method in class org.brains2b.data.sql.lob.LobCache
 
position(byte[], long) - Method in class org.brains2b.data.sql.lob.LobCache
 

R

RECORD_CHANGED - Static variable in exception org.brains2b.data.DataException
 
removeCondition(String) - Method in class org.brains2b.data.Condition
removes the statement that was set for this identifier
reset() - Method in class org.brains2b.data.sql.cursor.SqlCursor
reset this Cursor by removing all previously set parameter values
retrieve(Condition) - Method in class org.brains2b.data.cursor.Cursor
select an Object of the type of the Object o which match the supplied condition.
retrieve() - Method in interface org.brains2b.data.DataControl
retrieve a data object on the basis of the primary key contained in Object o
retrieve(Object, Condition) - Method in interface org.brains2b.data.DataController
retrieve an Object of the type of the Object o which match the supplied condition.
retrieve(Condition) - Method in class org.brains2b.data.sql.cursor.SqlCursor
 
RETRIEVE_FAILED - Static variable in exception org.brains2b.data.DataException
 
retrieveList(Condition) - Method in class org.brains2b.data.cursor.Cursor
retrieve a list of Objects of the type of the Object o which match the supplied condition.
retrieveList() - Method in class org.brains2b.data.cursor.Cursor
retrieve a list of Objects of the type of the Object
retrieveList(Condition) - Method in interface org.brains2b.data.DataControl
retrieve all records meeting the values set in Condition.
retrieveList(Object, Condition) - Method in interface org.brains2b.data.DataController
retrieve a list of Objects of the type of the Object o which match the supplied condition.
retrieveList() - Method in class org.brains2b.data.sql.cursor.SqlCursor
 
retrieveList(Condition) - Method in class org.brains2b.data.sql.cursor.SqlCursor
 

S

select() - Method in class org.brains2b.sql.oracle.cursor.OracleCursor
Deprecated.  
serialID() - Method in class org.brains2b.data.cursor.CursorData
 
serialID() - Method in interface org.brains2b.data.OptimisticLock
 
setAsciiStream(long) - Method in class org.brains2b.data.sql.lob.ClobImpl
 
setBinaryStream(long) - Method in class org.brains2b.data.sql.lob.BlobImpl
 
setBinaryStream(long) - Method in class org.brains2b.data.sql.lob.LobCache
 
setBytes(long, byte[]) - Method in class org.brains2b.data.sql.lob.BlobImpl
 
setBytes(long, byte[], int, int) - Method in class org.brains2b.data.sql.lob.BlobImpl
 
setBytes(long, byte[], int, int) - Method in class org.brains2b.data.sql.lob.LobCache
 
setBytes(long, byte[]) - Method in class org.brains2b.data.sql.lob.LobCache
 
setCharacterStream(long) - Method in class org.brains2b.data.sql.lob.ClobImpl
 
setChecksum(int) - Method in class org.brains2b.data.cursor.CursorData
 
setChecksum(int) - Method in interface org.brains2b.data.OptimisticLock
set the checksum value.
setColumn(int, String) - Method in class org.brains2b.data.cursor.CursorData
set a column identified by name at the specified position
setColumnType(int, Class) - Method in class org.brains2b.data.cursor.CursorData
set the Class identifying the type of content for this column by index.
setColumnValue(int, String, Object) - Method in class org.brains2b.data.cursor.CursorData
convinience method to set the column name and value at once at a given index
setConnection(Connection) - Method in class org.brains2b.data.sql.cursor.SqlCursor
set the java.sql.Connection to use for this Cursor
setName(String) - Method in class org.brains2b.data.cursor.CursorData
set the name of the Cursor this CursorData object is a result for
setPreparedQuery(String) - Method in class org.brains2b.data.sql.SqlCondition
set the SQL WHERE clause for this condition.
setRowNo(int) - Method in class org.brains2b.data.cursor.CursorData
set the position of this CursorData object in a collection
setString(long, String) - Method in class org.brains2b.data.sql.lob.ClobImpl
 
setString(long, String, int, int) - Method in class org.brains2b.data.sql.lob.ClobImpl
 
setValue(int, Object) - Method in class org.brains2b.data.cursor.CursorData
set the content value for the specified index
setValue(String, Object) - Method in class org.brains2b.data.cursor.CursorData
set the content value for the column identified by name
SqlCondition - Class in org.brains2b.data.sql
SqlCondition is a specific implementation of Condition for SQL databases.
SqlCondition() - Constructor for class org.brains2b.data.sql.SqlCondition
Default Constructor
SqlCondition(String) - Constructor for class org.brains2b.data.sql.SqlCondition
Constructor for SqlCondition
SqlCondition(String, Object) - Constructor for class org.brains2b.data.sql.SqlCondition
Constructor for SqlCondition
SqlCondition(String, Object, String) - Constructor for class org.brains2b.data.sql.SqlCondition
Constructor for SqlCondition
SqlCursor - Class in org.brains2b.data.sql.cursor
Implementation of the Cursor object for Sql queries and add functionality for having queries with parameters.
SqlCursor(String, String) - Constructor for class org.brains2b.data.sql.cursor.SqlCursor
Constructor for SqlCursor
SqlCursor(Connection, String, String) - Constructor for class org.brains2b.data.sql.cursor.SqlCursor
Constructor for SqlCursor.
SqlDataHelper - Class in org.brains2b.data.sql
Class with static functions to help with SQL datatypes
SqlDataHelper() - Constructor for class org.brains2b.data.sql.SqlDataHelper
 
SqlDC - Class in org.brains2b.data.sql
Abstract class for SqlDataControl objects.
SqlDC(Connection, Object) - Constructor for class org.brains2b.data.sql.SqlDC
Constructor for OracleDC which sets the Connection to use for this DataControl and the Object on which it should operate.

T

toString() - Method in class org.brains2b.data.sql.cursor.SqlCursor
Overwritten to return the SQL statement that defines the Cursor
truncate(long) - Method in class org.brains2b.data.sql.lob.BlobImpl
 
truncate(long) - Method in class org.brains2b.data.sql.lob.ClobImpl
 
truncate(long) - Method in class org.brains2b.data.sql.lob.LobCache
 

U

update(CursorData) - Method in class org.brains2b.data.cursor.Cursor
update an object of type o to the datastore
update() - Method in interface org.brains2b.data.DataControl
Update the data object on primary key.
update(Object) - Method in interface org.brains2b.data.DataController
update an object of type o to the datastore
update(CursorData) - Method in class org.brains2b.data.sql.cursor.SqlCursor
 
UPDATE_FAILED - Static variable in exception org.brains2b.data.DataException
 

A B C D E F G H I L M N O P R S T U