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()
nullpublic 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 returnnullgetValue(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 returnnullpublic java.lang.String getTableName()
IDU=1,table=USR,schema=IDM,
this method would return "USR".nullpublic java.lang.String getSchemaName()
IDU=1,table=USR,schema=IDM,
this method would return "IDM".null