プライマリ・コンテンツに移動
Oracle® Spatial and Graph開発者ガイド
12cリリース1 (12.1)
B72470-07
目次へ移動
目次
索引へ移動
索引

前
次

15.4 WFSの管理用のJava API

SDO_WFS_PROCESSおよびSDO_WFS_LOCKパッケージに含まれるPL/SQL APIに加え、Java APIを使用してフィーチャ・タイプのパブリッシュおよび削除を行ったり、フィーチャ・タイプおよびWFSメタデータ表へのアクセス権限の付与および取消しを行うことができます。

この項では、oracle.spatial.wfs.WFSAdminクラスに含まれる各メソッドについての基本的な参照情報を説明します。ここでは、メソッドをアルファベット順に記載しています。

15.4.1 createXMLTableIndexメソッド

createXMLTableIndexメソッドは、ドキュメントベース・フィーチャ・タイプのインスタンスにXDB.XMLINDEXの索引を作成するメソッドです。このメソッドの書式は次のとおりです。

public static void createXMLTableIndex(
    OracleConnection conn, 
    String ftNSUrl, 
    String ftName) throws SQLException;

connは、DBAロールが付与されたユーザー用のOracle Database接続です。

ftNSUrlは、フィーチャ・タイプの名前空間のURLです。

ftNameは、フィーチャ・タイプの名前です。

15.4.2 dropFeatureTypeメソッド

dropFeatureTypeメソッドは、WFSリポジトリからフィーチャ・タイプを削除するメソッドです。このメソッドの書式は次のとおりです。

public static void dropFeatureType(
    OracleConnection conn, 
    String ftNSUrl, 
    String ftName) throws SQLException;

connは、DBAロールが付与されたユーザー用のOracle Database接続です。

ftNSUrlは、フィーチャ・タイプの名前空間のURLです。

ftNameは、フィーチャ・タイプの名前です。

15.4.3 dropXMLTableIndexメソッド

dropXMLTableIndexメソッドは、ドキュメントベース・フィーチャ・タイプのインスタンスに対して作成されたXDB.XMLINDEX型の索引を削除するメソッドです。このメソッドの書式は次のとおりです。

public static void dropXMLTableIndex(
    OracleConnection conn, 
    String ftNSUrl, 
    String ftName) throws SQLException;

connは、DBAロールが付与されたユーザー用のOracle Database接続です。

ftNSUrlは、フィーチャ・タイプの名前空間のURLです。

ftNameは、フィーチャ・タイプの名前です。

15.4.4 getIsXMLTableIndexCreatedメソッド

getIsXMLTableIndexCreatedメソッドは、ドキュメントベース・フィーチャ・タイプにXDB.XMLINDEX型の索引が作成されている場合はブール値TRUEを戻し、そのような索引が作成されていない場合はブール値FALSEを戻すメソッドです。このメソッドの書式は次のとおりです。

public static boolean getIsXMLTableIndexCreated(
    OracleConnection conn, 
    String ftNSUrl, 
    String ftName) throws SQLException;

connは、DBAロールが付与されたユーザー用のOracle Database接続です。

ftNSUrlは、フィーチャ・タイプの名前空間のURLです。

ftNameは、フィーチャ・タイプの名前です。

15.4.5 grantFeatureTypeToUserメソッド

grantFeatureTypeToUserメソッドは、フィーチャ・タイプへのアクセス権限をデータベース・ユーザーに付与するメソッドです。このメソッドの書式は次のとおりです。

public static void grantFeatureTypeToUser(
    OracleConnection conn, 
    String typeNS, 
    String typeName, 
    String usrName)  throws SQLException;
 

connは、DBAロールが付与されたユーザー用のOracle Database接続です。

typeNSは、フィーチャ・タイプの名前空間のURLです。

typeNameは、フィーチャ・タイプの名前です。

usrNameは、データベース・ユーザーの名前です。

15.4.6 grantMDAccessToUserメソッド

grantMDAccessToUserメソッドは、WFSメタデータへのアクセス権限をデータベース・ユーザーに付与するメソッドです。このメソッドの書式は次のとおりです。

public static void grantMDAccessToUser(
    OracleConnection conn, 
    String usrName)  throws SQLException;
 

connは、DBAロールが付与されたユーザー用のOracle Database接続です。

usrNameは、データベース・ユーザーの名前です。

15.4.7 publishFeatureTypeメソッド

publishFeatureTypeメソッドは、ドキュメントベース・フィーチャ・タイプをパブリッシュするメソッドです。つまり、このメソッドによって、フィーチャ・タイプに関連するメタデータが登録されます。このメソッドの書式は次のとおりです。

public static void publishFeatureType(OracleConnection conn, 
     XMLType featureTypeMD) throws SQLException , WFSException;
 
public static void publishFeatureType(OracleConnection conn, 
     XMLType schemaDocXt, 
     XMLType featureDescXt, 
     ArrayList<String> docIdPaths, 
     String primarySpatialPath, 
     String featureMemberNS, 
     String featureMemberName, 
     String ftNSUrl, 
     String ftName, 
     ArrayList<PathInfo> spatialPaths, 
     ArrayList<PathInfo> mandatoryPaths, 
     ArrayList<PathInfo> tsPaths, 
     ArrayList<GeomMetaInfo> sdoMetaInfo, 
     String srsNS, 
     String srsNSAlias) throws SQLException;
 
public static void publishFeatureType(OracleConnection conn, 
     XMLType schemaDocXt, 
     XMLType featureDescXt, 
     ArrayList<String> docIdPaths,   
     String primarySpatialPath, 
     String featureMemberNS, 
     String featureMemberName, 
     String ftNSUrl, 
     String ftName, 
     ArrayList<PathInfo> spatialPaths, 
     ArrayList<PathInfo> mandatoryPaths, 
     ArrayList<PathInfo> tsPaths, 
     ArrayList<GeomMetaInfo> sdoMetaInfo, 
     String srsNS, 
     String srsNSAlias, 
     String ftXSDRefId) throws SQLException;
 
public static void publishFeatureType(OracleConnection conn,
     XMLType schemaDocXt, 
     XMLType featureDescXt, 
     ArrayList<String> docIdPaths,
     String primarySpatialPath,
     String featureMemberNS,
     String featureMemberName,
     String ftNSUrl, 
     String ftName,
     ArrayList<PathInfo> spatialPaths, 
     ArrayList<PathInfo> mandatoryPaths, 
     ArrayList<PathInfo> tsPaths,
     ArrayList<GeomMetaInfo> sdoMetaInfo,
     String srsNS, 
     String srsNSAlias,
     String ftXSDRefId,
     boolean genSpatialIndex,
     boolean lockEnable) throws SQLException;
 
public static void publishFeatureType(OracleConnection conn, 
     XMLType schemaDocXt, 
     XMLType featureDescXt, 
     ArrayList<String> docIdPaths, 
     String primarySpatialPath, 
     String featureMemberNS, 
     String featureMemberName, 
     String ftNSUrl, 
     String ftName, 
     ArrayList<PathInfo> spatialPaths, 
     ArrayList<PathInfo> mandatoryPaths, 
     ArrayList<PathInfo> tsPaths, 
     ArrayList<GeomMetaInfo> sdoMetaInfo, 
     String srsNS, 
     String srsNSAlias, 
     String ftXSDRefId, 
     boolean genSpatialIndex, 
     boolean lockEnable, 
     ArrayList<PathInfo> numPaths,
     ArrayList<PathInfo> idxPaths,
     ArrayList<String[]> idxPathTypes, 
     boolean genXMLIndex) throws SQLException;
 
public static void publishFeatureType(OracleConnection conn, 
     XMLType schemaDocXt, 
     XMLType featureDescXt, 
     ArrayList<String> docIdPaths, 
     String primarySpatialPath, 
     String featureMemberNS, 
     String featureMemberName, 
     String ftNSUrl, 
     String ftName, 
     ArrayList<PathInfo> spatialPaths, 
     ArrayList<PathInfo> mandatoryPaths, 
     ArrayList<PathInfo> tsPaths, 
     ArrayList<GeomMetaInfo> sdoMetaInfo, 
     String srsNS, 
     String srsNSAlias, 
     String ftXSDRefId, 
     boolean genSpatialIndex, 
     boolean lockEnable, 
     ArrayList<PathInfo> numPaths,
     ArrayList<PathInfo> idxPaths,
     ArrayList<String[]> idxPathTypes, 
     boolean genXMLIndex, 
     String featureCollectionNS,
     String featureCollectionName, 
     boolean isGML3) throws SQLException;
 
public static void publishFeatureType(OracleConnection conn, 
     XMLType schemaDocXt, 
     XMLType featureDescXt, 
     ArrayList<String> docIdPaths, 
     String primarySpatialPath, 
     String featureMemberNS, 
     String featureMemberName, 
     String ftNSUrl, 
     String ftName, 
     ArrayList<PathInfo> spatialPaths, 
     ArrayList<PathInfo> mandatoryPaths, 
     ArrayList<PathInfo> tsPaths, 
     ArrayList<GeomMetaInfo> sdoMetaInfo, 
     String srsNS, 
     String srsNSAlias, 
     String ftXSDRefId, 
     boolean genSpatialIndex, 
     boolean lockEnable, 
     ArrayList<PathInfo> numPaths,
     ArrayList<PathInfo> idxPaths,
     ArrayList<String[]> idxPathTypes, 
     boolean genXMLIndex, 
     String featureCollectionNS,
     String featureCollectionName, 
     boolean isGML3, 
     CollectionPathInfo collPathInfo) throws SQLException;
 
public static void publishFeatureType(OracleConnection conn, 
     XMLType schemaDocXt, 
     XMLType featureDescXt, 
     ArrayList<String> docIdPaths, 
     String primarySpatialPath, 
     String featureMemberNS, 
     String featureMemberName, 
     String ftNSUrl, 
     String ftName, 
     ArrayList<PathInfo> spatialPaths, 
     ArrayList<PathInfo> mandatoryPaths, 
     ArrayList<PathInfo> tsPaths, 
     ArrayList<GeomMetaInfo> sdoMetaInfo, 
     String srsNS, 
     String srsNSAlias, 
     String ftXSDRefId, 
     boolean genSpatialIndex, 
     boolean lockEnable, 
     ArrayList<PathInfo> numPaths,
     ArrayList<PathInfo> idxPaths,
     ArrayList<String[]> idxPathTypes, 
     boolean genXMLIndex, 
     String featureCollectionNS,
     String featureCollectionName, 
     boolean isGML3, 
     CollectionPathInfo collPathInfo, 
     boolean hasMultipleSRSNS) throws SQLException;

connは、DBAロールが付与されたユーザー用のOracle Database接続です。

featureTypeMDは、フィーチャ・タイプのパス登録メタデータです。このメタデータは、wstype_md.xsdファイルで指定されているfeatureTypeMd要素定義に準拠する必要があります。フィーチャ・タイプのパス登録メタデータのXMLの例は、ft_metadata.xmlに用意されています。これらのファイルは、src/data/パスの下にあるws_client.jarデモ・ファイル(「サンプルJavaクライアントのデモ・ファイル」を参照)に含まれています。フィーチャ・タイプをパブリッシュする例の使用方法は、Readme.txt ファイルを参照してください。このファイルはsrc/パスの下にあるws_client.jarに含まれています。

schemaDocXtは、フィーチャ・タイプのXMLスキーマ定義(XSD)です。

featureDescXtは、フィーチャ・タイプ記述のXMLスキーマ定義(XSD)で、Capabilitiesドキュメントに含められます。

docIdPathsは、ドキュメントIDパス要素のリストです。各要素はString型です。

primarySpatialPathは、結果に含まれる境界ボックスの計算に使用されるプライマリ空間パスです。

featureMemberNSは、フィーチャ・メンバーの名前空間です。

featureMemberNameは、フィーチャ・メンバーの名前です。

ftNSUrlは、フィーチャ・タイプの名前空間のURLです。

ftNameは、フィーチャ・タイプの名前です。

spatialPathsは、フィーチャ・タイプに含まれる空間パスのリストです。これは、oracle.spatial.ws.PathInfoクラス(「publishFeatureTypeに関連するクラス」を参照)のArrayListです。

mandatoryPathsは、フィーチャ・タイプに含まれる必須パスのリストです。これは、oracle.spatial.ws.PathInfoクラス(「publishFeatureTypeに関連するクラス」を参照)のArrayListです。

tsPathsは、フィーチャ・タイプに含まれる時間に関連したパスのリストです(datedateTimegYeargMonthgDaygMonthDaygYearMonthなど)。これは、oracle.spatial.ws.PathInfoクラス(「publishFeatureTypeに関連するクラス」を参照)のArrayListです。

sdoMetaInfoは、空間パスの空間メタデータ情報です。これは、oracle.spatial.ws.GeomMetaInfoクラス(「publishFeatureTypeに関連するクラス」を参照)のArrayListです。

srsNSは、空間パス内のデータと関連付けられた空間参照システム(座標系)のユーザー定義の名前空間です。この名前空間は(指定されている場合)、GetFeatureリクエストに対する回答として生成されるFeatureCollectionの<boundedBy>要素内のsrsName属性を生成するときにも使用されます。

srsNSAliasは、空間パス内のデータと関連付けられた空間参照システム(座標系)の名前空間の別名です。

ftXSDRefIdは、1つのXSDファイル内に複数のフィーチャ・タイプが定義されている場合は、グループ・フィーチャ・タイプのXMLスキーマ定義ファイル名(文字列)です。このパラメータは、グループXSD定義をWFSメタデータ内に格納する際に使用されると、その後、グループ・フィーチャ・タイプXSDファイル内にスキーマが定義されている複数のフィーチャ・タイプから参照されます。

genSpatialIndexは、ブール値です。TRUEの場合は、タイプの作成時に空間索引がフィーチャ・タイプ上に作成されます。FALSEの場合、空間索引の作成は行われません。

lockEnableは、ブール値です。TRUEの場合は、タイプの作成時にフィーチャ・タイプ表(このフィーチャ・タイプのインスタンスが格納されるシステム生成の基礎表)のロックが有効化されます。FALSEの場合は、フィーチャ・タイプ表のロックは有効化されません。lockEnableTRUEの場合は、フィーチャ・タイプのWFSデータ表のWFSトランザクション・ロックが有効化されます。(このデータ表はフィーチャ・タイプのパブリッシュ時に自動生成されます。)

numPathsは、フィーチャ・タイプに含まれる数値(NUMBER、INTEGERなど)に関連するパスのリストです。これは、oracle.spatial.ws.PathInfoクラス(「publishFeatureTypeに関連するクラス」を参照)のArrayListです。

idxPathsは、索引パスのリストです。これは、XDB.XMLINDEX型の索引の作成時に、索引が作成されるパスのリストです。これは、oracle.spatial.ws.PathInfoクラス(「publishFeatureTypeに関連するクラス」を参照)のArrayListです。

idxPathTypesは、各索引パスの情報を指定します。このパスには、string[3]の次の各要素が含まれます。string[0]にはタイプ名、string[1]にはタイプの形式(長さのタイプなど)、string[2]には、Bツリー索引と一意索引のいずれを作成するか、または索引の作成を行わないかの指定(WFSAdmin.BTREEWFSAdmin.UNIQUEまたはNULL)が含まれます。

genXMLIndexは、ブール値です。TRUEの場合は、タイプXDB.XMLINDEXの索引がドキュメントベースのフィーチャ・タイプ上に作成されます。FALSEの場合、タイプXDB.XMLINDEXの索引はドキュメントベースのフィーチャ・タイプ上に作成されません。現時点で索引を作成しないことを選択する場合でも、createXMLTableIndexメソッド(「createXMLTableIndexメソッド」を参照)を使用して後から作成できます。

featureCollectionNSは、フィーチャ・コレクションの名前空間です。

featureCollectionNameは、フィーチャ・コレクションの名前です。

isGML3は、ブール値です。TRUEは、このフィーチャ・タイプのインスタンスに含まれるジオメトリがGML3.1.1に準拠していることを表します。FALSEは、このフィーチャ・タイプのインスタンスに含まれるジオメトリがGML 2.1.2に準拠していることを表します。

collPathInfoは、空間コレクションのパス情報です。

hasMultipleSRSNSは、ブール値です。TRUEは、このフィーチャ・タイプから複数のユーザー定義の空間参照システムの名前空間が参照されることを表します。FALSEは、このフィーチャ・タイプから複数のユーザー定義の空間参照システムの名前空間は参照されないことを表します。

15.4.7.1 publishFeatureTypeに関連するクラス

この項では、publishFeatureTypeメソッドのパラメータ定義で使用されるいくつかのクラスについて説明します。

oracle.spatial.ws.PathElementPathElement名前空間およびPathElement名の2つのStringオブジェクトを含むJavaクラスです。このクラスには、getValue()メソッドが含まれ、このメソッドからは文字列形式のPathElementオブジェクトが戻されます。このクラスの書式は次のとおりです。

public class PathElement {
// Set namespace and name information for a PathElement.
        public void set(String ns, String name);
 //Get a string value for the PathElement object.
        public String getValue() ;
}

oracle.spatial.ws.Pathは、パスを構成する順序付けされたPathElementオブジェクトのリストを含むJavaクラスです。たとえば、XPathがmyns:A/myns:Bである場合、myns:Aおよびmyns:BPathElementオブジェクトということになります。このクラスには、getValue()メソッドが含まれ、このメソッドからは文字列形式のPathオブジェクトが戻されます。このクラスの書式は次のとおりです。

public class Path {
//Add a PathElement.
        public void add(PathElement p) ;
//Get a string Value for the Path object.
        public String getValue() ;
}

oracle.spatial.ws.PathInfoは、パスの関連付けおよびメタデータの情報など、パスまたはパスのリストに関する情報を含むコンテナ・クラスです。このクラスの書式は次のとおりです。

public class PathInfo {
 
 // Set number of occurrences for the Path. Default value is 1. Number of 
 // occurrences > 1 in case of arrays.
        public void setNumOfOccurrences(int i) ;
 
 // Get number of occurrences for the Path.
        public int getNumOfOccurrences();
 
 // Add a path, in case PathInfo has multiple paths associated via a 
 // choice association
        public void addPath(Path p) ;
 
  // Add path type information. This is relevant for time-related Paths
  // (for example, date, dateTime, gDay, gMonth, gYear, gMonthDay, 
  // gYearMonth, duration, or time).
        public void addPathType(String t) ;
 
  // Add a PathInfo type. This can be PathInfo.CHOICE or 
  // PathInfo.DEFAULT or PathInfo.COLLECTION.
  // PathInfo.CHOICE - means that the list of paths  in this PathInfo are
  // related to each other via choice association. For example, we may have
  // a list of Spatial Paths, which are associated with one another via choice.
  // So, only one of these path can occur in a feature instance/document.
  // PathInfo.COLLECTION - means the list of paths in this PathInfo are part 
  // of a collection (currently spatial collections are 
  // supported) which will be indexed.
  // Default value is PathInfo.DEFAULT for one Path or a finite array Paths.
  //  @param t PathInfo type information. PathInfo.CHOICE or 
  // PathInfo.DEFAULT or PathInfo.COLLECTION
        public void addPathInfoType(int t) ;
 
 //  Returns a  string representation for PathInfo content.
        public String getPathContent() ;
 
 // Returns Path type information (for example, date, dateTime, gDay, gMonth, 
 // gYear, gMonthDay, gYearMonth, duration, or time).
        public String getPathType() ;
 
 // Returns a  string representation for PathInfo path content.
 // param i The index of the path in the PathInfo whose path content needs to
 // be returned
 // @return a  string representation for PathInfo path content
        public String getCollectionPathContent(int i);
 
 // Returns number of paths in the PathInfo. 
 // @return number of paths in the PathInfo which is of type PathInfo.COLLECTION
 // if PathInfo is not of type PathInfo.COLLECTION returns -1
        public int getCollectionPathContentSize();
}

oracle.spatial.ws.CollectionPathInfoは、PathInfoオブジェクトのコレクションに関する情報を含むコンテナ・クラスです。このコレクションに含まれる各PathInfoオブジェクトは、索引付けされて検索対象になる空間パスのグループを表します。このクラスは、フィーチャ・タイプおよびレコード・タイプ内のコレクションをベースにした空間コンテンツを参照するパスの登録に使用されます。このクラスの書式は次のとおりです。

public class CollectionPathInfo {
 
  /**
   * Add a PathInfo.
   * @param p PathInfo to be added 
   * @param g geometry related metadata for PathInfo to be added 
   */
  public void addPathInfo(PathInfo p, GeomMetaInfo g) ;
 
  /**
   * Get a PathInfo.
   * @param i index of the PathInfo to be retrieved
   */
  public PathInfo getPathInfo(int i) ;
  /**
   * Get geometry related metadata for a certain PathInfo.
   * @param i index of the PathInfo whose geomMetaInfo is to be retrieved
  */
        public GeomMetaInfo getGeomMetaInfo(int i) ;
 
  /**
   * Get all PathInfo objects in this CollectionPathInfo.
   */
        public ArrayList<PathInfo> getPathInfos() ;
}

oracle.spatial.ws.GeomMetaInfoは、フィーチャ・タイプ内の空間パスに対応する次元関連の情報を含むクラスです。この情報には、次元名、下限および上限、許容差および座標系(SRID)が含まれます。このクラスの書式は次のとおりです。

public class GeomMetaInfo {
 
  // Default constructor. Creates a GeomMetaInfo object with number of 
  // dimensions equal to 2.
        public GeomMetaInfo() ;
 
  // Creates a GeomMetaInfo object of a specified number of dimensions.
  // Parameter numOfDimensions is the number of dimensions represented
  // in the GeomMetaInfo object.
  // Note: max number of dimensions supported is 4.
        public GeomMetaInfo(int numOfDimensions)  throws  
        ArrayIndexOutOfBoundsException ;
 
  //Set Dimension Name.
  // Parameter index represents the dimension index which needs to be set.
  // Parameter val is dimension name value.
        public void setDimName(int index, String val) throws
        ArrayIndexOutOfBoundsException ;
 
  // Set Dimension Lower Bound.
  // Parameter index represents the dimension index which needs to be set.
  // Parameter val is dimension lower bound value.
        public void setLB(int index, double val) throws 
        ArrayIndexOutOfBoundsException ;
 
  // Set Dimension Upper Bound
  // Parameter index represents the dimension index which needs to be set.
  // Parameter val is dimension upper bound value
        public void setUB(int index, double val) throws 
        ArrayIndexOutOfBoundsException ;
 
  // Set Dimension tolerance value.
  // Parameter index represents the dimension index which needs to be set.
  // Parameter  val is dimension tolerance value.
        public void setTolerance(int index, double val) throws 
        ArrayIndexOutOfBoundsException ;
 
  // Set Coordinate Reference System Identifier
        public void setSRID (int val) ;
 
  // Get dimension Name.
  // Parameter index represents the dimension index whose name needs to be 
  // returned. This method returns the dimension name for the given index.
        public String getDimName(int index) throws 
        ArrayIndexOutOfBoundsException ;
 
  // Get dimension lower bound.
  // Parameter index represents the dimension index whose lower bound needs
  //  to be returned.
  // This method returns the lower bound for the given index.
        public double getLB(int index) throws ArrayIndexOutOfBoundsException ;
 
  // Get dimension upper bound.
  // Parameter index represents the dimension index whose upper bound needs 
  // to be returned.
  // This method returns the upper bound for the given index.
        public double getUB(int index) throws ArrayIndexOutOfBoundsException ;
 
       // Get dimension tolerance.
  // Parameter index represents the dimension index whose tolerance needs 
  // to be returned.
  // This method returns the tolerance value for the given index.
        public double getTolerance(int index) throws
        ArrayIndexOutOfBoundsException ;
 
  // Get coordinate system (spatial reference system) identifier.
        public int getSRID () ;
 
  // Get number of dimensions represented by this GeomMetaInfo object.
        public int getNumOfDimensions() ;
 
  // Sets the spatial index dimension parameter. By default it is 2.
  // return  Coordinate Reference System Identifier value
        public int setSpatialIndexDimension(int d) ;
 
  // Get the spatial index dimension parameter.
  // return  number of dimensions
        public int getSpatialIndexDimension() ;
 
  // Sets the user spatial srs namespace refered by this GeomMetaInfo object. 
  // Needs to be specified if multiple srs namespace are refered within the same 
  //feature or record type.
        public void setSRSNS(String s) ;
 
  // Gets the user defined spatial srs namespace refered by this 
  // GeomMetaInfo object.
        public String getSRSNS() ;
 
  // Sets the user defined spatial srs namespace alias refered by this 
  // GeomMetaInfo object. 
        public void setSRSNSAlias (String s) ;
 
  // Gets the user defined spatial srs namespace  alias refered by this 
  // GeomMetaInfo object.
        public String getSRSNSAlias () ;
}

15.4.8 revokeFeatureTypeFromUserメソッド

revokeFeatureTypeFromUserメソッドは、フィーチャ・タイプへのアクセス権限をデータベース・ユーザーから取り消すメソッドです。このメソッドの書式は次のとおりです。

public static void revokeFeatureTypeFromUser(
    OracleConnection conn, 
    String typeNS, 
    String typeName, 
    String usrName)  throws SQLException;
 

connは、DBAロールが付与されたユーザー用のOracle Database接続です。

typeNSは、フィーチャ・タイプの名前空間のURLです。

typeNameは、フィーチャ・タイプの名前です。

usrNameは、データベース・ユーザーの名前です。

15.4.9 revokeMDAccessFromUserメソッド

revokeMDAccessFromUserメソッドは、WFSメタデータへのアクセス権限をデータベース・ユーザーから取り消すメソッドです。このメソッドの書式は次のとおりです。

public static void revokeMDAccessFromUser(
    OracleConnection conn, 
    String usrName)  throws SQLException;
 

connは、DBAロールが付与されたユーザー用のOracle Database接続です。

usrNameは、データベース・ユーザーの名前です。

15.4.10 setXMLTableIndexInfoメソッド

setXMLTableIndexInfoメソッドは、索引を作成するオプションを使用してドキュメントベース・フィーチャ・タイプのXMLTableIndex索引の情報を更新します。このメソッドの書式は次のとおりです。

注意:

XMLTableIndex索引がすでに存在する場合は、setXMLTableIndexInfoメソッドをコールする前に、(dropXMLTableIndexメソッドを使用して)索引を削除する必要があります。

public static void setXMLTableIndexInfo(OracleConnection conn,
   String ftNSUrl,
   String ftName,
   ArrayList<PathInfo> idxPaths,
   ArrayList<String[]> idxPathTypes,
   boolean genXMLIndex) throws SQLException , WFSException;

connは、DBAロールが付与されたユーザー用のOracle Database接続です。

ftNSUrlは、フィーチャ・タイプの名前空間のURLです。

ftNameは、フィーチャ・タイプの名前です。

idxPathsは、索引パスのリストです。これは、XDB.XMLINDEX型の索引の作成時に、索引が作成されるパスのリストです。これは、oracle.spatial.ws.PathInfoクラス(「publishFeatureTypeに関連するクラス」を参照)のArrayListです。

idxPathTypesは、各索引パスの情報を指定します。このパスには、string[3]の次の各要素が含まれます。string[0]にはタイプ名、string[1]にはタイプの形式(長さのタイプなど)、string[2]には、Bツリー索引と一意索引のいずれを作成するか、または索引の作成を行わないかの指定(WFSAdmin.BTREEWFSAdmin.UNIQUEまたはNULL)が含まれます。

genXMLIndexは、ブール値です。TRUEの場合は、タイプXDB.XMLINDEXの索引がドキュメントベースのフィーチャ・タイプ上に作成されます。FALSEの場合、タイプXDB.XMLINDEXの索引はドキュメントベースのフィーチャ・タイプ上に作成されません。現時点で索引を作成しないことを選択する場合でも、createXMLTableIndexメソッド(「createXMLTableIndexメソッド」を参照)を使用して後から作成できます。