Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


oracle.javatools.db.ora
Class DatabaseLink

java.lang.Object
  extended by oracle.javatools.db.AbstractDBObject
      extended by oracle.javatools.db.AbstractBuildableObject
          extended by oracle.javatools.db.AbstractSystemObject
              extended by oracle.javatools.db.AbstractSchemaObject
                  extended by oracle.javatools.db.ora.DatabaseLink

All Implemented Interfaces:
DBObject, SchemaObject, SystemObject, Copyable, DynamicPropertySet

public class DatabaseLink
extends AbstractSchemaObject

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 class oracle.javatools.db.AbstractSystemObject
m_listeners

 

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
 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()
          Deprecated. with no replacement.
 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 authentificationPassword)
          Set the password for the authentification user
 void setAuthentificationUsername(java.lang.String authentificationUsername)
          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, getProperty, getSchema, removeObjectListener, setProperty, setSchema

 

Methods inherited from class oracle.javatools.db.AbstractSystemObject
addObjectListener, fireObjectUpdated, getParent, removeObjectListener

 

Methods inherited from class oracle.javatools.db.AbstractBuildableObject
checkInit, checkInit, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization

 

Methods inherited from class oracle.javatools.db.AbstractDBObject
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, 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, getParent, getReferenceIDs, replaceReferenceIDs, setID, setName

 

Methods inherited from interface oracle.javatools.util.DynamicPropertySet
getProperties, getProperty, setProperties

 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

PUBLIC_TYPE

public static final java.lang.String PUBLIC_TYPE
See Also:
Constant Field Values

Constructor Detail

DatabaseLink

public DatabaseLink()
Construct a new DatabaseLink

DatabaseLink

public DatabaseLink(java.lang.String name,
                    Schema schema,
                    DBObjectID id)
Construct a new DatabaseLink .
Parameters:
name - the name of the new DatabaseLink
schema - the schema containing the DatabaseLink
id - the id of this object.

Method Detail

getType

public java.lang.String getType()
Description copied from interface: DBObject
Returns the type of this object. Valid types include things like tables, views, synonyms, and columns.
Returns:
a string describing the type of object.

isPublic

public boolean isPublic()
Whether this database link is public.
Returns:
a boolean value indicating whether this schema is public

setPublic

public void setPublic(boolean pub)
Sets whether this database link is public.
Parameters:
pub - a boolean value indicating whether this schema is public

isShared

public boolean isShared()
Whether this database link is shared.
Returns:
a boolean value indicating whether this schema is shared

setShared

public void setShared(boolean shared)
Sets whether this database link is shared.
Parameters:
shared - a boolean value indicating whether this schema is shared

isCurrentUser

public boolean isCurrentUser()
Whether this database link is connected via the current user.
Returns:
a boolean value indicating whether this schema is connected via the current user.

setCurrentUser

public void setCurrentUser(boolean currentUser)
Sets whether this database link is connected via the current user.
Parameters:
pub - a boolean value indicating whether this schema is connected via the current user.

getUsername

public java.lang.String getUsername()
Retrieves the user name for the connention

setUsername

public void setUsername(java.lang.String username)
Set the user name for the connention

getPassword

public java.lang.String getPassword()
Retrieves the password for the user.

setPassword

public void setPassword(java.lang.String password)
Set the password for the connention

getHost

public java.lang.String getHost()
Retrieves the SQL*Net string for connect.

setHost

public void setHost(java.lang.String host)
Set the SQL*Net string for connect.

getCreated

public java.lang.String getCreated()
Retrieves the dblink creation date.

setCreated

public void setCreated(java.lang.String created)
Set the dblink creation date

getDBLink

@Deprecated
public DBObjectProvider getDBLink()
Deprecated. with no replacement.

getAuthentificationUser

@Deprecated
public java.lang.String getAuthentificationUser()
Deprecated. 

getAuthentificationUsername

public java.lang.String getAuthentificationUsername()
Retrieves the user name for authentificating shared links

setAuthentificationUsername

public void setAuthentificationUsername(java.lang.String authentificationUsername)
Set the user name for authentificating shared links

getAuthentificationPassword

public java.lang.String getAuthentificationPassword()
Retrieves the password for the authentification user.

setAuthentificationPassword

public void setAuthentificationPassword(java.lang.String authentificationPassword)
Set the password for the authentification user

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


Copyright © 1997, 2013, Oracle. All rights reserved.