Example usage for com.liferay.portal.kernel.exception SystemException SystemException

List of usage examples for com.liferay.portal.kernel.exception SystemException SystemException

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.exception SystemException SystemException.

Prototype

public SystemException(Throwable cause) 

Source Link

Usage

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

License:Open Source License

/**
 * Performs an SQL query.//  www.  ja va2  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 .  j a  va  2s.co 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./* w ww.j  ava  2  s .  c  o  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  www.  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.//from w w  w.  j  a  v  a 2  s. c  o  m
 *
 * @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   www . j  a va 2 s  .c om*/
 *
 * @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.//from  w  w  w.j ava 2s. c  o 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.//  w  w  w. ja va 2 s . co 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./*from   w ww.j  ava  2s  .  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  www. j  a v a 2  s. c o  m*/
 *
 * @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);
    }
}