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

A

addField(String, Class, String) - Method in class org.gjt.tw.dbobjects.ObjectMapping
This method adds one of the object's fields to the fields that are mapped.
Address - class org.gjt.tw.dbobjects.test.mysql.Address.
Test class containing data of an address.
Address - class org.gjt.tw.dbobjects.test.generic.Address.
Test class containing data of an address.
Address() - Constructor for class org.gjt.tw.dbobjects.test.mysql.Address
Address constructor comment.
Address() - Constructor for class org.gjt.tw.dbobjects.test.generic.Address
Address constructor comment.
AUTOINCREMENT_GENERIC - Static variable in class org.gjt.tw.dbobjects.ObjectMapping
Description of the Field
AUTOINCREMENT_MYSQL - Static variable in class org.gjt.tw.dbobjects.ObjectMapping
Description of the Field
AUTOINCREMENT_NONE - Static variable in class org.gjt.tw.dbobjects.ObjectMapping
Description of the Field

C

columnName - Variable in class org.gjt.tw.dbobjects.FieldMapping
Description of the Field
ConnectionBroker - class org.gjt.tw.dbobjects.ConnectionBroker.
Database Connection Broker Implementation for DbConnectionBroker
ConnectionBroker(Properties) - Constructor for class org.gjt.tw.dbobjects.ConnectionBroker
Constructor
Customer - class org.gjt.tw.dbobjects.test.mysql.Customer.
Test class containing data about a customer.
Customer - class org.gjt.tw.dbobjects.test.generic.Customer.
Test class containing data about a customer.
Customer() - Constructor for class org.gjt.tw.dbobjects.test.mysql.Customer
TestObject constructor comment.
Customer() - Constructor for class org.gjt.tw.dbobjects.test.generic.Customer
TestObject constructor comment.
CustomerAddress - class org.gjt.tw.dbobjects.test.mysql.CustomerAddress.
This class represents a n-m relation between customers and addresses.
CustomerAddress - class org.gjt.tw.dbobjects.test.generic.CustomerAddress.
This class represents a n-m relation between customers and addresses.
CustomerAddress() - Constructor for class org.gjt.tw.dbobjects.test.mysql.CustomerAddress
CustomerAddress constructor comment.
CustomerAddress() - Constructor for class org.gjt.tw.dbobjects.test.generic.CustomerAddress
CustomerAddress constructor comment.
CustomerAddress(Customer, Address) - Constructor for class org.gjt.tw.dbobjects.test.mysql.CustomerAddress
CustomerAddress constructor comment.
CustomerAddress(Customer, Address) - Constructor for class org.gjt.tw.dbobjects.test.generic.CustomerAddress
CustomerAddress constructor comment.

D

DatabaseException - exception org.gjt.tw.dbobjects.DatabaseException.
A database exception is thrown if an exception related to database access occured.
DatabaseException() - Constructor for class org.gjt.tw.dbobjects.DatabaseException
DatabaseException constructor comment.
DatabaseException(String) - Constructor for class org.gjt.tw.dbobjects.DatabaseException
DatabaseException constructor comment.
DbConnectionBroker - class org.gjt.tw.dbobjects.DbConnectionBroker.
DbConnectionBroker A servlet-based broker for database connections.
DbConnectionBroker(String, String, String, String, int, int, String, double) - Constructor for class org.gjt.tw.dbobjects.DbConnectionBroker
Creates a new Connection Broker
dbDriver: JDBC driver.
DBManager - class org.gjt.tw.dbobjects.DBManager.
DBManager is responsible for the access to the database.
delete() - Method in class org.gjt.tw.dbobjects.StorableObject
This method deletes the databse entry of the object.
delete(ObjectMapping, Object[]) - Static method in class org.gjt.tw.dbobjects.DBManager
Deletes an object that is stored in the database.
destroy() - Static method in class org.gjt.tw.dbobjects.DBManager
Detroys the connection to the database and gives used resources free.
destroy() - Method in class org.gjt.tw.dbobjects.DbConnectionBroker
Less safe shutdown.
destroy(int) - Method in class org.gjt.tw.dbobjects.ConnectionBroker
destroy destroys all connections
destroy(int) - Method in interface org.gjt.tw.dbobjects.IBroker
Description of the Method
destroy(int) - Method in class org.gjt.tw.dbobjects.DbConnectionBroker
Shuts down the housekeeping thread and closes all connections in the pool.

F

fieldClass - Variable in class org.gjt.tw.dbobjects.FieldMapping
Description of the Field
FieldMapping - class org.gjt.tw.dbobjects.FieldMapping.
FieldMapping is a wrapper class that holds data about the mapping of one field.
FieldMapping(String, Method, Method, Class, String) - Constructor for class org.gjt.tw.dbobjects.FieldMapping
Constructor.
fieldName - Variable in class org.gjt.tw.dbobjects.FieldMapping
Description of the Field
freeConnection(Connection) - Method in class org.gjt.tw.dbobjects.ConnectionBroker
freeConnection returns the connection to the pool
freeConnection(Connection) - Method in interface org.gjt.tw.dbobjects.IBroker
Description of the Method
freeConnection(Connection) - Method in class org.gjt.tw.dbobjects.DbConnectionBroker
Frees a connection.

G

GenericTestApplication - class org.gjt.tw.dbobjects.test.generic.GenericTestApplication.
This class is a test application for the package databasemanagement.
GenericTestApplication() - Constructor for class org.gjt.tw.dbobjects.test.generic.GenericTestApplication
 
getAddressId() - Method in class org.gjt.tw.dbobjects.test.mysql.CustomerAddress
This method was created in VisualAge.
getAddressId() - Method in class org.gjt.tw.dbobjects.test.generic.CustomerAddress
This method was created in VisualAge.
getAddressList() - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
This method was created in VisualAge.
getAddressList() - Method in class org.gjt.tw.dbobjects.test.generic.Customer
This method was created in VisualAge.
getAge(Connection) - Method in class org.gjt.tw.dbobjects.DbConnectionBroker
Returns the age of a connection -- the time since it was handed out to an application.
getAll(ObjectMapping) - Static method in class org.gjt.tw.dbobjects.DBManager
Retrieves all objects stored in a table of the database and returns an array of objects.
getAll(ObjectMapping, String) - Static method in class org.gjt.tw.dbobjects.DBManager
Retrieves all objects stored in a table of the database and returns an array of objects.
getAllVector(ObjectMapping) - Static method in class org.gjt.tw.dbobjects.DBManager
Retrieves all objects stored in a table of the database and returns a vector of all objects..
getAllVector(ObjectMapping, String) - Static method in class org.gjt.tw.dbobjects.DBManager
Retrieves all objects stored in a table of the database and returns a vector of all objects.
getBroker() - Static method in class org.gjt.tw.dbobjects.DBManager
Returns the current database connection broker.
getByCustomer(Customer) - Static method in class org.gjt.tw.dbobjects.test.mysql.CustomerAddress
This method was created in VisualAge.
getByCustomer(Customer) - Static method in class org.gjt.tw.dbobjects.test.generic.CustomerAddress
This method was created in VisualAge.
getByField(ObjectMapping, String, Object) - Static method in class org.gjt.tw.dbobjects.DBManager
Retrieves the objects stored in the database for which a given field corresponds to the content given and returns an array of objects.
getByField(ObjectMapping, String, Object, String) - Static method in class org.gjt.tw.dbobjects.DBManager
Retrieves the objects stored in the database for which a given field corresponds to the content given and returns an array of objects.
getByFieldVector(ObjectMapping, String, Object) - Static method in class org.gjt.tw.dbobjects.DBManager
Retrieves the objects stored in the database for which a given field corresponds to the content given and returns a vector of all objects.
getByFieldVector(ObjectMapping, String, Object, String) - Static method in class org.gjt.tw.dbobjects.DBManager
Retrieves the objects stored in the database for which a given field corresponds to the content given and returns a vector of all objects.
getById(long) - Static method in class org.gjt.tw.dbobjects.test.mysql.Address
Returns an Address object by its ID.
getById(long) - Static method in class org.gjt.tw.dbobjects.test.generic.Address
This method was created in VisualAge.
getByName(String) - Static method in class org.gjt.tw.dbobjects.test.mysql.Customer
Searches for a customer in the database given the name of a customer.
getByName(String) - Static method in class org.gjt.tw.dbobjects.test.generic.Customer
Searches for a customer in the database given the name of a customer.
getByWhereClause(ObjectMapping, String) - Static method in class org.gjt.tw.dbobjects.DBManager
Retrieves the objects stored in the database an SQL SELECT returns given a WHERE clause and returns an array of objects.
getByWhereClauseVector(ObjectMapping, String) - Static method in class org.gjt.tw.dbobjects.DBManager
Retrieves the objects stored in the database an SQL SELECT returns given a WHERE clause and returns a vector of all objects.
getCity() - Method in class org.gjt.tw.dbobjects.test.mysql.Address
Returns name of the city.
getCity() - Method in class org.gjt.tw.dbobjects.test.generic.Address
Returns name of the city.
getConnection() - Method in class org.gjt.tw.dbobjects.ConnectionBroker
getConnection
getConnection() - Method in interface org.gjt.tw.dbobjects.IBroker
Gets the connection attribute of the IBroker object
getConnection() - Method in class org.gjt.tw.dbobjects.DbConnectionBroker
This method hands out the connections in round-robin order.
getCountry() - Method in class org.gjt.tw.dbobjects.test.mysql.Address
Returns name of the country.
getCountry() - Method in class org.gjt.tw.dbobjects.test.generic.Address
Returns name of the country.
getCreated() - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
This method was created in VisualAge.
getCreated() - Method in class org.gjt.tw.dbobjects.test.generic.Customer
This method was created in VisualAge.
getCurrentAddress() - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
This method was created in VisualAge.
getCurrentAddress() - Method in class org.gjt.tw.dbobjects.test.generic.Customer
This method was created in VisualAge.
getCurrentAddressId() - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
This method was created in VisualAge.
getCurrentAddressId() - Method in class org.gjt.tw.dbobjects.test.generic.Customer
This method was created in VisualAge.
getCustomerName() - Method in class org.gjt.tw.dbobjects.test.mysql.CustomerAddress
This method was created in VisualAge.
getCustomerName() - Method in class org.gjt.tw.dbobjects.test.generic.CustomerAddress
This method was created in VisualAge.
getDomTree() - Method in class org.gjt.tw.dbobjects.StorableObject
Returns an XML element that forms a DOM tree representing the data of this object.
getId() - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
This method was created in VisualAge.
getId() - Method in class org.gjt.tw.dbobjects.test.mysql.Address
Returns values of id.
getId() - Method in class org.gjt.tw.dbobjects.test.generic.Customer
This method was created in VisualAge.
getId() - Method in class org.gjt.tw.dbobjects.test.generic.Address
Returns values of id.
getMapping() - Method in class org.gjt.tw.dbobjects.StorableObject
This method returns the object mapping of the current object.
getMapping() - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
Returns object mapping.
getMapping() - Method in class org.gjt.tw.dbobjects.test.mysql.Address
Returns object mapping.
getMapping() - Method in class org.gjt.tw.dbobjects.test.mysql.CustomerAddress
Returns object mapping.
getMapping() - Method in class org.gjt.tw.dbobjects.test.generic.Customer
Returns object mapping.
getMapping() - Method in class org.gjt.tw.dbobjects.test.generic.CustomerAddress
Returns object mapping.
getMapping() - Method in class org.gjt.tw.dbobjects.test.generic.Address
Returns object mapping.
getMethod - Variable in class org.gjt.tw.dbobjects.FieldMapping
Description of the Field
getName() - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
Returns name of customer.
getName() - Method in class org.gjt.tw.dbobjects.test.generic.Customer
Returns name of customer.
getPassword() - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
Returns password of customer.
getPassword() - Method in class org.gjt.tw.dbobjects.test.generic.Customer
Returns password of customer.
getSize() - Method in class org.gjt.tw.dbobjects.DbConnectionBroker
Returns the number of connections in the dynamic pool.
getUseCount() - Method in class org.gjt.tw.dbobjects.DbConnectionBroker
Returns the number of connections in use.
getZip() - Method in class org.gjt.tw.dbobjects.test.mysql.Address
Returns zip code as string.
getZip() - Method in class org.gjt.tw.dbobjects.test.generic.Address
Returns zip code as string.

H

handleException(Exception) - Static method in class org.gjt.tw.dbobjects.DBManager
This method is called for any exception happened during database access.

I

IBroker - interface org.gjt.tw.dbobjects.IBroker.
Database Connection Broker Interface.
idOfConnection(Connection) - Method in class org.gjt.tw.dbobjects.DbConnectionBroker
Returns the local JDBC ID for a connection.
IncompleteDefinitionException - exception org.gjt.tw.dbobjects.IncompleteDefinitionException.
An IncompleteDefinitionException is thrown if the definition of an object mapping is not complete.
IncompleteDefinitionException() - Constructor for class org.gjt.tw.dbobjects.IncompleteDefinitionException
DatabaseException constructor comment.
IncompleteDefinitionException(String) - Constructor for class org.gjt.tw.dbobjects.IncompleteDefinitionException
DatabaseException constructor comment.
init() - Static method in class org.gjt.tw.dbobjects.StorableObject
This method initializes the class.
init() - Static method in class org.gjt.tw.dbobjects.test.mysql.Customer
Initialization of object mapping.
init() - Static method in class org.gjt.tw.dbobjects.test.mysql.Address
Initialization of object mapping.
init() - Static method in class org.gjt.tw.dbobjects.test.mysql.CustomerAddress
Initialization of object mapping.
init() - Static method in class org.gjt.tw.dbobjects.test.generic.Customer
Initialization of object mapping.
init() - Static method in class org.gjt.tw.dbobjects.test.generic.CustomerAddress
Initialization of object mapping.
init() - Static method in class org.gjt.tw.dbobjects.test.generic.Address
Initialization of object mapping.
init(IBroker) - Static method in class org.gjt.tw.dbobjects.DBManager
init use init if you want to access the initialized variable setBroker can be used instead of init
init(Properties) - Method in class org.gjt.tw.dbobjects.ConnectionBroker
Initializes the database connection broker.
insert(ObjectMapping, Object[]) - Static method in class org.gjt.tw.dbobjects.DBManager
Executes an SQL INSERT string generated by the object mapping.
isInitialized() - Static method in class org.gjt.tw.dbobjects.DBManager
Checks whether the database manager has already been initialized.
isStoredInDatabase - Variable in class org.gjt.tw.dbobjects.StorableObject
Description of the Field

M

main(String[]) - Static method in class org.gjt.tw.dbobjects.test.mysql.TestApplication
Main method of test application.
main(String[]) - Static method in class org.gjt.tw.dbobjects.test.generic.GenericTestApplication
Main method of test application.

O

ObjectException - exception org.gjt.tw.dbobjects.ObjectException.
An ObjectException is thrown if an exception happened while creating objects or while calling methods doing reflection.
ObjectException() - Constructor for class org.gjt.tw.dbobjects.ObjectException
DatabaseException constructor comment.
ObjectException(String) - Constructor for class org.gjt.tw.dbobjects.ObjectException
DatabaseException constructor comment.
ObjectMapping - class org.gjt.tw.dbobjects.ObjectMapping.
This class provides all necessary information for the mapping of all objects of a class.
ObjectMapping() - Constructor for class org.gjt.tw.dbobjects.ObjectMapping
ObjectMapping constructor.
org.gjt.tw.dbobjects - package org.gjt.tw.dbobjects
 
org.gjt.tw.dbobjects.test.generic - package org.gjt.tw.dbobjects.test.generic
 
org.gjt.tw.dbobjects.test.mysql - package org.gjt.tw.dbobjects.test.mysql
 

P

prepareSQLStatements() - Method in class org.gjt.tw.dbobjects.ObjectMapping
At the end of initialization this method has to be called.
print() - Method in class org.gjt.tw.dbobjects.StorableObject
Prints the values of all mapped fields of the current object to the console.
printAll() - Static method in class org.gjt.tw.dbobjects.test.generic.Customer
BDM

R

run() - Method in class org.gjt.tw.dbobjects.DbConnectionBroker
Housekeeping thread.

S

setAddressId(long) - Method in class org.gjt.tw.dbobjects.test.mysql.CustomerAddress
This method was created in VisualAge.
setAddressId(long) - Method in class org.gjt.tw.dbobjects.test.generic.CustomerAddress
This method was created in VisualAge.
setAutoIncrement(int) - Method in class org.gjt.tw.dbobjects.ObjectMapping
Defines which kind of auto increment should be used.
setBroker(IBroker) - Static method in class org.gjt.tw.dbobjects.DBManager
Sets the connection broker
setCity(String) - Method in class org.gjt.tw.dbobjects.test.mysql.Address
Sets name of the city.
setCity(String) - Method in class org.gjt.tw.dbobjects.test.generic.Address
Sets name of the city.
setCountry(String) - Method in class org.gjt.tw.dbobjects.test.mysql.Address
Sets name of the city.
setCountry(String) - Method in class org.gjt.tw.dbobjects.test.generic.Address
Sets name of the city.
setCreated(Date) - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
This method was created in VisualAge.
setCreated(Date) - Method in class org.gjt.tw.dbobjects.test.generic.Customer
This method was created in VisualAge.
setCurrentAddress(Address) - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
This method was created in VisualAge.
setCurrentAddress(Address) - Method in class org.gjt.tw.dbobjects.test.generic.Customer
This method was created in VisualAge.
setCurrentAddressId(long) - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
This method was created in VisualAge.
setCurrentAddressId(long) - Method in class org.gjt.tw.dbobjects.test.generic.Customer
This method was created in VisualAge.
setCustomerName(String) - Method in class org.gjt.tw.dbobjects.test.mysql.CustomerAddress
This method was created in VisualAge.
setCustomerName(String) - Method in class org.gjt.tw.dbobjects.test.generic.CustomerAddress
This method was created in VisualAge.
setId(long) - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
This method was created in VisualAge.
setId(long) - Method in class org.gjt.tw.dbobjects.test.mysql.Address
Sets value of id.
setId(long) - Method in class org.gjt.tw.dbobjects.test.generic.Customer
This method was created in VisualAge.
setId(long) - Method in class org.gjt.tw.dbobjects.test.generic.Address
Sets value of id.
setKeyField(String) - Method in class org.gjt.tw.dbobjects.ObjectMapping
Defines the field that is the key of an database entry.
setMethod - Variable in class org.gjt.tw.dbobjects.FieldMapping
Description of the Field
setName(String) - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
Sets name of customer.
setName(String) - Method in class org.gjt.tw.dbobjects.test.generic.Customer
Sets name of customer.
setObjectClass(Class) - Method in class org.gjt.tw.dbobjects.ObjectMapping
Sets the class of the object.
setPassword(String) - Method in class org.gjt.tw.dbobjects.test.mysql.Customer
Sets password of customer.
setPassword(String) - Method in class org.gjt.tw.dbobjects.test.generic.Customer
Sets password of customer.
setTableName(String) - Method in class org.gjt.tw.dbobjects.ObjectMapping
Sets the name of the database table in which objects are stored.
setZip(Integer) - Method in class org.gjt.tw.dbobjects.test.mysql.Address
Sets the value of the zip code.
setZip(String) - Method in class org.gjt.tw.dbobjects.test.generic.Address
Sets the value of the zip code.
StorableObject - class org.gjt.tw.dbobjects.StorableObject.
Every class that you want to store in the database using the mechanism provided by this package has to extend this abstract class.
StorableObject() - Constructor for class org.gjt.tw.dbobjects.StorableObject
Default Constructor.
store() - Method in class org.gjt.tw.dbobjects.StorableObject
This method stores the object into the database.

T

TestApplication - class org.gjt.tw.dbobjects.test.mysql.TestApplication.
This class is a test application for the package databasemanagement.
TestApplication() - Constructor for class org.gjt.tw.dbobjects.test.mysql.TestApplication
 
toXML() - Method in class org.gjt.tw.dbobjects.StorableObject
Returns a string containing the XML representation of the values of the fields stored in the current object.

U

update(ObjectMapping, Object[]) - Static method in class org.gjt.tw.dbobjects.DBManager
Updates an object that is stored in the database.

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