Example usage for com.liferay.portal.kernel.dao.jdbc SqlUpdateFactoryUtil getSqlUpdate

List of usage examples for com.liferay.portal.kernel.dao.jdbc SqlUpdateFactoryUtil getSqlUpdate

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.dao.jdbc SqlUpdateFactoryUtil getSqlUpdate.

Prototype

public static SqlUpdate getSqlUpdate(DataSource dataSource, String sql, ParamSetter... paramSetters) 

Source Link

Usage

From source file:at.bibbox.reactjsservice.service.base.ToolInformationLocalServiceBaseImpl.java

License:Open Source License

/**
 * Performs an SQL query./* w w w. jav  a 2  s .c o m*/
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = toolInformationPersistence.getDataSource();

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

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.base.ConfigurationLocalServiceBaseImpl.java

License:Open Source License

/**
 * Performs an SQL query./* w  w w.jav a  2 s  .  c o  m*/
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = configurationPersistence.getDataSource();

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

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.base.FahrzeugLocalServiceBaseImpl.java

License:Open Source License

/**
 * Performs an SQL query./*from w  w  w .  j  av a 2s.co  m*/
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = fahrzeugPersistence.getDataSource();

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

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.base.ObjectDataLocalServiceBaseImpl.java

License:Open Source License

/**
 * Performs an SQL query.//from  ww w  . jav  a  2 s .com
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = objectDataPersistence.getDataSource();

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

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.base.ObjectImageLocalServiceBaseImpl.java

License:Open Source License

/**
 * Performs an SQL query.// w w  w .ja v  a 2 s .  c  om
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = objectImagePersistence.getDataSource();

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

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.base.ParameterConfigurationLocalServiceBaseImpl.java

License:Open Source License

/**
 * Performs an SQL query./*from  w ww.  j  ava2 s  . c o m*/
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = parameterConfigurationPersistence.getDataSource();

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

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.base.ParameterOptionsConfigurationLocalServiceBaseImpl.java

License:Open Source License

/**
 * Performs an SQL query./*  w  ww.  ja  va  2 s.co m*/
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = parameterOptionsConfigurationPersistence.getDataSource();

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

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.base.PersonLocalServiceBaseImpl.java

License:Open Source License

/**
 * Performs an SQL query./*  www  .j av  a  2  s. c o m*/
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = personPersistence.getDataSource();

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

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.base.PuchMuseumsObjektLocalServiceBaseImpl.java

License:Open Source License

/**
 * Performs an SQL query./*w ww . j a  va 2  s  .  c o  m*/
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = puchMuseumsObjektPersistence.getDataSource();

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

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}

From source file:at.graz.hmmc.liferay.portlet.puch.service.base.TransaktionDataLocalServiceBaseImpl.java

License:Open Source License

/**
 * Performs an SQL query./*from  w w w  .  j av a 2  s.com*/
 *
 * @param sql the sql query
 */
protected void runSQL(String sql) throws SystemException {
    try {
        DataSource dataSource = transaktionDataPersistence.getDataSource();

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

        sqlUpdate.update();
    } catch (Exception e) {
        throw new SystemException(e);
    }
}