|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--planetj.database.Row
|
+--planetj.database.connection.ConnectionRow
Class generated by planetj.dataengine.RowClassGenerator Created at: Wed Apr 10 19:24:10 PDT 2002
| Nested Class Summary |
| Nested classes inherited from class planetj.database.Row |
Row.SpacingRow |
| Field Summary |
| Fields inherited from class planetj.database.Row |
className, COPY, DELETE, INSERT, MODE_COPY, MODE_DELETE, MODE_INSERT, MODE_READ, MODE_SEARCH, MODE_UNKNOWN, MODE_UPDATE, READ, UPDATE |
| Fields inherited from interface planetj.database.connection.IConnections |
ALIAS, CLEAN_UP_TIMEOUT, CONNECTION_TABLE_NAME, DRIVER, ENCODED_USER_PASSWORD, MAX_CONNECTIONS, MAX_SYSTEM_ALIAS_NAME_LENGTH, MIN_CONNECTIONS, ORPHAN_TIMEOUT, OWNER_ID, PASSWORD, PROPERTIES, STATUS, URL, USER_ID |
| Fields inherited from interface planetj.dataengine.security.IGuarded |
TYPE_ID_UNKNOWN, TYPE_NAME_FIELD, TYPE_NAME_SQLOPERATION, TYPE_SECURED_BY_LEVEL, TYPE_SECURED_BY_OPERATION, TYPE_UNSECURED |
| Constructor Summary | |
ConnectionRow()
|
|
| Method Summary | |
void |
closeConnectionPool()
Close the connection pool for this ConnectionRow exists. |
ConnectionRow |
createConnectionPool()
Create a connection pool based on the specific values of this Row. |
Row |
createRow(Row pDefaultRow)
Creates a new Row. |
boolean |
doesConnectionPoolExist()
Return a boolean indicating if the connection pool for this ConnectionRow exists. |
String |
getAlias()
Getter method for the Alias property |
int |
getCleanUpTimeout()
Getter method for the CleanUpTimeout property |
static ConnectionRow |
getConnectionRow(String pMetaDataAlias,
String pConnectionRowSystemAlias)
|
static ConnectionRow |
getConnectionRow(String pMetaDataAlias,
String pConnectionRowSystemAlias,
String pLibraryName)
|
static Table |
getConnectionTable(String pSystemAlias)
|
String |
getDeleteConfirmationMessage()
Get the delete confirmation message. |
String |
getDriver()
Getter method for the Driver property |
String |
getHeaderText(ExecutingContext ec)
Returns information for the user that will be displayed in the header of the Row |
int |
getMaxConnections()
Getter method for the MaxConnections property |
int |
getMinConnections()
Getter method for the MinConnections property |
int |
getOrphanTimeout()
Getter method for the OrphanTimeout property |
int |
getOwnerId()
Getter method for the OwnerId property |
Field |
getOwnerIdField()
Returns the Owner Id Field |
String |
getPassword()
Getter method for the Password property |
String |
getProperties()
Getter method for the Properties property |
String |
getSystem()
Returns the system. |
String |
getUrl()
Getter method for the Url property |
static String |
getURLFormatForDriver(String driverClass)
Gets an expected URL format for a driver class |
String |
getUserId()
Getter method for the UserId property |
String |
getUserMessageForOperation(int pMode)
Returns a message for the user based on the Mode of the Row |
int |
insert(SQLContext context)
Inserts this Row into the specified database. |
boolean |
isInitializeDerivedFieldsEnabled()
Tells whether or not to initialize Derived FDs upon row creation. |
boolean |
isValidConnection()
This method will verify this ConnectionRow contains valid connection properties and using these properties actually establishes a connection to a database. |
ConnectionRow |
setAlias(String newValue)
Setter method for the Alias property |
ConnectionRow |
setCleanUpTimeout(int newValue)
Setter method for the CleanUpTimeout property |
ConnectionRow |
setDriver(String newValue)
Setter method for the Driver property |
ConnectionRow |
setMaxConnections(int newValue)
Setter method for the MaxConnections property |
ConnectionRow |
setMinConnections(int newValue)
Setter method for the MinConnections property |
ConnectionRow |
setOrphanTimeout(int newValue)
Setter method for the OrphanTimeout property |
ConnectionRow |
setOwnerId(int newValue)
Setter method for the OwnerId property |
void |
setPassword(String newValue)
Setter method for the Password property |
ConnectionRow |
setProperties(String newValue)
Setter method for the Properties property |
ConnectionRow |
setUrl(String newValue)
Setter method for the Url property |
void |
setUserId(String newValue)
Setter method for the UserId property |
Row |
statusChanged(Field pField,
ExecutingContext ec)
Invoked when a status change takes place on of this Row's fields. |
int |
update(Connection conn,
ExecutingContext ec)
Updates the database with the values in this Row. |
boolean |
validate(ExecutingContext context)
Validate this Row based on its configuration and field values. |
ValidationExceptionCollection |
verifyConnection()
This method will verify this ConnectionRow contains valid connection properties and using these properties actually establishes a connection to a database. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionRow()
| Method Detail |
public String getHeaderText(ExecutingContext ec)
Row
getHeaderText in class Row
public ConnectionRow createConnectionPool()
throws CMException
CMException
public Row createRow(Row pDefaultRow)
throws CMException
transferDataTo() method is used to move the data from the
default Row to the newly created Row.
Override this method if the type of Row to add needs to be dynamically determined from the retrieved data.
createRow in interface IRowCreatorcreateRow in class RowpDefaultRow - A Row containing data read from the database (it will always be equal to this)
CMException
public boolean doesConnectionPoolExist()
throws CMException
CMException
public void closeConnectionPool()
throws CMException
CMExceptionpublic String getAlias()
public int getCleanUpTimeout()
public static ConnectionRow getConnectionRow(String pMetaDataAlias,
String pConnectionRowSystemAlias)
throws CMException
CMException
public static ConnectionRow getConnectionRow(String pMetaDataAlias,
String pConnectionRowSystemAlias,
String pLibraryName)
throws CMException
CMException
public static Table getConnectionTable(String pSystemAlias)
throws CMException
CMExceptionpublic String getDriver()
public int getMaxConnections()
public String getDeleteConfirmationMessage()
Row
getDeleteConfirmationMessage in class Rowpublic int getMinConnections()
public int getOrphanTimeout()
public int getOwnerId()
public Field getOwnerIdField()
getOwnerIdField in interface IOwnerIOwnerpublic String getPassword()
public String getProperties()
public String getSystem()
public String getUrl()
public static String getURLFormatForDriver(String driverClass)
public String getUserId()
getUserId in interface ILoginpublic String getUserMessageForOperation(int pMode)
getUserMessageForOperation in class Row(see Row constants to find the modes.
public int insert(SQLContext context)
throws CMException
insert in class RowCMExceptionpublic boolean isInitializeDerivedFieldsEnabled()
isInitializeDerivedFieldsEnabled in class Rowpublic boolean isValidConnection()
public ConnectionRow setAlias(String newValue)
throws CMException
CMException
public ConnectionRow setCleanUpTimeout(int newValue)
throws CMException
CMException
public ConnectionRow setDriver(String newValue)
throws CMException
CMException
public ConnectionRow setMaxConnections(int newValue)
throws CMException
CMException
public ConnectionRow setMinConnections(int newValue)
throws CMException
CMException
public ConnectionRow setOrphanTimeout(int newValue)
throws CMException
CMException
public ConnectionRow setOwnerId(int newValue)
throws CMException
CMException
public void setPassword(String newValue)
throws CMException
setPassword in interface ILoginCMException
public ConnectionRow setProperties(String newValue)
throws CMException
CMException
public ConnectionRow setUrl(String newValue)
throws CMException
CMException
public void setUserId(String newValue)
throws CMException
setUserId in interface ILoginCMException
public Row statusChanged(Field pField,
ExecutingContext ec)
throws CMException
statusChanged in class RowpField - The field whose status has changedec - The current executing context
CMException
public int update(Connection conn,
ExecutingContext ec)
throws CMException
update in class Rowconn - The connection to use for the update
CMException
public boolean validate(ExecutingContext context)
throws CMException
validate in class RowCMExceptionpublic ValidationExceptionCollection verifyConnection()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||