Package oracle.spatial.network
Interface UserDataMetadata
-
- All Superinterfaces:
java.lang.Cloneable,java.io.Serializable
public interface UserDataMetadata extends java.lang.Cloneable, java.io.SerializableThis class defines the metadata for user data. Data names will directly map to table column names Data Types: are INTEGER, NUMBER, VARCHAR2, and SDO_GEOMETRY Data Length is only for data with types of VARCHAR2
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDATE_TYPEstatic intDEFAULT_USER_DATA_CATEGORYstatic java.lang.StringINTEGER_TYPEstatic java.lang.StringLINK_TABLE_TYPEstatic java.lang.StringNODE_TABLE_TYPEstatic java.lang.StringNUMBER_TYPEstatic java.lang.StringOBJECT_TYPEstatic java.lang.StringPATH_TABLE_TYPEstatic java.lang.StringSDO_GEOMETRY_TYPEstatic java.lang.StringSUBPATH_TABLE_TYPEstatic java.lang.StringTIMESTAMP_TYPEstatic java.lang.StringVARCHAR2_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLinkData(java.lang.String dataName, java.lang.String dataType, int dataLength, int categoryId)Adds a link user data entry to the metadatavoidaddNodeData(java.lang.String dataName, java.lang.String dataType, int dataLength, int categoryId)Adds a node user data entry to the metadatavoidaddPathData(java.lang.String dataName, java.lang.String dataType, int dataLength, int categoryId)Adds a path user data entry to the metadatavoidaddSubPathData(java.lang.String dataName, java.lang.String dataType, int dataLength, int categoryId)Adds a subpath user data entry to the metadatabooleancontainsLinkUserData(java.lang.String dataName)Checks if the given link user data name existsbooleancontainsNodeUserData(java.lang.String dataName)Checks if the given node user data name existsbooleancontainsPathUserData(java.lang.String dataName)Checks if the given path user data name existsbooleancontainsSubPathUserData(java.lang.String dataName)Checks if the given subpath user data name existsvoiddeleteLinkData(java.lang.String dataName)Deletes a link user data entry from the metadatavoiddeleteNodeData(java.lang.String dataName)Deletes a node user data entry from the metadatavoiddeletePathData(java.lang.String dataName)Deletes a path user data entry from the metadatavoiddeleteSubPathData(java.lang.String dataName)Deletes a subpath user data entry from the metadatajava.util.Map<java.lang.String,java.lang.Integer>getLinkDataIndexMap(int category)Returns the link user data index map.intgetLinkDataLength(java.lang.String dataName)Returns the link user data lengthjava.lang.String[]getLinkDataNames()Returns the link user data names in a String arrayjava.lang.String[]getLinkDataNames(int category)Returns the link user data names in a String arrayjava.lang.StringgetLinkDataType(java.lang.String dataName)Returns the link user data type of the given data namejava.lang.StringgetNetworkName()Returns the network namejava.util.Map<java.lang.String,java.lang.Integer>getNodeDataIndexMap(int category)Returns the node user data index map.intgetNodeDataLength(java.lang.String dataName)Returns the node user data lengthjava.lang.String[]getNodeDataNames()Returns the node user data names in a String arrayjava.lang.String[]getNodeDataNames(int category)Returns the node user data names in a String arrayjava.lang.StringgetNodeDataType(java.lang.String dataName)Returns the node user data type of the given data nameintgetNumberOfCategories()Returns the number of user data categories.java.util.Map<java.lang.String,java.lang.Integer>getPathDataIndexMap(int category)Returns the path user data index map.intgetPathDataLength(java.lang.String dataName)Returns the path user data lengthjava.lang.String[]getPathDataNames()Returns the path user data names in a String arrayjava.lang.String[]getPathDataNames(int category)Returns the path user data names in a String arrayjava.lang.StringgetPathDataType(java.lang.String dataName)Returns the path user data type of the given data namejava.util.Map<java.lang.String,java.lang.Integer>getSubPathDataIndexMap(int category)Returns the subpath user data index map.intgetSubPathDataLength(java.lang.String dataName)Returns the subpath user data lengthjava.lang.String[]getSubPathDataNames()Returns the subpath user data names in a String arrayjava.lang.String[]getSubPathDataNames(int category)Returns the subpath user data names in a String arrayjava.lang.StringgetSubPathDataType(java.lang.String dataName)Returns the subpath user data type of the given data namejava.lang.String[]getSupportedDataTypes()Returns all surported data type in the user data metadataintgetUserDataIndex(java.lang.String tableType, java.lang.String dataName, int category)Returns the user data index.java.util.Map<java.lang.String,java.lang.Integer>getUserDataIndexMap(java.lang.String tableType, int category)Returns the user data index map for the specified table type or feature layer name.intgetUserDataLength(java.lang.String tableType, java.lang.String dataName)Returns the user data lengthjava.lang.String[]getUserDataNames(java.lang.String tableType)Returns the user data names in the default category for the specified table typejava.lang.String[]getUserDataNames(java.lang.String tableType, int category)Returns the user data names in the given category for the specified table typejava.lang.StringgetUserDataType(java.lang.String tableType, java.lang.String dataName)Returns the user data type for the give data namebooleanisEmpty()Checks if the metadata contains any databooleanvalidDataType(java.lang.String dataType)Checks if the given data type is supported
-
-
-
Field Detail
-
NODE_TABLE_TYPE
static final java.lang.String NODE_TABLE_TYPE
- See Also:
- Constant Field Values
-
LINK_TABLE_TYPE
static final java.lang.String LINK_TABLE_TYPE
- See Also:
- Constant Field Values
-
PATH_TABLE_TYPE
static final java.lang.String PATH_TABLE_TYPE
- See Also:
- Constant Field Values
-
SUBPATH_TABLE_TYPE
static final java.lang.String SUBPATH_TABLE_TYPE
- See Also:
- Constant Field Values
-
INTEGER_TYPE
static final java.lang.String INTEGER_TYPE
- See Also:
- Constant Field Values
-
NUMBER_TYPE
static final java.lang.String NUMBER_TYPE
- See Also:
- Constant Field Values
-
VARCHAR2_TYPE
static final java.lang.String VARCHAR2_TYPE
- See Also:
- Constant Field Values
-
SDO_GEOMETRY_TYPE
static final java.lang.String SDO_GEOMETRY_TYPE
- See Also:
- Constant Field Values
-
DATE_TYPE
static final java.lang.String DATE_TYPE
- See Also:
- Constant Field Values
-
TIMESTAMP_TYPE
static final java.lang.String TIMESTAMP_TYPE
- See Also:
- Constant Field Values
-
OBJECT_TYPE
static final java.lang.String OBJECT_TYPE
- See Also:
- Constant Field Values
-
DEFAULT_USER_DATA_CATEGORY
static final int DEFAULT_USER_DATA_CATEGORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNetworkName
java.lang.String getNetworkName()
Returns the network name
-
getUserDataNames
java.lang.String[] getUserDataNames(java.lang.String tableType)
Returns the user data names in the default category for the specified table type- Parameters:
tableType- table type or feature layer name- Returns:
-
getNodeDataNames
java.lang.String[] getNodeDataNames()
Returns the node user data names in a String array
-
getLinkDataNames
java.lang.String[] getLinkDataNames()
Returns the link user data names in a String array
-
getPathDataNames
java.lang.String[] getPathDataNames()
Returns the path user data names in a String array
-
getSubPathDataNames
java.lang.String[] getSubPathDataNames()
Returns the subpath user data names in a String array
-
getUserDataNames
java.lang.String[] getUserDataNames(java.lang.String tableType, int category)Returns the user data names in the given category for the specified table type- Parameters:
tableType- table type or feature layer namecategory-- Returns:
-
getNodeDataNames
java.lang.String[] getNodeDataNames(int category)
Returns the node user data names in a String array
-
getLinkDataNames
java.lang.String[] getLinkDataNames(int category)
Returns the link user data names in a String array
-
getPathDataNames
java.lang.String[] getPathDataNames(int category)
Returns the path user data names in a String array
-
getSubPathDataNames
java.lang.String[] getSubPathDataNames(int category)
Returns the subpath user data names in a String array
-
getUserDataType
java.lang.String getUserDataType(java.lang.String tableType, java.lang.String dataName)Returns the user data type for the give data name- Parameters:
tableType- table type of feature layer namedataName- node user data name
-
getNodeDataType
java.lang.String getNodeDataType(java.lang.String dataName)
Returns the node user data type of the given data name- Parameters:
dataName- node user data name
-
getLinkDataType
java.lang.String getLinkDataType(java.lang.String dataName)
Returns the link user data type of the given data name- Parameters:
dataName- link user data name
-
getPathDataType
java.lang.String getPathDataType(java.lang.String dataName)
Returns the path user data type of the given data name- Parameters:
dataName- path user data name
-
getSubPathDataType
java.lang.String getSubPathDataType(java.lang.String dataName)
Returns the subpath user data type of the given data name- Parameters:
dataName- subpath user data name
-
getUserDataLength
int getUserDataLength(java.lang.String tableType, java.lang.String dataName)Returns the user data length- Parameters:
tableType- table type or feature layer namedataName- user data name
-
getNodeDataLength
int getNodeDataLength(java.lang.String dataName)
Returns the node user data length- Parameters:
dataName- node user data name
-
getLinkDataLength
int getLinkDataLength(java.lang.String dataName)
Returns the link user data length- Parameters:
dataName- link user data name
-
getPathDataLength
int getPathDataLength(java.lang.String dataName)
Returns the path user data length- Parameters:
dataName- path user data name
-
getSubPathDataLength
int getSubPathDataLength(java.lang.String dataName)
Returns the subpath user data length- Parameters:
dataName- path user data name
-
addNodeData
void addNodeData(java.lang.String dataName, java.lang.String dataType, int dataLength, int categoryId) throws NetworkDataExceptionAdds a node user data entry to the metadata- Parameters:
dataName- node user data namedataType- node user data typedataLength- node user data length if applicable- Throws:
NetworkDataException- if such entry already exists
-
addLinkData
void addLinkData(java.lang.String dataName, java.lang.String dataType, int dataLength, int categoryId) throws NetworkDataExceptionAdds a link user data entry to the metadata- Parameters:
dataName- link user data namedataType- link user data typedataLength- link user data length if applicable- Throws:
NetworkDataException- if such entry already exists
-
addPathData
void addPathData(java.lang.String dataName, java.lang.String dataType, int dataLength, int categoryId) throws NetworkDataExceptionAdds a path user data entry to the metadata- Parameters:
dataName- path user data namedataType- path user data typedataLength- path user data length if applicable- Throws:
NetworkDataException- if such entry already exists
-
addSubPathData
void addSubPathData(java.lang.String dataName, java.lang.String dataType, int dataLength, int categoryId) throws NetworkDataExceptionAdds a subpath user data entry to the metadata- Parameters:
dataName- subpath user data namedataType- subpath user data typedataLength- subpath user data length if applicable- Throws:
NetworkDataException- if such entry already exists
-
deleteNodeData
void deleteNodeData(java.lang.String dataName)
Deletes a node user data entry from the metadata- Parameters:
dataName- node user data name
-
deleteLinkData
void deleteLinkData(java.lang.String dataName)
Deletes a link user data entry from the metadata- Parameters:
dataName- link user data name
-
deletePathData
void deletePathData(java.lang.String dataName)
Deletes a path user data entry from the metadata- Parameters:
dataName- path user data name
-
deleteSubPathData
void deleteSubPathData(java.lang.String dataName)
Deletes a subpath user data entry from the metadata- Parameters:
dataName- subpath user data name
-
getSupportedDataTypes
java.lang.String[] getSupportedDataTypes()
Returns all surported data type in the user data metadata- Returns:
- an array of String
-
validDataType
boolean validDataType(java.lang.String dataType)
Checks if the given data type is supported- Parameters:
dataType- data type- Returns:
- true if supported, false otherwise
-
isEmpty
boolean isEmpty()
Checks if the metadata contains any data
-
containsNodeUserData
boolean containsNodeUserData(java.lang.String dataName)
Checks if the given node user data name exists- Parameters:
dataName- node user data name
-
containsLinkUserData
boolean containsLinkUserData(java.lang.String dataName)
Checks if the given link user data name exists- Parameters:
dataName- link user data name
-
containsPathUserData
boolean containsPathUserData(java.lang.String dataName)
Checks if the given path user data name exists- Parameters:
dataName- path user data name
-
containsSubPathUserData
boolean containsSubPathUserData(java.lang.String dataName)
Checks if the given subpath user data name exists- Parameters:
dataName- subpath user data name
-
getUserDataIndexMap
java.util.Map<java.lang.String,java.lang.Integer> getUserDataIndexMap(java.lang.String tableType, int category)Returns the user data index map for the specified table type or feature layer name.- Returns:
-
getUserDataIndex
int getUserDataIndex(java.lang.String tableType, java.lang.String dataName, int category)Returns the user data index.- Parameters:
tableType- table type or feature layer namedataName- user data name- Returns:
-
getNodeDataIndexMap
java.util.Map<java.lang.String,java.lang.Integer> getNodeDataIndexMap(int category)
Returns the node user data index map.- Returns:
-
getLinkDataIndexMap
java.util.Map<java.lang.String,java.lang.Integer> getLinkDataIndexMap(int category)
Returns the link user data index map.- Returns:
-
getPathDataIndexMap
java.util.Map<java.lang.String,java.lang.Integer> getPathDataIndexMap(int category)
Returns the path user data index map.- Returns:
-
getSubPathDataIndexMap
java.util.Map<java.lang.String,java.lang.Integer> getSubPathDataIndexMap(int category)
Returns the subpath user data index map.- Returns:
-
getNumberOfCategories
int getNumberOfCategories()
Returns the number of user data categories.- Returns:
-
-