Package de.mguennewig.pobjects

The package de.mguennewig.pobjects provides an abstraction layer on top of a set of database tables by which table rows can be accessed transparently as Java objects.

See:
          Description

Interface Summary
Condition Interface for boolean terms that consist out of further terms.
Container Interface for database connections.
PObjResultSet A result set provides an interface to process the results of a Query row by row.
Term Interface of all entries that can appear in a boolean expression as part of a query.
 

Class Summary
AbstractContainer Abstract base class for database connections.
AbstractPObjJoin<T extends Record> Abstract wrapper object for joins between two tables.
Cast A type cast of an SQL expression.
ColumnReference Class description goes here.
Command Common base class for command classes.
DynamicRecord A record that represents a row within a dynamically created SELECT statement.
DynamicSelectExpr A dynamically created SELECT expression.
EvalContext Internal class to convert the internal term expressions into SQL statements.
EvalState PObject internal class to evaluate a Term into an SQL statement.
FctCall A function call within an SQL expression.
Globals  
Junction A conjunction or disjunction of Terms as part of a SQL statement.
Literal A literal value, for example a string, a number or an object.
LiteralSet A set of literal values (a, b, c, ...)
Member Reference to an column of a table.
ObjectRef A simple wrapper class to allow returning a value over an argument of a method.
Pclass PObject interface class to access the internal tables for DBMS, which do not support inheritance.
PclassColumn PObject interface class for class PclassColumn.
PObjBlob This class provides a portable way to create a BLOB.
PObjClob This class provides a portable way to create a CLOB.
PObjConstraintException.Entry Helper class holding data on an exception entry.
PObject Represents a table row with an id that is unique within the table.
PObjMap<T extends Record> Wrapper object for map valued joins between two tables.
PObjNestedSet<T extends Record> Wrapper object for nested set valued joins between two tables.
PObjSet<T extends Record> Wrapper object for set valued joins between two tables.
PObjStack<T extends Record> Wrapper object for stack valued joins between two tables.
PObjUtils Static class with multiple utility methods.
Predicate A boolean expression to be used in the WHERE part of a SQL statement.
Query Describes a simple query to retrieve objects from a database.
Record All data extracted from the RDBMS is stored in instances of this type.
SoftHashMap<K,V> A hashtable-based Map implementation with soft values.
SQLEvalContext Internal class to convert the internal term expressions into SQL statements.
TableRef Represents a table expression within an SQL FROM.
Terms A collection of utility methods to process Terms in-memory.
 

Exception Summary
PObjConstraintException Thrown when storing on an object fails (or would fail) because of a Constraint imposed on the object's data.
PObjException Base class of all exceptions that can be raised by the persistent object library.
PObjSQLException Wrapper around SQL exceptions thrown by the database driver.
PObjSyntaxException Thrown by Type to indicate a syntax error.
 

Error Summary
PObjReadError This error is thrown if any SQL error occurs while reading.
 

Package de.mguennewig.pobjects Description

The package de.mguennewig.pobjects provides an abstraction layer on top of a set of database tables by which table rows can be accessed transparently as Java objects. Inserts, updates, and deletes in the database are handled transparently. Get and set methods for database attributes are automatically generated. Foreign key constraints between database tables are mapped onto Java references between objects. A simple query language to produce lists of objects is also included.

A lot of features can be added on top of the existing framework. Possible extensions are, in approximate order of decreasing relevance:

Triggers Trigger constraints.