Methods Summary |
---|
public java.lang.String | getCatalog()INTERNAL:
return m_descriptor.getCatalog();
|
protected oracle.toplink.essentials.internal.ejb.cmp3.metadata.columns.MetadataColumn | getColumn(java.lang.String loggingCtx)INTERNAL: (Override from BasicAccessor)
Build a metadata column. If one isn't found in XML then look for an
annotation.
Node node = m_helper.getNode(m_node, XMLConstants.COLUMN);
if (node != null) {
return new XMLColumn(node, m_helper, this);
} else {
return super.getColumn(loggingCtx);
}
|
public java.lang.String | getDocumentName()INTERNAL:
return m_helper.getDocumentName();
|
public java.lang.String | getEnumeratedType()INTERNAL: (Override from DirectAccessor)
if (hasEnumerated()) {
return m_helper.getNodeTextValue(m_node, XMLConstants.ENUMERATED);
} else {
return super.getEnumeratedType();
}
|
public java.lang.String | getFetchType()INTERNAL: (Override from BasicAccessor)
return m_helper.getFetchTypeDefaultEAGER(m_node);
|
public oracle.toplink.essentials.internal.ejb.cmp3.xml.XMLHelper | getHelper()INTERNAL:
return m_helper;
|
public java.lang.String | getSchema()INTERNAL:
return m_descriptor.getSchema();
|
public java.lang.String | getTemporalType()INTERNAL: (Override from DirectAccessor)
Return the temporal type for this accessor. Assumes there is a temporal
node.
if (hasTemporal()) {
return m_helper.getNodeTextValue(m_node, XMLConstants.TEMPORAL);
} else {
return super.getTemporalType();
}
|
public boolean | hasEnumerated()INTERNAL: (Override from DirectAccessor)
Method to check if m_node has an enumerated sub-element.
Node node = m_helper.getNode(m_node, XMLConstants.ENUMERATED);
if (node == null) {
return super.hasEnumerated();
} else {
return true;
}
|
public boolean | hasLob()INTERNAL: (Override from DirectAccessor)
Return true if this accessor represents an BLOB/CLOB mapping, i.e. has a
lob sub-element.
Node node = m_helper.getNode(m_node, XMLConstants.LOB);
if (node == null) {
return super.hasLob();
} else {
return true;
}
|
public boolean | hasTemporal()INTERNAL: (Override from DirectAccessor)
Method to check if m_node has a temporal sub-element.
Node node = m_helper.getNode(m_node, XMLConstants.TEMPORAL);
if (node == null) {
return super.hasTemporal();
} else {
return true;
}
|
public boolean | isId()INTERNAL: (Override from BasicAccessor)
Method to check if m_node represents a primary key.
if (m_node.getLocalName().equals(XMLConstants.ID)) {
return true;
} else {
return super.isId();
}
|
public boolean | isOptional()INTERNAL: (Override from BasicAccessor)
return m_helper.isOptional(m_node);
|
public boolean | isVersion()INTERNAL: (Override from BasicAccessor)
Return true if this accessor represents an optimistic locking field.
if (m_node.getLocalName().equals(XMLConstants.VERSION)) {
return true;
} else {
return super.isVersion();
}
|
protected void | processGeneratedValue(oracle.toplink.essentials.internal.helper.DatabaseField field)INTERNAL: (Override from BasicAccessor)
Node node = m_helper.getNode(m_node, XMLConstants.GENERATED_VALUE);
if (node == null) {
super.processGeneratedValue(field);
} else {
// Ask the common processor to process what we found.
processGeneratedValue(new XMLGeneratedValue(node, m_helper), field);
}
|
protected void | processSequenceGenerator()INTERNAL: (Override from NonRelationshipAccessor)
Process this accessor's sequence-generator node into a common metadata
sequence generator.
Node node = m_helper.getNode(m_node, XMLConstants.SEQUENCE_GENERATOR);
if (node != null) {
// Process the xml defined sequence generators first.
processSequenceGenerator(new XMLSequenceGenerator(node, m_helper));
}
// Process the annotation defined sequence generators second.
super.processSequenceGenerator();
|
protected void | processTableGenerator()INTERNAL: (Override from NonRelationshipAccessor)
Process this accessor's table-generator node into a common metadata table
generator.
Node node = m_helper.getNode(m_node, XMLConstants.TABLE_GENERATOR);
if (node != null) {
// Process the xml defined table generators first.
processTableGenerator(new XMLTableGenerator(node, this));
}
// Process the annotation defined sequence generators second.
super.processTableGenerator();
|