| |
|
| java.lang.Object org.jpox.store.AbstractIdentifierFactory
AbstractIdentifierFactory | abstract public class AbstractIdentifierFactory implements IdentifierFactory(Code) | | Abstract representation of an identifier factory.
To be extended to generate the identifiers.
version: $Revision: 1.9 $ |
CASE_LOWER | final public static int CASE_LOWER(Code) | | |
CASE_PRESERVE | final public static int CASE_PRESERVE(Code) | | |
CASE_UPPER | final public static int CASE_UPPER(Code) | | |
LOCALISER | final protected static Localiser LOCALISER(Code) | | Localiser for messages.
|
identifierCase | protected int identifierCase(Code) | | Case to use for identifiers.
|
AbstractIdentifierFactory | public AbstractIdentifierFactory(DatastoreAdapter dba, String requiredCase)(Code) | | Constructor.
Parameters: dba - Datastore adapter Parameters: requiredCase - The case the user requires throws: JPOXUserException - if invalid input is encountered |
getDatastoreAdapter | public DatastoreAdapter getDatastoreAdapter()(Code) | | Accessor for the datastore adapter that we are creating identifiers for.
The datastore adapter |
getIdentifierCase | public int getIdentifierCase()(Code) | | Accessor for the identifier case being used.
The identifier case |
getMaxLengthForIdentifierType | abstract protected int getMaxLengthForIdentifierType(int identifierType)(Code) | | Method to return the maximum permitted length of an identifier of the
specified type. Returns -1 if the identifier type is not supported.
Parameters: identifierType - Type of identifier The maximum length |
getNameOfIdentifierCase | public String getNameOfIdentifierCase()(Code) | | Convenience method to return the name for the identifier case.
Identifier case name |
truncate | protected static String truncate(String identifier, int length)(Code) | | Method to truncate an identifier to fit within the specified identifier length.
If truncation is necessary will use a 2 char hashcode (at the end) to attempt to create uniqueness.
Parameters: identifier - The identifier Parameters: length - The (max) length to use The truncated identifier. |
|
|
|