Class DefaultIdentifierConfiguration
- java.lang.Object
-
- org.apache.openjpa.jdbc.identifier.DefaultIdentifierConfiguration
-
- All Implemented Interfaces:
IdentifierConfiguration
public class DefaultIdentifierConfiguration extends Object implements IdentifierConfiguration
-
-
Constructor Summary
Constructors Constructor Description DefaultIdentifierConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandelimitAll()Returns true if global name delimiting is enabled.StringgetConversionKey()Returns a key that can be used to determine whether conversion should take place.IdentifierRulegetDefaultIdentifierRule()Gets the default naming ruleStringgetDelimitedCase()Returns the case that is used when delimiting.StringgetIdentifierConcatenator()Returns the value used to concatenate multiple names together.StringgetIdentifierDelimiter()Returns the value used to delimit between individual names.<T> IdentifierRulegetIdentifierRule(T t)Returns a naming rule or null if the rule is not found.Map<String,IdentifierRule>getIdentifierRules()Returns all naming rulesStringgetLeadingDelimiter()Returns the leading delimiter value to use when delimiting a name.StringgetSchemaCase()Returns the case that is used when delimiters are not used.booleangetSupportsDelimitedIdentifiers()Returns true if delimiting is supportedStringgetTrailingDelimiter()Returns the trailing delimiter value to use when delimiting a name.
-
-
-
Method Detail
-
delimitAll
public boolean delimitAll()
Description copied from interface:IdentifierConfigurationReturns true if global name delimiting is enabled.- Specified by:
delimitAllin interfaceIdentifierConfiguration
-
getDefaultIdentifierRule
public IdentifierRule getDefaultIdentifierRule()
Description copied from interface:IdentifierConfigurationGets the default naming rule- Specified by:
getDefaultIdentifierRulein interfaceIdentifierConfiguration
-
getDelimitedCase
public String getDelimitedCase()
Description copied from interface:IdentifierConfigurationReturns the case that is used when delimiting.- Specified by:
getDelimitedCasein interfaceIdentifierConfiguration- Returns:
- upper, lower, or preserve
-
getSchemaCase
public String getSchemaCase()
Description copied from interface:IdentifierConfigurationReturns the case that is used when delimiters are not used.- Specified by:
getSchemaCasein interfaceIdentifierConfiguration- Returns:
- upper, lower, or preserve
-
getLeadingDelimiter
public String getLeadingDelimiter()
Description copied from interface:IdentifierConfigurationReturns the leading delimiter value to use when delimiting a name.- Specified by:
getLeadingDelimiterin interfaceIdentifierConfiguration
-
getIdentifierDelimiter
public String getIdentifierDelimiter()
Description copied from interface:IdentifierConfigurationReturns the value used to delimit between individual names. For example: "." used in MYSCHEMA.MYTABLE- Specified by:
getIdentifierDelimiterin interfaceIdentifierConfiguration
-
getIdentifierConcatenator
public String getIdentifierConcatenator()
Description copied from interface:IdentifierConfigurationReturns the value used to concatenate multiple names together. For example: "_" used in TABLE1_TABLE2- Specified by:
getIdentifierConcatenatorin interfaceIdentifierConfiguration
-
getIdentifierRule
public <T> IdentifierRule getIdentifierRule(T t)
Description copied from interface:IdentifierConfigurationReturns a naming rule or null if the rule is not found.- Specified by:
getIdentifierRulein interfaceIdentifierConfiguration
-
getIdentifierRules
public Map<String,IdentifierRule> getIdentifierRules()
Description copied from interface:IdentifierConfigurationReturns all naming rules- Specified by:
getIdentifierRulesin interfaceIdentifierConfiguration
-
getTrailingDelimiter
public String getTrailingDelimiter()
Description copied from interface:IdentifierConfigurationReturns the trailing delimiter value to use when delimiting a name.- Specified by:
getTrailingDelimiterin interfaceIdentifierConfiguration
-
getSupportsDelimitedIdentifiers
public boolean getSupportsDelimitedIdentifiers()
Description copied from interface:IdentifierConfigurationReturns true if delimiting is supported- Specified by:
getSupportsDelimitedIdentifiersin interfaceIdentifierConfiguration
-
getConversionKey
public String getConversionKey()
Description copied from interface:IdentifierConfigurationReturns a key that can be used to determine whether conversion should take place. Id configurations should create a key unique to their configuration. The typical key is: leading delimiter (") + name separator(.) + trailing delimiter(")- Specified by:
getConversionKeyin interfaceIdentifierConfiguration
-
-