sql()

Previous Next

Connects to a Rules Engine and executes a SQL statement.

This function may be used in the Implementation field of methods of custom REST and SOAP services (that is, services defined in the USoft Service Definer that have Functional Type = USoft REST Default Provider or USoft SOAP Default Provider).

All constructs listed in this help topic will open a connection to the database, execute a statement, and then automatically close the connection. To keep the connection open and execute multiple statements using that same connection, see the openConnection() functions.

For services where the client does not need to provide credentials, you must pass a username and password on behalf of the client. Use the sql( outputClass, connection, userName, password, statementName, inputParameters ) construct at the end of this help topic.

 

 

collapseObject sql( String statementName )
collapseObject sql( String statementName, Object[] inputParameters )
collapseObject sql( String connection, String statementName )
collapseObject sql( String connection, String statementName, Object[] inputParameters )
collapse<T> T sql( Class<T> outputClass, String statementName )
collapse<T> T sql( Class<T> outputClass, String statementName, Object[] inputParameters )
collapse<T> T sql( Class<T> outputClass, String connection, String statementName )
collapse<T> T sql( Class<T> outputClass, String connection, String statementName, Object[] inputParameters )
collapse<T> T sql( Class<T> outputClass, String connection, String userName, String password, String statementName, Object[] inputParameters )

 

See Also

Java output classes returned by sql()

Utility functions for REST and SOAP Default Providers