|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.agmodel.brokerImpl.GenericSourceImpl
A general class for describing a datasource and providing access to it.
| Constructor Summary | |
GenericSourceImpl(String ID,
GenericBrokerImpl broker,
MultilingualString sourceName,
GeographicalArea coverage,
int loginRequirements,
String driverName,
GeographicalArea defaultDisplayArea)
|
|
GenericSourceImpl(String ID,
GenericBrokerImpl broker,
MultilingualString sourceName,
GeographicalArea coverage,
int loginRequirements,
String driverName,
GeographicalArea defaultDisplayArea,
BrokerConfigDataSource source)
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 |
GeographicalArea |
getDefaultDisplayArea()
The portion of the globe that the database covers |
abstract DataSourceDetail |
getDetails(String language)
Returns the details of the dataSource in a form suitable for transmission to client applications |
DBAccessMechanism |
getDriverInstance()
|
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. |
org.apache.log4j.Category |
getLog4jCategory()
|
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. |
String |
getSystemPassword()
Gets the password, if any, held by MetBroker for this particular source. |
String |
getSystemUsercode()
Gets the usercode, if any, held by MetBroker for this particular source. |
void |
putName(String language,
String text)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.agmodel.brokerImpl.GenericSourceForDrivers |
getParameterValue |
| Constructor Detail |
public GenericSourceImpl(String ID,
GenericBrokerImpl broker,
MultilingualString sourceName,
GeographicalArea coverage,
int loginRequirements,
String driverName,
GeographicalArea defaultDisplayArea,
BrokerConfigDataSource source)
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
public GenericSourceImpl(String ID,
GenericBrokerImpl broker,
MultilingualString sourceName,
GeographicalArea coverage,
int loginRequirements,
String driverName,
GeographicalArea defaultDisplayArea)
throws GeneralException
| Method Detail |
public org.apache.log4j.Category getLog4jCategory()
getLog4jCategory in interface GenericSourceForDriverspublic String getSystemUsercode()
GenericSourceForDrivers
getSystemUsercode in interface GenericSourceForDriverspublic String getSystemPassword()
GenericSourceForDrivers
getSystemPassword in interface GenericSourceForDriverspublic DBAccessMechanism getDriverInstance()
public String getName(String language)
getName in interface GenericSourceForDriverslanguage - the language in which to return the name
IllegalArgumentException - if the language is not known
public void putName(String language,
String text)
public String getID()
getID in interface GenericSourceForDriverspublic GeographicalArea getGeographicalArea()
public GeographicalArea getDefaultDisplayArea()
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 | ||||||||||