AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.database.DatabaseStatements

@AnyLogicInternalAPI
public class DatabaseStatements
extends java.lang.Object
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.

Method Summary

All Methods Static Methods Concrete Methods 
static java.lang.String getSQLToSetFieldsInUpdateStatement​(java.lang.String... fields)  
static java.sql.PreparedStatement prepareInsertStatement​(java.sql.Connection connection, java.lang.String databaseTableName, boolean returnGeneratedKeys, java.lang.String... fields)  
static java.sql.PreparedStatement prepareUpdateStatement​(java.sql.Connection connection, java.lang.String name, java.lang.String unicFieldName, java.lang.String... fields)  
static java.sql.PreparedStatement prepareUpdateStatementWhereIsNull​(java.sql.Connection connection, java.lang.String name, java.lang.String unicFieldName, java.lang.String... fields)  
Modifier and Type Method Description

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

prepareInsertStatement

@AnyLogicInternalAPI
public static java.sql.PreparedStatement prepareInsertStatement​(java.sql.Connection connection,
                                                                java.lang.String databaseTableName,
                                                                boolean returnGeneratedKeys,
                                                                java.lang.String... fields)
                                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

prepareUpdateStatement

@AnyLogicInternalAPI
public static java.sql.PreparedStatement prepareUpdateStatement​(java.sql.Connection connection,
                                                                java.lang.String name,
                                                                java.lang.String unicFieldName,
                                                                java.lang.String... fields)
                                                         throws java.sql.SQLException
Throws:
java.sql.SQLException

prepareUpdateStatementWhereIsNull

@AnyLogicInternalAPI
public static java.sql.PreparedStatement prepareUpdateStatementWhereIsNull​(java.sql.Connection connection,
                                                                           java.lang.String name,
                                                                           java.lang.String unicFieldName,
                                                                           java.lang.String... fields)
                                                                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getSQLToSetFieldsInUpdateStatement

@AnyLogicInternalAPI
public static java.lang.String getSQLToSetFieldsInUpdateStatement​(java.lang.String... fields)
How can we improve this article?