Package | Description |
---|---|
org.restsql.core |
Contains core framework interfaces, an API for deployments that use
restSQL as a library, rather than an HTTP service.
|
org.restsql.core.sqlresource |
Contains classes that model the SQL Resource definition XML document.
|
Modifier and Type | Method and Description |
---|---|
SqlResourceDefinition |
SqlResource.getDefinition()
Returns SQL resource information defined by the user, including query, validated attributes and trigger.
|
Modifier and Type | Method and Description |
---|---|
static SqlResourceMetaData |
Factory.getSqlResourceMetaData(String resName,
SqlResourceDefinition definition,
SqlBuilder sqlBuilder)
Returns meta data object for definition.
|
void |
SqlResourceMetaData.init(String sqlResourceName,
SqlResourceDefinition definition,
SqlBuilder sqlBuilder) |
Modifier and Type | Method and Description |
---|---|
SqlResourceDefinition |
ObjectFactory.createSqlResourceDefinition()
Create an instance of
SqlResourceDefinition |
Modifier and Type | Method and Description |
---|---|
JAXBElement<SqlResourceDefinition> |
ObjectFactory.createSqlResource(SqlResourceDefinition value)
|
Modifier and Type | Method and Description |
---|---|
JAXBElement<SqlResourceDefinition> |
ObjectFactory.createSqlResource(SqlResourceDefinition value)
|
static String |
SqlResourceDefinitionUtils.getDefaultDatabase(SqlResourceDefinition definition)
Returns default database.
|
static Table |
SqlResourceDefinitionUtils.getTable(SqlResourceDefinition definition,
ColumnMetaData column)
Returns table object for column, ignoring case.
|
static Table |
SqlResourceDefinitionUtils.getTable(SqlResourceDefinition definition,
String tableName)
Returns table object with specified table name, ignoring case.
|
static Table |
SqlResourceDefinitionUtils.getTable(SqlResourceDefinition definition,
TableMetaData.TableRole role)
Returns table object with desired role.
|
static List<Table> |
SqlResourceDefinitionUtils.getTableList(SqlResourceDefinition definition,
TableMetaData.TableRole role)
Returns list of table objects with specified role.
|
static void |
SqlResourceDefinitionUtils.validate(SqlResourceDefinition definition)
Throws SqlResourceException if definition meets one of the following criteria:
No query element
No metadata element
No database element with default database name
No Parent table element
More than one Parent, Child or Join table elements
|
Copyright © 2011-2018 restSQL Project Contributors