当前位置: 首页>>代码示例>>Java>>正文


Java SqlUpdate类代码示例

本文整理汇总了Java中com.liferay.portal.kernel.dao.jdbc.SqlUpdate的典型用法代码示例。如果您正苦于以下问题:Java SqlUpdate类的具体用法?Java SqlUpdate怎么用?Java SqlUpdate使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SqlUpdate类属于com.liferay.portal.kernel.dao.jdbc包,在下文中一共展示了SqlUpdate类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs a SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) {
	try {
		DataSource dataSource = regionPersistence.getDataSource();

		DB db = DBManagerUtil.getDB();

		sql = db.buildSQL(sql);
		sql = PortalUtil.transformSQL(sql);

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:liferay,项目名称:liferay-blade-samples,代码行数:24,代码来源:RegionLocalServiceBaseImpl.java

示例2: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs a SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) {
	try {
		DataSource dataSource = countryPersistence.getDataSource();

		DB db = DBManagerUtil.getDB();

		sql = db.buildSQL(sql);
		sql = PortalUtil.transformSQL(sql);

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:liferay,项目名称:liferay-blade-samples,代码行数:24,代码来源:CountryLocalServiceBaseImpl.java

示例3: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs a SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) {
	try {
		DataSource dataSource = fooPersistence.getDataSource();

		DB db = DBManagerUtil.getDB();

		sql = db.buildSQL(sql);
		sql = PortalUtil.transformSQL(sql);

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:liferay,项目名称:liferay-blade-samples,代码行数:24,代码来源:FooServiceBaseImpl.java

示例4: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
	try {
		DataSource dataSource = InfrastructureUtil.getDataSource();

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql, new int[0]);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:baxtheman,项目名称:mqtt-liferay-plugins,代码行数:19,代码来源:MqttLocalServiceBaseImpl.java

示例5: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
	try {
		DataSource dataSource = dossierProcPersistence.getDataSource();

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql, new int[0]);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:19,代码来源:DossierProcLocalServiceBaseImpl.java

示例6: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
	try {
		DataSource dataSource = jobPos2RolePersistence.getDataSource();

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql, new int[0]);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:19,代码来源:Jobpos2RoleLocalServiceBaseImpl.java

示例7: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
	try {
		DataSource dataSource = dictAttributePersistence.getDataSource();

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql, new int[0]);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:19,代码来源:DictAttributeLocalServiceBaseImpl.java

示例8: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = applicationPersistence.getDataSource();

        SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
                sql, new int[0]);

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:18,代码来源:ApplicationLocalServiceBaseImpl.java

示例9: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = ahCatEntriesPersistence.getDataSource();

        SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
                sql, new int[0]);

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}
 
开发者ID:fraunhoferfokus,项目名称:particity,代码行数:18,代码来源:AHCatEntriesLocalServiceBaseImpl.java

示例10: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
	try {
		DataSource dataSource = coursePersistence.getDataSource();

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql, new int[0]);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:TelefonicaED,项目名称:liferaylms-portlet,代码行数:19,代码来源:CourseLocalServiceBaseImpl.java

示例11: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
	try {
		DataSource dataSource = statisticByUserPersistence.getDataSource();

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql, new int[0]);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:19,代码来源:StatisticByUserServiceBaseImpl.java

示例12: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
	try {
		DataSource dataSource = competencePersistence.getDataSource();

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql, new int[0]);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:TelefonicaED,项目名称:liferaylms-portlet,代码行数:19,代码来源:CompetenceLocalServiceBaseImpl.java

示例13: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
	try {
		DataSource dataSource = processOrder2UserPersistence.getDataSource();

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql, new int[0]);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:19,代码来源:ProcessOrder2UserLocalServiceBaseImpl.java

示例14: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
	try {
		DataSource dataSource = dossierProcAgentPersistence.getDataSource();

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql, new int[0]);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:19,代码来源:DossierProcAgentServiceBaseImpl.java

示例15: runSQL

import com.liferay.portal.kernel.dao.jdbc.SqlUpdate; //导入依赖的package包/类
/**
 * Performs an SQL query.
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
	try {
		DataSource dataSource = profileDataPersistence.getDataSource();

		SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
				sql, new int[0]);

		sqlUpdate.update();
	}
	catch (Exception e) {
		throw new SystemException(e);
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:19,代码来源:ProfileDataServiceBaseImpl.java


注:本文中的com.liferay.portal.kernel.dao.jdbc.SqlUpdate类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。