java.lang.Object
org.xml.sax.helpers.DefaultHandler
ojb.jdo.metadata.OjbJdoXmlHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class OjbJdoXmlHandler
- extends org.xml.sax.helpers.DefaultHandler
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_repository
private ojb.broker.metadata.DescriptorRepository m_repository
m_CurrentJCD
private ojb.broker.metadata.JdbcConnectionDescriptor m_CurrentJCD
m_CurrentPackage
java.lang.String m_CurrentPackage
m_CurrentCLD
private ojb.broker.metadata.ClassDescriptor m_CurrentCLD
m_CurrentFLD
private ojb.broker.metadata.FieldDescriptor m_CurrentFLD
m_CurrentORD
private ojb.broker.metadata.ObjectReferenceDescriptor m_CurrentORD
m_CurrentCOD
private ojb.broker.metadata.CollectionDescriptor m_CurrentCOD
m_CurrentString
private java.lang.String m_CurrentString
sort
private java.lang.String sort
logger
private ojb.broker.util.logging.Logger logger
idCounter
int idCounter
- Used to assign unique ids to fields
OjbJdoXmlHandler
public OjbJdoXmlHandler(ojb.broker.metadata.DescriptorRepository dr)
startElement
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
- Receive notification of the start of an element.
By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the start of
each element (such as allocating a new tree node or writing
output to a file).
handleExtension
public void handleExtension(java.lang.String key,
java.lang.String value)
- handles ojb extensions in jdo file
endElement
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- Receive notification of the end of an element.
By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the end of
each element (such as finalising a tree node or writing
output to a file).
setupDefaults
void setupDefaults(ojb.broker.metadata.ClassDescriptor cd)
- This will set up a class to defaults based on the following schema:
If extension table not specified:
- table = classname
If extension column not specified
- column = fieldname
setupDefaults
void setupDefaults(ojb.broker.metadata.FieldDescriptor fd)
- This will set up a field to defaults based on the following schema:
If extension column not specified
- column = fieldname
- type = by reflection