Package org.apache.openjpa.jdbc.schema
Class NameSet
- java.lang.Object
-
- org.apache.openjpa.jdbc.schema.NameSet
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
SchemaGroup
,Table
public class NameSet extends java.lang.Object implements java.io.Serializable
Name sets track what names have been taken, ignoring case.SchemaGroup
s implement this interface for tables, indexes, and constraints;Table
s implement it for their columns.- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NameSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addName(java.lang.String name, boolean validate)
Deprecated.protected void
addName(DBIdentifier name, boolean validate)
Attempt to add the given name to the set.boolean
isNameTaken(java.lang.String name)
Deprecated.boolean
isNameTaken(DBIdentifier name)
protected void
removeName(java.lang.String name)
Deprecated.protected void
removeName(DBIdentifier name)
Remove the given name from the table.
-
-
-
Method Detail
-
isNameTaken
@Deprecated public boolean isNameTaken(java.lang.String name)
Deprecated.Return true if the given name is in use already.
-
isNameTaken
public boolean isNameTaken(DBIdentifier name)
-
addName
@Deprecated protected void addName(java.lang.String name, boolean validate)
Deprecated.
-
addName
protected void addName(DBIdentifier name, boolean validate)
Attempt to add the given name to the set.- Parameters:
name
- the name to addvalidate
- if true, null or empty names will not be accepted
-
removeName
@Deprecated protected void removeName(java.lang.String name)
Deprecated.
-
removeName
protected void removeName(DBIdentifier name)
Remove the given name from the table.
-
-