@Service(value=NameVerifier.class) public class NameVerifierImpl extends Object implements NameVerifier
NameVerifier.| Constructor and Description |
|---|
NameVerifierImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isAllUpperOrLowerCase(String name,
Entity entity)
Checks whether the given name is all upper- or all lowercase.
The backends are usually not case-sensitive (unless the SQL names are quoted), but it is good style to either use all upper- or all lowercase. |
protected boolean |
isNotQuotedOrProvided(String name,
Entity entity)
Checks whether the name is quoted.
|
String |
verifyAttributeName(Attribute attribute)
Verifies the Java name of an attribute.
|
String |
verifyColumnName(Attribute attribute)
Verifies the column name of an attribute.
|
String |
verifyEntityName(Entity entity)
Verifies the Java name of an entity.
|
String |
verifyIndexName(Index index)
Verifies the name of an index.
|
String |
verifyTableAlias(Entity entity)
Verifies the table alias of an entity.
|
String |
verifyTableName(Entity entity)
Verifies the table name of an entity.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstancepublic String verifyEntityName(Entity entity)
NameVerifierverifyEntityName in interface NameVerifierentity - the entitypublic String verifyTableName(Entity entity)
NameVerifierverifyTableName in interface NameVerifierentity - the entitypublic String verifyTableAlias(Entity entity)
NameVerifierverifyTableAlias in interface NameVerifierentity - the entitypublic String verifyAttributeName(Attribute attribute)
NameVerifierverifyAttributeName in interface NameVerifierattribute - the attributepublic String verifyColumnName(Attribute attribute)
NameVerifierverifyColumnName in interface NameVerifierattribute - the attributepublic String verifyIndexName(Index index)
NameVerifierverifyIndexName in interface NameVerifierindex - the indexprotected boolean isAllUpperOrLowerCase(String name, Entity entity)
name - the nameentity - the entityTentackle - distributed, domain- and model-driven