public class EOModelHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DataMap |
dataMap |
protected Map |
entityClassIndex |
protected Map |
entityClientClassIndex |
protected Map |
entityIndex |
protected Map |
entityQueryIndex |
protected URL |
modelUrl |
| Constructor and Description |
|---|
EOModelHelper(String path)
Deprecated.
since 4.0, use
EOModelHelper(URL). |
EOModelHelper(URL modelUrl) |
| Modifier and Type | Method and Description |
|---|---|
String |
entityClass(String entityName,
boolean getClientClass) |
Map |
entityPListMap(String entityName)
Returns an info map for the entity called
entityName. |
protected String |
findModelName(String path)
Returns EOModel name based on its path.
|
DataMap |
getDataMap()
Returns a DataMap associated with this helper.
|
URL |
getModelUrl()
Returns EOModel location as URL.
|
Map |
getPrototypeAttributeMapFor(String aPrototypeAttributeName) |
String |
javaTypeForEOModelerType(String valueClassName,
String valueType)
Performs Objective C data types conversion to Java types.
|
protected Map |
loadEntityIndex(String entityName)
Loads EOEntity information and returns it as a map.
|
protected Map |
loadModelIndex()
Loads EOModel index and returns it as a map.
|
protected Map |
loadQueryIndex(String entityName)
Loads EOFetchSpecification information and returns it as a map.
|
Iterator |
modelNames()
Returns an iterator of model names.
|
List |
modelNamesAsList()
Returns a list of model entity names.
|
protected Class |
numericAttributeClass(String valueType) |
protected InputStream |
openEntityStream(String entityName)
Returns InputStream to read an EOEntity plist file.
|
protected InputStream |
openIndexStream()
Returns InputStream to read an EOModel index file.
|
protected InputStream |
openQueryStream(String entityName)
Returns InputStream to read an EOFetchSpecification plist file.
|
Iterator |
queryNames(String entityName)
Returns the iterator over EOFetchSpecification names for a given entity.
|
Map |
queryPListMap(String entityName,
String queryName)
Returns a map containing EOFetchSpecification information for entity name
and query name.
|
protected URL modelUrl
protected Map entityIndex
protected Map entityClassIndex
protected Map entityQueryIndex
protected Map entityClientClassIndex
protected DataMap dataMap
@Deprecated public EOModelHelper(String path) throws Exception
EOModelHelper(URL).Exceptionpublic String javaTypeForEOModelerType(String valueClassName, String valueType)
public DataMap getDataMap()
public URL getModelUrl()
public Iterator modelNames()
public List modelNamesAsList()
public Map entityPListMap(String entityName)
entityName.public Iterator queryNames(String entityName)
public Map queryPListMap(String entityName, String queryName)
protected Map loadModelIndex() throws Exception
Exceptionprotected Map loadEntityIndex(String entityName) throws Exception
Exceptionprotected Map loadQueryIndex(String entityName) throws Exception
Exceptionprotected InputStream openIndexStream() throws Exception
Exceptionprotected InputStream openEntityStream(String entityName) throws Exception
entityName - name of EOEntity to be loaded.entityname.plist file can not be located.Exceptionprotected InputStream openQueryStream(String entityName) throws Exception
entityName - name of EOEntity to be loaded.entityname.plist file can not be located.ExceptionCopyright © 2001–2016 Apache Cayenne. All rights reserved.