|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.sql.DBDictionary org.apache.openjpa.jdbc.sql.IngresDictionary
public class IngresDictionary
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.openjpa.jdbc.sql.DBDictionary |
---|
DBDictionary.SerializedData |
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.jdbc.sql.JoinSyntaxes |
---|
SYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL |
Constructor Summary | |
---|---|
IngresDictionary()
|
Method Summary | |
---|---|
protected void |
appendSelectRange(SQLBuffer buf,
long start,
long end,
boolean subselect)
Implementation of appendSelectRange for Ingres - uses "SELECT FIRST n" syntax. |
void |
connectedConfiguration(Connection conn)
This method is called when the dictionary first sees any connection. |
protected String |
getSequencesSQL(DBIdentifier schemaName,
DBIdentifier sequenceName)
|
protected String |
getSequencesSQL(String schemaName,
String sequenceName)
Implementation of empty method in DBDictionary. |
void |
indexOf(SQLBuffer buf,
FilterValue str,
FilterValue find,
FilterValue start)
Invoke Ingres' IndexOf Function (Find the first index of a string in another string, starting at a given index). |
protected Sequence |
newSequence(ResultSet sequenceMeta)
Overrides DBDictionary's newSequence method; trims the sequence name. |
void |
substring(SQLBuffer buf,
FilterValue str,
FilterValue start,
FilterValue end)
Invoke this database's substring function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IngresDictionary()
Method Detail |
---|
public void connectedConfiguration(Connection conn) throws SQLException
DBDictionary
super.connectedConfiguration
.
connectedConfiguration
in class DBDictionary
SQLException
protected void appendSelectRange(SQLBuffer buf, long start, long end, boolean subselect)
appendSelectRange
in class DBDictionary
buf
- - SQL building buffer.start
- - Ignored, not supported by Ingres. Throws anend
- - The number of records to return.subselect
- - Is the SQL query part of a subselect statement?DBDictionary.appendSelectRange(
org.apache.openjpa.jdbc.sql.SQLBuffer, long, long, boolean)
protected String getSequencesSQL(String schemaName, String sequenceName)
getSequencesSQL
in class DBDictionary
protected String getSequencesSQL(DBIdentifier schemaName, DBIdentifier sequenceName)
getSequencesSQL
in class DBDictionary
protected Sequence newSequence(ResultSet sequenceMeta) throws SQLException
newSequence
in class DBDictionary
SQLException
DBDictionary.newSequence(ResultSet)
public void indexOf(SQLBuffer buf, FilterValue str, FilterValue find, FilterValue start)
indexOf
in class DBDictionary
buf
- - the SQL Buffer to write the indexOf invocation tostr
- - a query value representing the target stringfind
- - a query value representing the search stringstart
- - a query value representing the start index, or null to
start at the beginningDBDictionary.indexOf(
org.apache.openjpa.jdbc.sql.SQLBuffer,
org.apache.openjpa.jdbc.kernel.exps.FilterValue,
org.apache.openjpa.jdbc.kernel.exps.FilterValue,
org.apache.openjpa.jdbc.kernel.exps.FilterValue)
public void substring(SQLBuffer buf, FilterValue str, FilterValue start, FilterValue end)
DBDictionary
substring
in class DBDictionary
buf
- the SQL buffer to write the substring invocation tostr
- a query value representing the target stringstart
- a query value representing the start indexend
- a query value representing the end index, or null for noneDBDictionary.substring(
org.apache.openjpa.jdbc.sql.SQLBuffer,
org.apache.openjpa.jdbc.kernel.exps.FilterValue,
org.apache.openjpa.jdbc.kernel.exps.FilterValue,
org.apache.openjpa.jdbc.kernel.exps.FilterValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |