A C D E G H I M O R S T U

A

addCondition(String, Date) - Method in class org.brains2b.sql.oracle.OracleCondition
Implementation of addCondition which converts normal java.util.Date to java.sql.Timestamp which is appropriate for Oracle
addCondition(String, int) - 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.Condition
Adds a single statement to a condition of type identifier equals value
addCondition(String, Object) - Method in class org.brains2b.sql.oracle.OracleCondition
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.sql.oracle.OracleCondition
adds an Order By statement with the option to sort it descending
addParameter(int, int) - Method in class org.brains2b.sql.oracle.OracleCondition
adds a integer value for the given placeholder position in the prepared statement.
addParameter(int, int) - Method in class org.brains2b.sql.oracle.cursor.OracleCursor
adds a integer value for the given placeholder position in the prepared statement.
addParameter(int, Object) - Method in class org.brains2b.sql.oracle.OracleCondition
adds a value for the given placeholder position in the prepared statement.
addParameter(int, Object) - Method in class org.brains2b.sql.oracle.cursor.OracleCursor
adds a value for the given placeholder position in the prepared statement.

C

clearOrderBy() - Method in class org.brains2b.data.Condition
removes previously set sort order.
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.
Condition - class org.brains2b.data.Condition.
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.
copyDataObject(Object, Object) - Static method in class org.brains2b.data.DataHelper
copy the content of one data object to another.
CopyException - exception org.brains2b.data.CopyException.
Exception used when copying data from one data object to another.
CopyException() - Constructor for class org.brains2b.data.CopyException
Constructor
CopyException(String) - Constructor for class org.brains2b.data.CopyException
Constructor
Cursor - class org.brains2b.data.cursor.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() - Constructor for class org.brains2b.data.cursor.Cursor
Deprecated. not used, use Cursor(Connection,String,String)
Cursor(Connection, String, String) - Constructor for class org.brains2b.data.cursor.Cursor
Default Constructor for Cursor
CursorData - class org.brains2b.data.cursor.CursorData.
Object for containing results from a Cursor
CursorData(String) - Constructor for class org.brains2b.data.cursor.CursorData
Constructor for CursorData.

D

DataControl - interface org.brains2b.data.DataControl.
Interface DataControl
DataController - interface org.brains2b.data.DataController.
Interface for a general Controller to use for all different data objects.
DataException - exception org.brains2b.data.DataException.
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 class org.brains2b.data.DataException
Constructor for DataException.
DataException(int) - Constructor for class org.brains2b.data.DataException
Constructor
DataException(String) - Constructor for class org.brains2b.data.DataException
Constructor for DataException.
DataHelper - class org.brains2b.data.DataHelper.
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 the data represented by the CursorData object from the database.
delete(CursorData) - Method in class org.brains2b.sql.oracle.cursor.OracleCursor
 
delete(Object) - Method in interface org.brains2b.data.DataController
delete an object of type o from the datastore
deleteOnPk() - Method in interface org.brains2b.data.DataControl
Delete the data object from the datatore on primary key.

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

G

getBoolean(String) - Static method in class org.brains2b.sql.oracle.OracleDataHelper
Function getBoolean, returns true if the String consist of the letter Y or y and return false in all other cases.
getChecksum() - Method in interface org.brains2b.data.OptimisticLock
get the checksum value
getChecksum() - Method in class org.brains2b.data.cursor.CursorData
implemented to be consistent with a system that might use optimistic locking for normal data access
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(int) - Method in class org.brains2b.data.cursor.CursorData
get the column type for the column given by the specified index
getColumnType(String) - Method in class org.brains2b.data.cursor.CursorData
get the column type for the column identified by name
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.sql.oracle.OracleCondition
 
getConditions() - Method in class org.brains2b.data.Condition
get the statements added by the addCondition in a hashtable
getErrorNo() - Method in class org.brains2b.data.DataException
get the error number for this Exception
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
getMessage() - Method in class org.brains2b.data.DataException
get the Message for this Exception.
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(ResultSet) - Method in class org.brains2b.sql.oracle.OracleDC
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 Orderby Vector
getPreparedQuery() - Method in class org.brains2b.sql.oracle.OracleCondition
get the SQL WHERE clause
getPreparedStatement(Connection, String) - Method in class org.brains2b.sql.oracle.OracleCondition
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.sql.oracle.cursor.OracleCursor
returns a prepared statement build from the prepared query set, the parameters added, the conditions set and the order by supplied.
getProtoType(ResultSetMetaData) - Method in class org.brains2b.data.cursor.Cursor
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
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.sql.oracle.OracleDataHelper
Function getYesNo returns the character 'Y' for boolean true and 'N' for boolean false

H

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.cursor.CursorData
implemented to be consistent with a system that might use optimistic locking for normal data access

I

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

M

m_con - Variable in class org.brains2b.data.cursor.Cursor
 
m_condition - Variable in class org.brains2b.data.cursor.Cursor
 
m_from - Variable in class org.brains2b.data.cursor.Cursor
 
m_groupBy - Variable in class org.brains2b.data.cursor.Cursor
 
m_prep - Variable in class org.brains2b.data.cursor.Cursor
 
m_select - Variable in class org.brains2b.data.cursor.Cursor
 
mCon - Variable in class org.brains2b.sql.oracle.OracleDC
 
mCond - Variable in class org.brains2b.data.Condition
 
mObj - Variable in class org.brains2b.sql.oracle.OracleDC
 
mOrderBy - Variable in class org.brains2b.data.Condition
 
mPrep - Variable in class org.brains2b.sql.oracle.OracleDC
 

O

OptimisticLock - interface org.brains2b.data.OptimisticLock.
Interface that defines the methods used for optimistic locking.
OracleCondition - class org.brains2b.sql.oracle.OracleCondition.
Oracle Condition is a specific implementation of Condition for Oracle databases.
OracleCondition() - Constructor for class org.brains2b.sql.oracle.OracleCondition
Default Constructor
OracleCondition(String) - Constructor for class org.brains2b.sql.oracle.OracleCondition
Constructor for OracleCondition
OracleCondition(String, Object) - Constructor for class org.brains2b.sql.oracle.OracleCondition
Constructor for OracleCondition
OracleCondition(String, Object, String) - Constructor for class org.brains2b.sql.oracle.OracleCondition
Constructor for OracleCondition
OracleCursor - class org.brains2b.sql.oracle.cursor.OracleCursor.
Overwrite of the Cursor object to add functionality for having queries with parameters.
OracleCursor() - Constructor for class org.brains2b.sql.oracle.cursor.OracleCursor
Deprecated. use OracleCursor(String, String) and OracleCursor(Connection,String,String)
OracleCursor(Connection, String, String) - Constructor for class org.brains2b.sql.oracle.cursor.OracleCursor
Constructor for OracleCursor.
OracleCursor(String, String) - Constructor for class org.brains2b.sql.oracle.cursor.OracleCursor
Constructor for OracleCursor
OracleDataHelper - class org.brains2b.sql.oracle.OracleDataHelper.
Class with static functions to help with Oracle datatypes
OracleDataHelper() - Constructor for class org.brains2b.sql.oracle.OracleDataHelper
 
OracleDC - class org.brains2b.sql.oracle.OracleDC.
Abstract class for OraceDataControl objects.
OracleDC(Connection, Object) - Constructor for class org.brains2b.sql.oracle.OracleDC
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.sql.oracle - package org.brains2b.sql.oracle
 
org.brains2b.sql.oracle.cursor - package org.brains2b.sql.oracle.cursor
 

R

RECORD_CHANGED - Static variable in class org.brains2b.data.DataException
 
Reference - class org.brains2b.data.Reference.
Default implementation of EntryImpl
Reference() - Constructor for class org.brains2b.data.Reference
 
Reference(String, String) - Constructor for class org.brains2b.data.Reference
 
removeCondition(String) - Method in class org.brains2b.data.Condition
removes the statement that was set for this identifier
reset() - Method in class org.brains2b.sql.oracle.cursor.OracleCursor
reset this Cursor by removing all previously set parameter values

S

select() - Method in class org.brains2b.data.cursor.Cursor
Perform a select on the basis of the sql statement defined by this Cursor
select() - Method in class org.brains2b.sql.oracle.cursor.OracleCursor
 
select(Condition) - Method in class org.brains2b.data.cursor.Cursor
Deprecated. use select()
select(Condition, boolean) - Method in class org.brains2b.data.cursor.Cursor
Deprecated. use select()
select(Object, Object) - Method in interface org.brains2b.data.DataController
select an Object of the type of the Object o which match the supplied condition.
selectAll() - Method in interface org.brains2b.data.DataControl
select all Records for de data object this data controller was created for
selectFromCondition(Condition) - Method in interface org.brains2b.data.DataControl
select all records meeting the values set in Condition.
selectFromCondition(Object, Condition) - Method in interface org.brains2b.data.DataController
select a collection of Objects of the type of the Object o which match the supplied condition.
selectFromParent(Object, Object) - Method in interface org.brains2b.data.DataController
select a collection of Objects of the type of the Objecto which match a defined relation with the parent.
selectOnParent(Object) - Method in interface org.brains2b.data.DataControl
selects a collection of Objects which have a relation to a parent given by Object o
selectOnPk(Object) - Method in interface org.brains2b.data.DataControl
selects a data object on the basis of the primary key contained in Object o
setChecksum(int) - Method in interface org.brains2b.data.OptimisticLock
set the checksum value.
setChecksum(int) - Method in class org.brains2b.data.cursor.CursorData
implemented to be consistent with a system that might use optimistic locking for normal data access
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.sql.oracle.cursor.OracleCursor
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.sql.oracle.OracleCondition
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
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

T

toString() - Method in class org.brains2b.data.cursor.Cursor
Overwritten to return the SQL statement that defines the Cursor

U

update(CursorData) - Method in class org.brains2b.data.cursor.Cursor
Update the data represented by the CursorData object from the database.
update(CursorData) - Method in class org.brains2b.sql.oracle.cursor.OracleCursor
 
update(Object) - Method in interface org.brains2b.data.DataController
update an object of type o to the datastore
updateOnPk() - Method in interface org.brains2b.data.DataControl
Update the data object on primary key.

A C D E G H I M O R S T U