|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectit.unimo.dbgroup.momis.odli3.MomisObject
it.unimo.dbgroup.momis.odli3.TypeContainer
it.unimo.dbgroup.momis.odli3.Source
Descrive un sorgente
| Field Summary | |
private java.lang.String |
_description
the source name |
private java.lang.String |
_name
the source name |
private java.lang.String |
_sourceType
the source type |
private WrapperCore |
_wrapper
The wrapper cache. |
java.lang.String |
_wrapperClassName
Name of the class of the wrapper that manages the source. |
java.util.Properties |
_wrapperClientProperties
Configuration for the WrapperClient |
static java.util.Comparator |
COMPARE_ON_NAME
Comparator used to Sort arrays. |
| Fields inherited from class it.unimo.dbgroup.momis.odli3.TypeContainer |
_constants, _interfaces, _sources, _structs, _thesRelations |
| Fields inherited from class it.unimo.dbgroup.momis.odli3.MomisObject |
mod_GenericODLParser, mod_GlobalSchema, mod_QueryManger, mod_SIDes_ARM, mod_SIDes_ARTEMIS, mod_SIDes_EXTM, mod_SIDes_JoinMap, mod_SIDes_main, mod_SIDes_SAM, mod_SIDes_SIM, mod_SIDes_SIM2, mod_SIDes_SLIM, mod_SIDes_TREdit, mod_SIDes_TUNIM |
| Constructor Summary | |
Source()
Basic constructor |
|
Source(java.lang.String n,
java.lang.String t)
il costruttore passa nome e tipo del sorgente |
|
| Method Summary | |
void |
closeWrapperConnection()
closing the connection |
void |
delInterface(Interface intf)
Cancella un'oggetto Interface alla lista di quelle appartenenti a questa sorgente |
QMResultSet |
executeQuery(java.lang.String query)
Executes a query on this source |
java.lang.String |
getDescription()
Returns the Description of this Source. |
java.util.TreeMap |
getExtRule(Schema sch,
boolean exclusive)
Return a list of Extensional rules that involves only local class of the give source. |
java.lang.String |
getName()
Returns the name of this Source. |
java.lang.String |
getType()
Returns the Type of this Source. |
java.lang.String |
getWrapperClassName()
Gets the Name of the class of the wrapper that manages the source |
java.lang.String |
getWrapperClientPropertiesAsString()
Sets a single property of the Configuration for the WrapperClient |
Wrapper |
getWrapperConnection()
Create a new Wrapper instance to communicate with the source This uses the information getWrapperClassName() _wrapperClientProperties |
void |
loadFromXML(org.xml.sax.Attributes attrib)
Load the object from an xml tag. |
void |
setDescription(java.lang.String description)
Returns the Description of this Source. |
void |
setName(java.lang.String newName)
Sets the name of the source to a new name. |
void |
setType(java.lang.String type)
Returns the Type of this Source. |
void |
setWrapperClassName(java.lang.String wrapperClassName)
Sets the Name of the class of the wrapper that manages the source |
void |
setWrapperClientPropertiesFromString(java.lang.String text)
Sets a single property of the Configuration for the WrapperClient |
java.lang.String |
toOdl()
Returns the ODLi3 description for this source. |
java.lang.String |
toString()
String representation for the Source. |
| Methods inherited from class it.unimo.dbgroup.momis.odli3.MomisObject |
getAdditionalInfo, getAdditionalInfos, getGenericProducerDescription, getProducerDescription, getProducerId, putAdditionalInfo, setProducerId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.util.Comparator COMPARE_ON_NAME
private java.lang.String _name
private java.lang.String _description
private java.lang.String _sourceType
public java.lang.String _wrapperClassName
public java.util.Properties _wrapperClientProperties
private WrapperCore _wrapper
| Constructor Detail |
public Source()
public Source(java.lang.String n,
java.lang.String t)
n - nome del sorgentet - tipo del sorgente| Method Detail |
public java.lang.String getName()
getName in class TypeContainerpublic java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public void delInterface(Interface intf)
intf - interfaccia da rimuoverepublic java.lang.String toString()
toString in class TypeContainerpublic java.lang.String toOdl()
toOdl in class TypeContainer
public java.util.TreeMap getExtRule(Schema sch,
boolean exclusive)
exclusive - Flag : True
Return only rules where both local class are
memeber of given source False Return
rules where one or both local class are member
of the given source.
public void setName(java.lang.String newName)
public void loadFromXML(org.xml.sax.Attributes attrib)
throws java.lang.Exception
java.lang.Exceptionpublic void setWrapperClassName(java.lang.String wrapperClassName)
public java.lang.String getWrapperClassName()
public void setWrapperClientPropertiesFromString(java.lang.String text)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getWrapperClientPropertiesAsString()
public Wrapper getWrapperConnection()
throws java.lang.Exception
java.lang.Exception
public QMResultSet executeQuery(java.lang.String query)
throws java.lang.Exception
java.lang.Exception
public void closeWrapperConnection()
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||