public class XBRLDBAccessor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
org.apache.log4j.Logger |
log
The log.
|
| Constructor and Description |
|---|
XBRLDBAccessor(org.hibernate.Session session,
DbUtil.Database databaseType)
Creates an instance of the XBRLDBAcessor object to query the database
for the existence of objects.
|
XBRLDBAccessor(org.hibernate.Session session,
DbUtil.Database databaseType,
XBRLPojoGenerator xbrlPojoGenerator)
Creates an instance of the XBRLDBAcessor object to query the database
for the existence of objects.
|
| Modifier and Type | Method and Description |
|---|---|
DbUtil.Database |
getDatabaseType()
Gets the database type.
|
XBRLArcroleType |
queryArcrole(java.lang.String uri)
Query arcrole.
|
XBRLItem |
queryConceptItem(java.lang.Long id)
Query concept item.
|
XBRLTuple |
queryConceptTuple(java.lang.Long id)
Query concept tuple.
|
XBRLDocument |
queryDocument(java.net.URI documentURI)
Query document.
|
XBRLInstance |
queryDocument(XBRLInstance instance)
Query the database for the existence of an XBRLInstance document.
|
XBRLLinkbase |
queryDocument(XBRLLinkbase linkbase)
Query the database for the existence of an XBRLLinkbase document.
|
XBRLTaxonomy |
queryDocument(XBRLTaxonomy taxonomy)
Query the database for the existence of an XBRLTaxonomy document.
|
XBRLFactProperty |
queryFactProperty(XBRLFactItem fact,
int container,
XMLFragment property)
Search on the database for a property in the XBRLFactProperty table that matches the
selection criteria according with the primary key that is created using the fact ID,
the container and the property node ID.
|
Namespace |
queryNamespace(javax.xml.namespace.QName q)
Query namespace.
|
QName |
queryQName(javax.xml.namespace.QName q)
Query q name.
|
XBRLRoleType |
queryRole(java.lang.String uri)
Query role.
|
public XBRLDBAccessor(org.hibernate.Session session,
DbUtil.Database databaseType)
This constructor can be used only for querying documents. Not QNames and not for storing new data.
session - the sessiondatabaseType - the database typepublic XBRLDBAccessor(org.hibernate.Session session,
DbUtil.Database databaseType,
XBRLPojoGenerator xbrlPojoGenerator)
session - the sessiondatabaseType - the database typexbrlPojoGenerator - the xbrl pojo generatorpublic XBRLInstance queryDocument(XBRLInstance instance)
instance - XBRLInstance document in the RS object model.public XBRLLinkbase queryDocument(XBRLLinkbase linkbase)
linkbase - XBRLLinkbase document in the RS object model.public XBRLTaxonomy queryDocument(XBRLTaxonomy taxonomy)
taxonomy - XBRLTaxonomy document in the RS object model.public XBRLDocument queryDocument(java.net.URI documentURI)
documentURI - the URI of a documentpublic XBRLItem queryConceptItem(java.lang.Long id)
id - the idpublic XBRLTuple queryConceptTuple(java.lang.Long id)
id - the idpublic QName queryQName(javax.xml.namespace.QName q) throws XBRLPojoGenerationException
q - the qXBRLPojoGenerationExceptionpublic Namespace queryNamespace(javax.xml.namespace.QName q)
q - the qpublic XBRLRoleType queryRole(java.lang.String uri)
uri - the uripublic XBRLArcroleType queryArcrole(java.lang.String uri)
uri - the uripublic DbUtil.Database getDatabaseType()
public XBRLFactProperty queryFactProperty(XBRLFactItem fact, int container, XMLFragment property)
One may think the container should not be part of the key, as the property is an XMLFragment that belongs to a specific container (segment or scenario), we have included the container as a specific property in order to allow virtual properties to be explicitly declared in the database. Virtual properties may be an XMLFragment node in its own and be at no container at all (default values for explicit dimensions are an example of this).
fact - the factcontainer - the containerproperty - the property