db ojb

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Natural Language Processing
51.Net
52.Parser
53.PDF
54.Portal
55.Profiler
56.Project Management
57.Report
58.RSS RDF
59.Rule Engine
60.Science
61.Scripting
62.Search Engine
63.Security
64.Sevlet Container
65.Source Control
66.Swing Library
67.Template Engine
68.Test Coverage
69.Testing
70.UML
71.Web Crawler
72.Web Framework
73.Web Mail
74.Web Server
75.Web Services
76.Web Services apache cxf 2.2.6
77.Web Services AXIS2
78.Wiki Engine
79.Workflow Engines
80.XML
81.XML UI
Java Source Code / Java Documentation  » Database ORM » db ojb 
OJB
License:Apache Software License
URL:http://db.apache.org/ojb/
Description:ObJectRelationalBridge (OJB) is an Object/Relational mapping tool
Package NameComment
org.apache.ojb.broker
org.apache.ojb.broker.accesslayer
org.apache.ojb.broker.accesslayer.conversions Conversions package This package contains classes related to type and value conversions between attributes of persistent classes and their mapped columns in the relational database.

The FieldConversion>/code> interface defines two callback methods for conversion from Java to Database (javaToSql(Object source)) and from Database to Java (sqlToJava(Object source)).
OJB users can use predefined FieldConversion implementations contained in this package and can also implement their own conversions that perform arbitrary mappings. The usage of a FieldConversion must be declared in the FieldDescriptor element in the repository.xml file.

The conversion-methods of the FieldConversion>/code> interface may throw a ConversionException to signal errors during the conversion operations.

The class FieldConversionDefaultImpl is the default implementation of the FieldConversion>/code> interface. This implementation does not modify its input.

The class Boolean2IntFieldConversion is an implementation of the FieldConversion>/code> interface that provides a conversion from persistent classes attributes of type Boolean to rdbms columns of type BIGINT, INTEGER, SMALLINT, TINYINT or BIT.

The class JavaDate2SqlDateFieldConversion is an implementation of the FieldConversion>/code> interface that provides a conversion from persistent classes attributes of type java.util.Date to rdbms columns of type java.sql.Date.

The class Object2ByteArrFieldConversion is an implementation of the FieldConversion>/code> interface that provides a conversion from persistent classes attributes of type java.lang.Object (or any subtype) to rdbms columns of a type able of holding byte arrays (CHAR, VARCHAR, LONGVARCHAR, BINARY, VARBINARY, or LONGVARBINARY).
This conversion can be useful if embedded objects can not be mapped on a dedicated extra table but must be "inlined". This approach is used for the mapping of DListEntry object that hold an inlined Identity Object.

Patterns applied: Callback, Strategy

Todo: Provide more predefined implementations

org.apache.ojb.broker.accesslayer.sql Sql Generator package

This package contains the OJB SQL generator classes.

org.apache.ojb.broker.ant
org.apache.ojb.broker.cache OJB Cache package

This package provides classes for caching of objects materialized from a datastore.

Applications use the ObjectCacheFactory to create new ObjectCaches. These caches supply methods for storing and retrieving objects. Objects can be looked up by their identity which is represented by the class Identiy. Each implementation of ObjectCache represents a different caching strategy.

org.apache.ojb.broker.cloneable
org.apache.ojb.broker.core
org.apache.ojb.broker.core.proxy
org.apache.ojb.broker.locking
org.apache.ojb.broker.metadata
org.apache.ojb.broker.metadata.fieldaccess OJB field-access package

This package provides classes for accessing fields of persistent classes.

org.apache.ojb.broker.metadata.torque
org.apache.ojb.broker.platforms Platforms package This package contains classes that provide compatibility to a range of RDBM platforms.

The Platform interface provides callbacks that allow to perform RDBMS Platform specific operations whereever neccessary.

The class PlatformDefaultImpl implements Platform and provides default implementations of all methods.

For each supported Platform Xxx there is a class PlatformXxxImpl which extends PlatformDefaultImpl and may override the methods of the baseclass.

The factory class PlatformFactory can be used to create Platform instances. It uses information from a JdbcConnectionDescriptor to select the appropriate PlatformXxxImpl class.

Patterns applied: Configurable Factory, Strategy, Bridge

Todo: Provide more Platform-Implementations

org.apache.ojb.broker.prevayler
org.apache.ojb.broker.prevayler.demo
org.apache.ojb.broker.query
org.apache.ojb.broker.sequence
org.apache.ojb.broker.sqlcount
org.apache.ojb.broker.transaction
org.apache.ojb.broker.transaction.tm
org.apache.ojb.broker.util
org.apache.ojb.broker.util.batch
org.apache.ojb.broker.util.collections broker collections package This package contains utility classes that implement the ManageableCollection interface. Implementing this interface allows to use these classes as collection attributes in persistent classes.

The class ManageableVector extends Vector and implements ManageableCollections.

The class ManageableArrayList extends ArrayList and implements ManageableCollections.

The class ManageableHashSet extends HashSet and implements ManageableCollections.

Patterns applied: Adapter, Callback interface ("don't call us, we call you")

Todo: Provide more such implementations.

org.apache.ojb.broker.util.configuration OJB Configuration package This package contains classes that provide the OJB configuration API.

The Configuration interface defines lookup-methods to lookup typed configuration-values. For example boolean getBoolean(String key, boolean defaultValue) looks up a boolean value associated with key.

The Configurable interface defines a callback method configure(Configuration pConfig). Implementors of this method may use configuration value from the pConfig parameter to configure the current instance.

The Configurator interface defines methods for looking up Configurations and for configuring Configurable instances.

The Exception ConfigurationException is used to signal exceptions in the configuration process.

Patterns applied: Callback

Todo: merge with jakarta commons-configuration API

org.apache.ojb.broker.util.configuration.impl
org.apache.ojb.broker.util.dbhandling
org.apache.ojb.broker.util.event
org.apache.ojb.broker.util.factory
org.apache.ojb.broker.util.interceptor
org.apache.ojb.broker.util.logging Logging package This package contains classes that provide the OJB logging API.

The Logger interface defines the behaviour of the OJB logging mechanism. This API corresponds closely to the LOG4J Category Api. By using this interface for logging operations OJB remains free from Logger-Implementation specific code.

The class PoorMansLoggerImpl implements Logger and provides the OJB default implementations. All logging output is directed to System.out.

The class Log4jLoggerImpl implements Logger and provides LOG4J based logger implementations.

The factory class LoggerFactory can be used to create Logger instances. The Logger-implementation class served by the factory is configured by settings in the OJB.properties file.

Patterns applied: Configurable Factory, Adapter

Todo: Provide a JDK1.4 based logger

org.apache.ojb.broker.util.pooling
org.apache.ojb.broker.util.sequence sequence manager package This package contains classes that provide the OJB sequence numering.
org.apache.ojb.broker.util.ui
org.apache.ojb.compare
org.apache.ojb.ejb
org.apache.ojb.ejb.odmg
org.apache.ojb.ejb.pb
org.apache.ojb.jboss
org.apache.ojb.jdo
org.apache.ojb.jdo.jdoql
org.apache.ojb.jdo.spi
org.apache.ojb.jdori.sql
org.apache.ojb.junit
org.apache.ojb.odmg
org.apache.ojb.odmg.collections
org.apache.ojb.odmg.link
org.apache.ojb.odmg.locking
org.apache.ojb.odmg.oql
org.apache.ojb.odmg.shared
org.apache.ojb.odmg.states
org.apache.ojb.otm
org.apache.ojb.otm.connector
org.apache.ojb.otm.copy
org.apache.ojb.otm.core
org.apache.ojb.otm.kit
org.apache.ojb.otm.lock
org.apache.ojb.otm.lock.isolation
org.apache.ojb.otm.lock.map
org.apache.ojb.otm.lock.wait
org.apache.ojb.otm.states
org.apache.ojb.otm.swizzle
org.apache.ojb.otm.transaction
org.apache.ojb.p6spy
org.apache.ojb.performance
org.apache.ojb.soda
org.apache.ojb.tools.mapping.reversedb
org.apache.ojb.tools.mapping.reversedb.gui
org.apache.ojb.tools.mapping.reversedb.gui.actions
org.apache.ojb.tools.mapping.reversedb2
org.apache.ojb.tools.mapping.reversedb2.actions
org.apache.ojb.tools.mapping.reversedb2.datatransfer
org.apache.ojb.tools.mapping.reversedb2.dbmetatreemodel
org.apache.ojb.tools.mapping.reversedb2.dnd2 This package contains infrastructure that should make it easier to implement Drag and Drop in GUIs with JDKs 1.2 and 1.3. These classes do most of the event handling for you. If you are a Dnd "provider" you have to implement a Transferable to take the data you want to export and an implementation of DragCopyCutWorker interface. Basically what you have to do is to read the data from your model and put it into an transferable. If you are a DnD "consumer", you have to implement a DropPastWorkerInterface that accepts at least on flavour of Transferable data and inserts it into the model. In this package there is still a lot room for improvements, but it should be good enough to help you implementing basic DnD (and Clipboard) functionality# in your application.
org.apache.ojb.tools.mapping.reversedb2.events
org.apache.ojb.tools.mapping.reversedb2.gui
org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel
org.apache.ojb.tools.mapping.reversedb2.ojbmetatreemodel.actions
org.apache.ojb.tools.mapping.reversedb2.propertyEditors
org.apache.ojb.tools.swing
org.odbms
org.odmg
xdoclet.junit
xdoclet.modules.ojb
xdoclet.modules.ojb.constraints
xdoclet.modules.ojb.model
xdoclet.modules.ojb.tests
w_w___w__.j_a___va2___s.__c_o___m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.