Class DefaultIdentifierConfiguration
- java.lang.Object
-
- org.apache.openjpa.jdbc.identifier.DefaultIdentifierConfiguration
-
- All Implemented Interfaces:
IdentifierConfiguration
public class DefaultIdentifierConfiguration extends java.lang.Object implements IdentifierConfiguration
-
-
Constructor Summary
Constructors Constructor Description DefaultIdentifierConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
delimitAll()
Returns true if global name delimiting is enabled.java.lang.String
getConversionKey()
Returns a key that can be used to determine whether conversion should take place.IdentifierRule
getDefaultIdentifierRule()
Gets the default naming rulejava.lang.String
getDelimitedCase()
Returns the case that is used when delimiting.java.lang.String
getIdentifierConcatenator()
Returns the value used to concatenate multiple names together.java.lang.String
getIdentifierDelimiter()
Returns the value used to delimit between individual names.<T> IdentifierRule
getIdentifierRule(T t)
Returns a naming rule or null if the rule is not found.java.util.Map<java.lang.String,IdentifierRule>
getIdentifierRules()
Returns all naming rulesjava.lang.String
getLeadingDelimiter()
Returns the leading delimiter value to use when delimiting a name.java.lang.String
getSchemaCase()
Returns the case that is used when delimiters are not used.boolean
getSupportsDelimitedIdentifiers()
Returns true if delimiting is supportedjava.lang.String
getTrailingDelimiter()
Returns the trailing delimiter value to use when delimiting a name.
-
-
-
Method Detail
-
delimitAll
public boolean delimitAll()
Description copied from interface:IdentifierConfiguration
Returns true if global name delimiting is enabled.- Specified by:
delimitAll
in interfaceIdentifierConfiguration
-
getDefaultIdentifierRule
public IdentifierRule getDefaultIdentifierRule()
Description copied from interface:IdentifierConfiguration
Gets the default naming rule- Specified by:
getDefaultIdentifierRule
in interfaceIdentifierConfiguration
-
getDelimitedCase
public java.lang.String getDelimitedCase()
Description copied from interface:IdentifierConfiguration
Returns the case that is used when delimiting.- Specified by:
getDelimitedCase
in interfaceIdentifierConfiguration
- Returns:
- upper, lower, or preserve
-
getSchemaCase
public java.lang.String getSchemaCase()
Description copied from interface:IdentifierConfiguration
Returns the case that is used when delimiters are not used.- Specified by:
getSchemaCase
in interfaceIdentifierConfiguration
- Returns:
- upper, lower, or preserve
-
getLeadingDelimiter
public java.lang.String getLeadingDelimiter()
Description copied from interface:IdentifierConfiguration
Returns the leading delimiter value to use when delimiting a name.- Specified by:
getLeadingDelimiter
in interfaceIdentifierConfiguration
-
getIdentifierDelimiter
public java.lang.String getIdentifierDelimiter()
Description copied from interface:IdentifierConfiguration
Returns the value used to delimit between individual names. For example: "." used in MYSCHEMA.MYTABLE- Specified by:
getIdentifierDelimiter
in interfaceIdentifierConfiguration
-
getIdentifierConcatenator
public java.lang.String getIdentifierConcatenator()
Description copied from interface:IdentifierConfiguration
Returns the value used to concatenate multiple names together. For example: "_" used in TABLE1_TABLE2- Specified by:
getIdentifierConcatenator
in interfaceIdentifierConfiguration
-
getIdentifierRule
public <T> IdentifierRule getIdentifierRule(T t)
Description copied from interface:IdentifierConfiguration
Returns a naming rule or null if the rule is not found.- Specified by:
getIdentifierRule
in interfaceIdentifierConfiguration
-
getIdentifierRules
public java.util.Map<java.lang.String,IdentifierRule> getIdentifierRules()
Description copied from interface:IdentifierConfiguration
Returns all naming rules- Specified by:
getIdentifierRules
in interfaceIdentifierConfiguration
-
getTrailingDelimiter
public java.lang.String getTrailingDelimiter()
Description copied from interface:IdentifierConfiguration
Returns the trailing delimiter value to use when delimiting a name.- Specified by:
getTrailingDelimiter
in interfaceIdentifierConfiguration
-
getSupportsDelimitedIdentifiers
public boolean getSupportsDelimitedIdentifiers()
Description copied from interface:IdentifierConfiguration
Returns true if delimiting is supported- Specified by:
getSupportsDelimitedIdentifiers
in interfaceIdentifierConfiguration
-
getConversionKey
public java.lang.String getConversionKey()
Description copied from interface:IdentifierConfiguration
Returns 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:
getConversionKey
in interfaceIdentifierConfiguration
-
-