|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.agmodel.genericBroker.GenericSourceImpl
A general class for describing a datasource and providing access to it.
| Field Summary | |
protected GenericBrokerImpl |
broker
|
protected String |
driverName
|
protected String |
ID
|
protected int |
loginRequirements
|
protected Location2D |
northWestBound
|
protected MultilingualString |
sourceName
|
protected Location2D |
southEastBound
|
protected static boolean |
trace
|
| Constructor Summary | |
GenericSourceImpl(String ID,
GenericBrokerImpl broker,
MultilingualString sourceName,
GeographicalArea coverage,
int loginRequirements,
String driverName)
Creates an object responsible for managing the metadata associated with a database, and spawning driver instances. |
|
| Method Summary | |
void |
enter(String methodname,
String clientinfo)
Print Method entry info if tracing |
void |
exit(String methodname,
String clientinfo)
Print Method exiting info if tracing |
protected abstract Constructor |
getAccessConstructor()
|
protected abstract DBAccessMechanism |
getAccessMechanism()
|
protected DBAccessMechanism |
getAccessMechanism(Object[] parameters)
|
abstract DataSourceDetail |
getDetails(String language)
Returns the details of the dataSource in a form suitable for transmission to client applications |
GeographicalArea |
getGeographicalArea()
The portion of the globe that the database covers |
String |
getID()
Returns a unique ID which programs can use to identify the database. |
int |
getLoginRequirements()
Indicate the usercode and password detail that need to be supplied by users of the database Use the constants included with this interface. |
String |
getName(String language)
The name of the database, suitable for presentation to the user. |
void |
putName(String language,
String text)
|
protected void |
setCoverage(GeographicalArea newcoverage)
|
protected void |
setID(String ID)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static boolean trace
protected Location2D northWestBound
protected Location2D southEastBound
protected int loginRequirements
protected String ID
protected MultilingualString sourceName
protected String driverName
protected GenericBrokerImpl broker
| Constructor Detail |
public GenericSourceImpl(String ID,
GenericBrokerImpl broker,
MultilingualString sourceName,
GeographicalArea coverage,
int loginRequirements,
String driverName)
throws GeneralException
ID - the identifier the broker uses to refer to this data sourcebroker - a link back to the BrokersourceName - the source name, maybe in several languages.coverage - the area of the globe covered by this data sourceloginRequirements - whether the database requires that users log in (use one of the three constants in the GenericBrokerRMI interface)driverName - the name of the database driver class (assumed to be in net.agmodel.metDriver package)
GeneralException| Method Detail |
protected abstract Constructor getAccessConstructor()
throws ClassNotFoundException,
NoSuchMethodException
ClassNotFoundException
NoSuchMethodExceptionprotected abstract DBAccessMechanism getAccessMechanism()
protected DBAccessMechanism getAccessMechanism(Object[] parameters)
public String getName(String language)
language - the language in which to return the name
IllegalArgumentException - if the language is not known
public void putName(String language,
String text)
protected void setID(String ID)
public String getID()
protected void setCoverage(GeographicalArea newcoverage)
public GeographicalArea getGeographicalArea()
public int getLoginRequirements()
public abstract DataSourceDetail getDetails(String language)
language - the language to use for any text;
public void enter(String methodname,
String clientinfo)
public void exit(String methodname,
String clientinfo)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||