@Configuration @Import(value={org.kuali.common.jdbc.sql.spring.DbaContextConfig.class,org.kuali.common.jdbc.suppliers.spring.SuppliersFactoryConfig.class,org.kuali.common.jdbc.reset.DefaultJdbcResetConfig.class,RiceClientBootstrapConfig.class,RiceClientDemoConfig.class,RiceServerBootstrapConfig.class,RiceServerDemoConfig.class,RiceServerDemoFilterConfig.class,RiceMasterConfig.class}) public class SourceSqlConfig extends Object implements org.kuali.common.jdbc.sql.spring.JdbcContextsConfig
Constructor and Description |
---|
SourceSqlConfig() |
Modifier and Type | Method and Description |
---|---|
protected org.kuali.common.jdbc.model.context.JdbcContext |
getJdbcContext(org.kuali.common.util.metainf.spring.MetaInfGroup group,
String qualifier,
String vendor,
org.kuali.common.util.metainf.spring.MetaInfDataLocation location,
org.kuali.common.util.metainf.spring.MetaInfDataType type,
boolean multithreaded)
Creates the JDBC context for the given
group , location , and type . |
protected List<org.kuali.common.util.metainf.spring.MetaInfDataLocation> |
getLocations()
Returns the list of
MetaInfDataLocation s to be applied to the database, returning an empty list if no
profiles are active. |
protected List<org.kuali.common.util.metainf.spring.MetaInfDataType> |
getTypes()
Returns the list of
MetaInfDataType s to be applied to the database, returning an empty list if no
profiles are active. |
protected boolean |
isExcluded(org.kuali.common.util.metainf.spring.MetaInfGroup group,
org.kuali.common.util.metainf.spring.MetaInfDataLocation location,
org.kuali.common.util.metainf.spring.MetaInfDataType type)
Returns whether to exclude the data for the
MetaInfGroup , MetaInfDataLocation , and
MetaInfDataType . |
protected boolean |
isIncluded(org.kuali.common.util.metainf.spring.MetaInfGroup group,
org.kuali.common.util.metainf.spring.MetaInfDataLocation location,
org.kuali.common.util.metainf.spring.MetaInfDataType type)
Returns whether to include the data for the
MetaInfGroup , MetaInfDataLocation , and
MetaInfDataType . |
List<org.kuali.common.jdbc.model.context.JdbcContext> |
jdbcContexts() |
public SourceSqlConfig()
@Bean public List<org.kuali.common.jdbc.model.context.JdbcContext> jdbcContexts()
All of the initial data (the data included in the MetaInfGroup.SCHEMA
, MetaInfGroup.CONSTRAINTS
,
or MetaInfGroup.DATA
groups) needs to be applied before the update data (the data included in the
MetaInfGroup.OTHER
group).
jdbcContexts
in interface org.kuali.common.jdbc.sql.spring.JdbcContextsConfig
protected List<org.kuali.common.util.metainf.spring.MetaInfDataType> getTypes()
MetaInfDataType
s to be applied to the database, returning an empty list if no
profiles are active.MetaInfDataType
s to be applied to the database (if any)protected List<org.kuali.common.util.metainf.spring.MetaInfDataLocation> getLocations()
MetaInfDataLocation
s to be applied to the database, returning an empty list if no
profiles are active.MetaInfDataLocation
s to be applied to the database (if any)protected org.kuali.common.jdbc.model.context.JdbcContext getJdbcContext(org.kuali.common.util.metainf.spring.MetaInfGroup group, String qualifier, String vendor, org.kuali.common.util.metainf.spring.MetaInfDataLocation location, org.kuali.common.util.metainf.spring.MetaInfDataType type, boolean multithreaded)
group
, location
, and type
.group
- the group of the data to create the context forqualifier
- the prefix to add to the initial resource pathvendor
- the database vendor to create the context forlocation
- the location of the data to create the context fortype
- the type of data to create the context formultithreaded
- whether or not to run the context in multiple threadsprotected boolean isIncluded(org.kuali.common.util.metainf.spring.MetaInfGroup group, org.kuali.common.util.metainf.spring.MetaInfDataLocation location, org.kuali.common.util.metainf.spring.MetaInfDataType type)
MetaInfGroup
, MetaInfDataLocation
, and
MetaInfDataType
.group
- the {link MetaInfGroup} to checklocation
- the MetaInfDataLocation
to checktype
- the MetaInfDataType
to checkprotected boolean isExcluded(org.kuali.common.util.metainf.spring.MetaInfGroup group, org.kuali.common.util.metainf.spring.MetaInfDataLocation location, org.kuali.common.util.metainf.spring.MetaInfDataType type)
MetaInfGroup
, MetaInfDataLocation
, and
MetaInfDataType
.group
- the {link MetaInfGroup} to checklocation
- the MetaInfDataLocation
to checktype
- the MetaInfDataType
to checkCopyright © 2005–2015 The Kuali Foundation. All rights reserved.