public interface DatabaseNamer
Modifier and Type | Field and Description |
---|---|
static DatabaseNamer |
DEFAULT
The default database namer.
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName(String storeName,
String entityClassName,
String keyName)
Returns the name of the file to be used to store the dataabase for the
given store, entity class and key.
|
static final DatabaseNamer DEFAULT
The getFileName
method of this namer returns the
storeName
, entityClassName
and keyName
parameters as follows:
if (keyName != null) { return storeName + '-' + entityClassName + '-' + keyName; } else { return storeName + '-' + entityClassName; }
String getFileName(String storeName, String entityClassName, String keyName)
storeName
- the name of the EntityStore
.entityClassName
- the complete name of the entity class for a
primary or secondary index.keyName
- the key name identifying a secondary index, or null for
a primary index.Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.