|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.device.jdbc.ResultSetResourceMappingResolver
public class ResultSetResourceMappingResolver
A Compass::Core MappingResolver, which can generate compass
mappings (Resource mapping)
ResultSetToResourceMapping.
ResultSetToResourceMapping, and
the DataSource.
Using the mapping builder helps automatically generate compass mapping files (Resource
mappings) based on the configuration of the
ResultSetToResourceMapping or one
of it's sub classes (like
TableToResourceMapping).
| Constructor Summary | |
|---|---|
ResultSetResourceMappingResolver()
Creates a new mapping builder. |
|
ResultSetResourceMappingResolver(ResultSetToResourceMapping mapping,
DataSource dataSource)
Creates a new mapping builder, using the mapping and the data source. |
|
| Method Summary | |
|---|---|
String |
getAllMetaData()
Returns the all meta data name that will be used in the compass mapping. |
Property.TermVector |
getAllTermVector()
Returns the term vector setting for the all property. |
DataSource |
getDataSource()
Returns the jdbc data source. |
ResultSetToResourceMapping |
getMapping()
Returns the mapping that will be used to generate the compass mapping definitions. |
InputStream |
getMappingAsInputStream()
Generates the compass mapping definitions. |
String |
getName()
Returns the name of the mapping builder. |
String |
getSubIndex()
Returns the subIndex that the Resource (alias) will be
mapped to. |
boolean |
isAll()
Returns the all option of the compass mapping (if the all property will be saved or not). |
void |
setAll(boolean all)
Sets the all option of the compass mapping (if the all property will be saved or not). |
void |
setAllMetaData(String allMetaData)
Sets the all meta data name that will be used in the compass mapping. |
void |
setAllTermVector(Property.TermVector allTermVector)
Sets the term vector setting for the all property. |
void |
setAllTermVectorString(String allTermVector)
Sets the term vector setting (as a parsable string) for the all property. |
void |
setDataSource(DataSource dataSource)
Sets the jdbc data source. |
void |
setMapping(ResultSetToResourceMapping mapping)
Sets the mapping that will be used to generate the compass mapping definitions. |
void |
setSubIndex(String subIndex)
Sets the subIndex that the Resource (alias) will be mapped
to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResultSetResourceMappingResolver()
setMapping(ResultSetToResourceMapping), and the
setDataSource(DataSource).
public ResultSetResourceMappingResolver(ResultSetToResourceMapping mapping,
DataSource dataSource)
mapping - The mapping that will be used to generate compass mapping
definition.| Method Detail |
|---|
public String getName()
InputStreamMappingResolver
getName in interface InputStreamMappingResolver
public InputStream getMappingAsInputStream()
throws CompassException
getMappingAsInputStream in interface InputStreamMappingResolverCompassExceptionpublic ResultSetToResourceMapping getMapping()
public void setMapping(ResultSetToResourceMapping mapping)
public String getSubIndex()
Resource (alias) will be
mapped to. Optional - null value means no subIndex part in the compass
mapping definition.
public void setSubIndex(String subIndex)
Resource (alias) will be mapped
to. Optional - null value means no subIndex part in the compass mapping
definition.
public boolean isAll()
true.
public void setAll(boolean all)
true.
public String getAllMetaData()
public void setAllMetaData(String allMetaData)
public Property.TermVector getAllTermVector()
public void setAllTermVector(Property.TermVector allTermVector)
public void setAllTermVectorString(String allTermVector)
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||