public class JDBCDNParser
extends java.lang.Object
IDU=1,table=USR,schema=IDM
).Constructor and Description |
---|
JDBCDNParser(java.lang.String someDN)
Instantiates a JDBC shim DN/association.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMessage()
Returns a parse error message, if any.
|
java.lang.String |
getSchemaName()
Returns the schema name value in this DN/association.
|
java.lang.String |
getSlashEscapedValue(java.lang.String columnName)
Returns the value of column
columnName in this DN/association. |
java.lang.String |
getTableName()
Returns the table name value in this DN/association.
|
java.lang.String |
getValue(java.lang.String columnName)
Returns the value of column
columnName in this DN/association. |
boolean |
parseError()
Indicates whether an error occurred parsing this DN/association.
|
public JDBCDNParser(java.lang.String someDN)
someDN
- may be null
; format should be
"<column-name>=<value>[+<column-name>=<value>]*,table=<table-name>[,schema=<schema-name>]?
" public boolean parseError()
true
if there was a parse error;
false
otherwisepublic java.lang.String getErrorMessage()
null
public java.lang.String getSlashEscapedValue(java.lang.String columnName)
columnName
in this DN/association.
Return value is properly escaped for inclusion in a slash-formatted DN
(e.g. "Tree\OU\Object"). Escapes characters
{''' | '\' | '=' | '+'}
.columnName
- the column value to returnnull
getValue(String)
public java.lang.String getValue(java.lang.String columnName)
columnName
in this DN/association.
For example, if this DN were IDU=1,table=USR,schema=IDM
and columnName
were "IDU
", this method would
return "1
".columnName
- the column value to returnnull
public java.lang.String getTableName()
IDU=1,table=USR,schema=IDM
,
this method would return "USR
".null
public java.lang.String getSchemaName()
IDU=1,table=USR,schema=IDM
,
this method would return "IDM
".null