orca.sharp.plugins.db
Class MySqlClientDatabase
java.lang.Object
orca.util.db.MySqlBase
orca.shirako.plugins.db.MySqlDatabase
orca.sharp.plugins.db.MySqlClientDatabase
- All Implemented Interfaces:
- ClientDatabase, IDatabase, IInitialize, IRecover, ISerialize
- Direct Known Subclasses:
- MySqlCodDatabase
public class MySqlClientDatabase
- extends MySqlDatabase
- implements ClientDatabase
| Fields inherited from class orca.util.db.MySqlBase |
create, db, DefaultSchema, driverPath, joclFileLocation, logger, mapFile, mapper, mySqlPasswd, mySqlServer, mySqlServerPort, mySqlUser, pool, PropertyMySqlDb, PropertyMySqlPassword, PropertyMySqlPool, PropertyMySqlServer, PropertyMySqlServerPort, PropertyMySqlUser, resetState, schemaFile, source, TypeDefault |
|
Method Summary |
void |
addClient(Client client)
Adds a new database record representing this client |
java.util.Vector<java.util.Properties> |
getClient(java.lang.String name)
Retrieves the specified client record |
java.util.Vector<java.util.Properties> |
getClients()
Retrieves all client records |
void |
removeClient(java.lang.String name)
Removes the specified client record |
void |
updateClient(Client client)
Updates the database record for the specified client |
| Methods inherited from class orca.shirako.plugins.db.MySqlDatabase |
actorAdded, addBroker, addConfigurationMapping, addReservation, addSlice, createSearchResults, createSearchResultsTyped, getActorIdFromName, getActorIdFromName, getAgentReservations, getAuthorityReservations, getBrokers, getClientReservations, getClientSlices, getConfigurationMapping, getConfigurationMappings, getHoldings, getInventorySlices, getReservation, getReservations, getReservations, getSlice, getSlice, getSliceIdFromGuid, getSliceIdFromGuid, getSlices, initialize, notifyReservationListeners, registerReservationListener, removeBroker, removeConfigurationMapping, removeReservation, removeSlice, revisit, setActorName, unregisterReservationListener, updateBroker, updateConfigurationMapping, updateReservation, updateSlice |
| Methods inherited from class orca.util.db.MySqlBase |
checkDb, checkDrivers, configure, constructQueryPartial, getConnection, getDb, getLogger, getMySqlPasswd, getMySqlServer, getMySqlServerPort, getMySqlUser, getPoolConfigLocation, getSchemaString, getServerConnection, loadDrivers, reset, resetDB, returnConnection, save, save, setDb, setLogger, setMySqlPasswd, setMySqlServer, setMySqlServerPort, setMySqlUser, setPoolConfigLocation, setResetState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultClientsUrl
public static final java.lang.String DefaultClientsUrl
- See Also:
- Constant Field Values
Clients
public static java.lang.String Clients
Client
public static java.lang.String Client
MySqlClientDatabase
public MySqlClientDatabase()
MySqlClientDatabase
public MySqlClientDatabase(java.lang.String mapFile)
addClient
public void addClient(Client client)
throws java.lang.Exception
- Adds a new database record representing this client
- Specified by:
addClient in interface ClientDatabase
- Throws:
java.lang.Exception
updateClient
public void updateClient(Client client)
throws java.lang.Exception
- Updates the database record for the specified client
- Specified by:
updateClient in interface ClientDatabase
- Throws:
java.lang.Exception
removeClient
public void removeClient(java.lang.String name)
throws java.lang.Exception
- Removes the specified client record
- Specified by:
removeClient in interface ClientDatabase
- Throws:
java.lang.Exception
getClient
public java.util.Vector<java.util.Properties> getClient(java.lang.String name)
throws java.lang.Exception
- Retrieves the specified client record
- Specified by:
getClient in interface ClientDatabase
- Returns:
-
- Throws:
java.lang.Exception
getClients
public java.util.Vector<java.util.Properties> getClients()
throws java.lang.Exception
- Retrieves all client records
- Specified by:
getClients in interface ClientDatabase
- Returns:
-
- Throws:
java.lang.Exception
Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.