public final class BridgeFactory extends Object
FieldBridge
s.Constructor and Description |
---|
BridgeFactory(ServiceManager serviceManager) |
Modifier and Type | Method and Description |
---|---|
FieldBridge |
buildFieldBridge(Field field,
org.hibernate.annotations.common.reflection.XMember member,
boolean isId,
boolean isExplicitlyMarkedAsNumeric,
org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager,
ServiceManager serviceManager) |
FieldBridge |
buildFieldBridge(org.hibernate.annotations.common.reflection.XMember member,
boolean isId,
boolean isExplicitlyMarkedAsNumeric,
org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager,
ServiceManager serviceManager) |
FieldBridge |
buildSpatialBridge(Spatial spatial,
org.hibernate.annotations.common.reflection.XClass clazz,
String latitudeField,
String longitudeField)
This instantiates the SpatialFieldBridge from a
Spatial annotation. |
TwoWayFieldBridge |
extractTwoWayType(FieldBridge fieldBridge,
org.hibernate.annotations.common.reflection.XClass appliedOnType,
org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager)
Takes in a fieldBridge and will return you a TwoWayFieldBridge instance.
|
FieldBridge |
extractType(ClassBridge cb,
Class<?> clazz)
This extracts and instantiates the implementation class from a
ClassBridge annotation. |
void |
injectParameters(ClassBridge classBridgeConfiguration,
Object classBridge)
Injects any parameters configured via the given
ClassBridge annotation into the given object, in case
this is a ParameterizedBridge . |
public BridgeFactory(ServiceManager serviceManager)
public FieldBridge extractType(ClassBridge cb, Class<?> clazz)
ClassBridge
annotation.cb
- the class bridge annotationclazz
- the Class
on which the annotation is defined onFieldBridge
instancepublic void injectParameters(ClassBridge classBridgeConfiguration, Object classBridge)
ClassBridge
annotation into the given object, in case
this is a ParameterizedBridge
.classBridgeConfiguration
- the parameter sourceclassBridge
- the object to inject the parameters intopublic FieldBridge buildSpatialBridge(Spatial spatial, org.hibernate.annotations.common.reflection.XClass clazz, String latitudeField, String longitudeField)
Spatial
annotation.public FieldBridge buildFieldBridge(org.hibernate.annotations.common.reflection.XMember member, boolean isId, boolean isExplicitlyMarkedAsNumeric, org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager, ServiceManager serviceManager)
public FieldBridge buildFieldBridge(Field field, org.hibernate.annotations.common.reflection.XMember member, boolean isId, boolean isExplicitlyMarkedAsNumeric, org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager, ServiceManager serviceManager)
public TwoWayFieldBridge extractTwoWayType(FieldBridge fieldBridge, org.hibernate.annotations.common.reflection.XClass appliedOnType, org.hibernate.annotations.common.reflection.ReflectionManager reflectionManager)
fieldBridge
- the field bridge annotationappliedOnType
- the type the bridge is applied onreflectionManager
- The reflection manager instanceSearchException
- if the FieldBridge passed in is not an instance of a TwoWayFieldBridge.Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved