package com.ericfeminella.sql
{
/**
*
* <code>ISQLStatementResource</code> is a marker interfaces
* which is intended to improve code readability by indicating
* that a class which implements this interface is to provide
* access to external SQL statements defined in a .properties
* file
*
* @example The following example demonstrates a typical use
* case which utilizes <code>ISQLStatementResource</code> to
* indicate the intension of the class
*
* <listing version="3.0">
*
* package example.cairngorm.air.business
* {
* import mx.resources.ResourceBundle;
* import mx.resources.ResourceManager;
* import mx.resources.IResourceManager;
*
* public final class SQLStatementConfiguration implements ISQLStatementResource
* {
* [ResourceBundle('queries')]
* private static const resource:ResourceBundle;
*
* private static const rm:IResourceManager = ResourceManager.getInstance();
*
* public static const INSERT:String = rm.getString("queries", "INSERT");
* public static const SELECT:String = rm.getString("queries", "SELECT");
* public static const UPDATE:String = rm.getString("queries", "UPDATE");
* public static const DELETE:String = rm.getString("queries", "DELETE");
* }
* }
*
* // queries.properties:
* // INSERT=INSERT INTO users VALUES('{0}', '{1}')
* // SELECT=SELECT * FROM users
* // UPDATE=UPDATE users SET password='{0}' WHERE username = '{1}'
* // DELETE=DELETE FROM users WHERE username = '{0}'
*
* </listing>
*
*/
public interface ISQLStatementResource {
}
}