| Package | Description |
|---|---|
| oracle.ide.db.util |
Utility classes for dealing with database objects in UI in the IDE.
|
| oracle.javatools.db |
Contains a metadata API for describing database objects, and retrieving them
from a provider of database objects - for example a database.
|
| oracle.javatools.db.validators |
Contains classes that provide the capability to validate DBObjects in
a DBObjectProvider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NameController.validateName(java.lang.String type,
java.lang.String name)
Validates the given name entered by the user and throws an Exception if
it isn't valid.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DatabaseDescriptor.makeNameValidAndUnique(DBObject object,
DBObjectProvider pro)
Deprecated.
Use getUniqueName() in DBObjectProvider instead
|
java.lang.String |
DatabaseDescriptor.quoteIdentifier(java.lang.String internalName,
boolean force)
Determines if internalName needs quoting to make it a valid external name,
and if so returns a quoted copy of it.
|
static void |
DatabaseDescriptor.validateIdentifier(java.lang.String identifier,
char quoter,
int maxLength,
java.lang.String allowedChars,
boolean alphaStart,
java.util.Set reservedWords,
int casePolicy,
boolean allowSurrogates)
Validates that name is a valid external name such that :
If the name is unquoted (does not start with
quoter),
it only contains alphanumeric and allowedChars characters.
If the name is unquoted, and alphaStart is true, it starts
with a letter.
If the name is unquoted, it does not contain any reservedWords.
If the name is quoted (starts with quoter), it is
correctly quoted, and does not include any excludedChars.
If the name is quoted, and quoter is not in
excludedChars, that any occurences of quoter are
escaped (doubled-up).
The name does not exceed maxLength, taking quotes into account.
Used by the more specific validate*Identifier() methods on the Database implementations. |
static void |
DatabaseDescriptor.validateIdentifier(java.lang.String identifier,
char quoter,
int maxLength,
java.lang.String allowedChars,
java.lang.String excludedChars,
boolean alphaStart,
java.util.Set reservedWords,
int casePolicy,
boolean allowSurrogates)
Validates that name is a valid external name such that :
If the name is unquoted (does not start with
quoter),
it only contains alphanumeric and allowedChars characters.
If the name is unquoted, and alphaStart is true, it starts
with a letter.
If the name is unquoted, it does not contain any reservedWords.
If the name is quoted (starts with quoter), it is
correctly quoted, and does not include any excludedChars.
If the name is quoted, and quoter is not in
excludedChars, that any occurences of quoter are
escaped (doubled-up).
The name does not exceed maxLength, taking quotes into account.
Used by the more specific validate*Identifier() methods on the Database implementations. |
void |
DBObjectProvider.validateName(java.lang.String externalName)
Deprecated.
|
void |
AbstractDBObjectProvider.validateName(java.lang.String name)
Deprecated.
- use validateName( String type, String name )
|
abstract void |
DatabaseDescriptor.validateName(java.lang.String type,
java.lang.String externalName)
Validates the given object name and throws an InvalidNameExcpetion if it
isn't valid for the Database being described.
|
void |
DBObjectProvider.validateName(java.lang.String type,
java.lang.String externalName)
Checks to see whether a name is valid for a given type of object.
|
void |
AbstractDBObjectProvider.validateName(java.lang.String type,
java.lang.String externalName)
Final implementation delegates to the registered DBObjectValidator
for the given type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DBObjectValidator.validateName(java.lang.String type,
java.lang.String externalName)
Validates that the given name is a valid identifier for the given
object type.
|
protected void |
DBObjectValidator.validateName(T obj)
Validates the given object's name to see if it is a legal identifier.
|