|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.AbstractDBObject oracle.javatools.db.AbstractBuildableObject oracle.javatools.db.AbstractSchemaObject oracle.javatools.db.ora.DatabaseLink
public class DatabaseLink
Model of a database DatabaseLink. A DatabaseLink is a reference to another database.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport |
Field Summary | |
---|---|
static java.lang.String |
PUBLIC_TYPE
|
static java.lang.String |
TYPE
|
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Constructor Summary | |
---|---|
DatabaseLink()
Construct a new DatabaseLink |
|
DatabaseLink(java.lang.String name,
Schema schema,
DBObjectID id)
Construct a new DatabaseLink . |
Method Summary | |
---|---|
DBObject |
copyTo(DBObject target,
DBObject copyParent,
IDPolicy idPolicy)
Internal copy method used by the API to perform copy operations. |
protected void |
copyToImpl(DatabaseLink copy,
DBObject copyParent,
IDPolicy idPolicy)
|
boolean |
equals(java.lang.Object obj)
|
protected boolean |
equalsImpl(DatabaseLink target)
|
java.lang.String |
getAuthentificationPassword()
Retrieves the password for the authentification user. |
java.lang.String |
getAuthentificationUser()
Deprecated. |
java.lang.String |
getAuthentificationUsername()
Retrieves the user name for authentificating shared links |
java.lang.String |
getCreated()
Retrieves the dblink creation date. |
DBObjectProvider |
getDBLink()
Retrieves the database referenced by this DatabaseLink. |
java.lang.String |
getHost()
Retrieves the SQL*Net string for connect. |
java.lang.String |
getPassword()
Retrieves the password for the user. |
java.lang.String |
getType()
Returns the type of this object. |
java.lang.String |
getUsername()
Retrieves the user name for the connention |
boolean |
isCurrentUser()
Whether this database link is connected via the current user. |
boolean |
isPublic()
Whether this database link is public. |
boolean |
isShared()
Whether this database link is shared. |
void |
setAuthentificationPassword(java.lang.String password)
Set the password for the authentification user |
void |
setAuthentificationUsername(java.lang.String username)
Set the user name for authentificating shared links |
void |
setCreated(java.lang.String created)
Set the dblink creation date |
void |
setCurrentUser(boolean currentUser)
Sets whether this database link is connected via the current user. |
void |
setHost(java.lang.String host)
Set the SQL*Net string for connect. |
void |
setPassword(java.lang.String password)
Set the password for the connention |
void |
setPublic(boolean pub)
Sets whether this database link is public. |
void |
setShared(boolean shared)
Sets whether this database link is shared. |
void |
setUsername(java.lang.String username)
Set the user name for the connention |
Methods inherited from class oracle.javatools.db.AbstractSchemaObject |
---|
addObjectListener, copyToImpl, equalsImpl, getParent, getSchema, removeObjectListener, setSchema |
Methods inherited from class oracle.javatools.db.AbstractBuildableObject |
---|
addObjectListener, checkInit, checkInit, checkInitEx, copyToImpl, equalsImpl, fireObjectUpdated, getOwnedObjectsImpl, getProperties, getProperty, getProperty, getReferenceIDsImpl, needsInitialization, removeObjectListener, setProperties, setProperty |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyToImpl, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.javatools.db.SystemObject |
---|
addObjectListener, fireObjectUpdated, removeObjectListener |
Methods inherited from interface oracle.javatools.db.DBObject |
---|
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, getProperty, setProperties, setProperty |
Field Detail |
---|
public static final java.lang.String TYPE
public static final java.lang.String PUBLIC_TYPE
Constructor Detail |
---|
public DatabaseLink()
public DatabaseLink(java.lang.String name, Schema schema, DBObjectID id)
name
- the name of the new DatabaseLinkschema
- the schema containing the DatabaseLinkid
- the id of this object.Method Detail |
---|
public java.lang.String getType()
DBObject
public boolean isPublic()
public void setPublic(boolean pub)
pub
- a boolean value indicating whether this schema is publicpublic boolean isShared()
public void setShared(boolean shared)
pub
- a boolean value indicating whether this schema is sharedpublic boolean isCurrentUser()
public void setCurrentUser(boolean currentUser)
pub
- a boolean value indicating whether this schema is
connected via the current user.public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.lang.String getHost()
public void setHost(java.lang.String host)
public java.lang.String getCreated()
public void setCreated(java.lang.String created)
public DBObjectProvider getDBLink()
This is a convenience method which will (if it can) return a DBObjectProvider for the Objects at thoe other end of the link. To do this for an online database, it mus be able to open a connection. This will require at least a username, password and host.
The password must be populated by the API user, it cannot be loaded from the catalog.
@Deprecated public java.lang.String getAuthentificationUser()
public java.lang.String getAuthentificationUsername()
public void setAuthentificationUsername(java.lang.String username)
public java.lang.String getAuthentificationPassword()
public void setAuthentificationPassword(java.lang.String password)
public DBObject copyTo(DBObject target, DBObject copyParent, IDPolicy idPolicy)
AbstractDBObject
This method does not fix internal reference ids on copy. That is done by
the calling DBObject.copyTo(DBObject, IDPolicy)
method.
copyTo
in class AbstractDBObject
DBObject.copyTo(java.lang.Object)
,
DBObject.copyTo(DBObject, boolean)
,
AbstractDBObject.copyToImpl(oracle.javatools.db.AbstractDBObject, oracle.javatools.db.DBObject, oracle.javatools.db.IDPolicy)
protected void copyToImpl(DatabaseLink copy, DBObject copyParent, IDPolicy idPolicy)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected boolean equalsImpl(DatabaseLink target)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |