Class GWEntityAccess
- java.lang.Object
-
- gw.config.BaseService
-
- gw.internal.gosu.parser.DefaultEntityAccess
-
- gw.internal.gosu.parser.gwPlatform.GWEntityAccess
-
- All Implemented Interfaces:
IService
,IEntityAccess
,IPluginHost
public class GWEntityAccess extends DefaultEntityAccess
-
-
Field Summary
Fields Modifier and Type Field Description protected IType
_beanType
protected IType
_entityType
protected IType
_keyType
protected IType
_typekeyType
protected IType
_typelistType
-
Fields inherited from class gw.internal.gosu.parser.DefaultEntityAccess
DEFAULT_LOGGER
-
-
Constructor Summary
Constructors Constructor Description GWEntityAccess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEnhancementMethods(IType typeToEnhance, Collection methodsToAddTo)
void
addEnhancementProperties(IType typeToEnhance, Map propertyInfosToAddTo, boolean caseSensitive)
boolean
areBeansEqual(Object bean1, Object bean2)
boolean
areUsesStatementsAllowedInStatementLists(ICompilableType gosuClass)
protected void
doInit()
ITypeUsesMap
getDefaultTypeUses()
IPropertyInfo
getEntityIdProperty(IType rootType)
IType
getKeyType()
ILanguageLevel
getLanguageLevel()
boolean
isDomainInstance(Object value)
boolean
isEntityClass(IType type)
boolean
shouldAddWarning(IType type, IParseIssue warning)
boolean
verifyValueForType(IType type, Object value)
-
Methods inherited from class gw.internal.gosu.parser.DefaultEntityAccess
getAdditionalSourceRoots, getCurrentTime, getDefaultTypeLoader, getEntityInstanceFrom, getExtendedTypeDataFactory, getGosuClassLoadingObservers, getHashedEntityId, getLocale, getLocalizedTypeInfoName, getLocalizedTypeName, getLogger, getPluginClassLoader, getPluginRepositories, getTimeZone, getWebServerPaths, instance, isInternal, isUnreachableCodeDetectionOn, makeStringFrom, reloadedTypes
-
Methods inherited from class gw.config.BaseService
doUninit, init, isInited, uninit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.plugin.IPluginHost
getInterface
-
-
-
-
Method Detail
-
doInit
protected void doInit()
- Overrides:
doInit
in classBaseService
-
getDefaultTypeUses
public ITypeUsesMap getDefaultTypeUses()
- Specified by:
getDefaultTypeUses
in interfaceIEntityAccess
- Overrides:
getDefaultTypeUses
in classDefaultEntityAccess
-
isDomainInstance
public boolean isDomainInstance(Object value)
- Specified by:
isDomainInstance
in interfaceIEntityAccess
- Overrides:
isDomainInstance
in classDefaultEntityAccess
- Returns:
- x
-
isEntityClass
public boolean isEntityClass(IType type)
- Specified by:
isEntityClass
in interfaceIEntityAccess
- Overrides:
isEntityClass
in classDefaultEntityAccess
- Returns:
- x
-
areBeansEqual
public boolean areBeansEqual(Object bean1, Object bean2)
- Specified by:
areBeansEqual
in interfaceIEntityAccess
- Overrides:
areBeansEqual
in classDefaultEntityAccess
- Returns:
- x
-
verifyValueForType
public boolean verifyValueForType(IType type, Object value) throws RuntimeException
- Specified by:
verifyValueForType
in interfaceIEntityAccess
- Overrides:
verifyValueForType
in classDefaultEntityAccess
- Throws:
RuntimeException
-
addEnhancementMethods
public void addEnhancementMethods(IType typeToEnhance, Collection methodsToAddTo)
- Specified by:
addEnhancementMethods
in interfaceIEntityAccess
- Overrides:
addEnhancementMethods
in classDefaultEntityAccess
-
addEnhancementProperties
public void addEnhancementProperties(IType typeToEnhance, Map propertyInfosToAddTo, boolean caseSensitive)
- Specified by:
addEnhancementProperties
in interfaceIEntityAccess
- Overrides:
addEnhancementProperties
in classDefaultEntityAccess
-
getLanguageLevel
public ILanguageLevel getLanguageLevel()
- Specified by:
getLanguageLevel
in interfaceIEntityAccess
- Overrides:
getLanguageLevel
in classDefaultEntityAccess
-
areUsesStatementsAllowedInStatementLists
public boolean areUsesStatementsAllowedInStatementLists(ICompilableType gosuClass)
- Specified by:
areUsesStatementsAllowedInStatementLists
in interfaceIEntityAccess
- Overrides:
areUsesStatementsAllowedInStatementLists
in classDefaultEntityAccess
-
getKeyType
public IType getKeyType()
- Specified by:
getKeyType
in interfaceIEntityAccess
- Overrides:
getKeyType
in classDefaultEntityAccess
-
getEntityIdProperty
public IPropertyInfo getEntityIdProperty(IType rootType)
- Specified by:
getEntityIdProperty
in interfaceIEntityAccess
- Overrides:
getEntityIdProperty
in classDefaultEntityAccess
-
shouldAddWarning
public boolean shouldAddWarning(IType type, IParseIssue warning)
- Specified by:
shouldAddWarning
in interfaceIEntityAccess
- Overrides:
shouldAddWarning
in classDefaultEntityAccess
-
-