1 Blob
Class Ax.sql.Blob
Constructor Summary
Method Summary
Constructor Detail
Ax.sql.Blob.JSBlob
-
Ax.sql.Blob.JSBlob()
- Info:
-
Creates e new Blob instance.
Ax.sql.Blob.JSBlob
-
Ax.sql.Blob.JSBlob( string name )
- Info:
-
Creates a new Blob holder with the given file name. - Parameters:
- name - the name of the file contained by the Blob
var blob = new Ax.sql.Blob("data.txt");
Ax.sql.Blob.JSBlob
-
Ax.sql.Blob.JSBlob( byte[] data )
- Info:
-
Creates a new blob holder for the given data. - Parameters:
- data - the data to fill the Blob
Ax.sql.Blob.JSBlob
-
Ax.sql.Blob.JSBlob( string name, byte[] data )
- Info:
-
Creates a new Blob holder for the given data with the given file name. - Parameters:
- name - the name of the file contained by the Blob
- data - the data to fill the Blob
Ax.sql.Blob.JSBlob
-
Ax.sql.Blob.JSBlob( string name, byte[] data, string type )
- Info:
-
Creates a new Blob holder for the given data with the given file name and type. - Parameters:
- name - the name of the file contained by the Blob
- data - the data to fill the Blob
- type - the MIME type of the file contained by the Blob
Ax.sql.Blob.JSBlob
-
Ax.sql.Blob.JSBlob( object in )
- Info:
-
Creates a blob with the contents of the InputStream - Parameters:
- in -
Ax.sql.Blob.JSBlob
-
Ax.sql.Blob.JSBlob( string name, object in )
- Info:
-
Creates a blob with the contents of the InputStream and the given name - Parameters:
- name -
- in -
Ax.sql.Blob.JSBlob
-
Ax.sql.Blob.JSBlob( file file )
- Info:
-
Creates a new Blob holder containing the given file. - Parameters:
- file - the file to fill the Blob
var blob = new Ax.sql.Blob(new Ax.io.File("/etc/hosts"));
Method Detail
Ax.sql.Blob.close
-
null Ax.sql.Blob.close( string arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Blob.free
-
null Ax.sql.Blob.free()
- Returns:
- null
Ax.sql.Blob.getBinaryStream
-
object Ax.sql.Blob.getBinaryStream()
- Returns:
- object
Ax.sql.Blob.getBinaryStream
-
object Ax.sql.Blob.getBinaryStream( long pos, long length )
- Parameters:
- pos -
- length -
- Returns:
- object
Ax.sql.Blob.getBytes
-
byte[] Ax.sql.Blob.getBytes()
- Returns:
- byte[]
Ax.sql.Blob.getBytes
-
byte[] Ax.sql.Blob.getBytes( long pos, smallint length )
- Parameters:
- pos -
- length -
- Returns:
- byte[]
Ax.sql.Blob.getContent
-
byte[] Ax.sql.Blob.getContent()
- Info:
-
Gets the content of the Blob as a byte array. - Returns:
- byte[]
Ax.sql.Blob.getContentID
-
string Ax.sql.Blob.getContentID()
- Info:
-
Gets the content ID for the Blob. When using BLOBs to read Mail parts we can check for its content ID. - Returns:
- string
Ax.sql.Blob.getContentType
-
string Ax.sql.Blob.getContentType()
- Returns:
- string
Ax.sql.Blob.getDisposition
-
string Ax.sql.Blob.getDisposition()
- Info:
-
Gets the content disposition for the Blob. When using BLOBs to read Mail parts we can check for its content disposition. - Returns:
- string
Ax.sql.Blob.getFileName
-
string Ax.sql.Blob.getFileName()
- Returns:
- string
Ax.sql.Blob.getLength
-
long Ax.sql.Blob.getLength()
- Returns:
- long
Ax.sql.Blob.getLimit
-
smallint Ax.sql.Blob.getLimit( object arg0 )
- Parameters:
- arg0 -
- Returns:
- smallint
Ax.sql.Blob.getMetaData
-
object Ax.sql.Blob.getMetaData()
- Returns:
- object
Ax.sql.Blob.getOutputStream
-
object Ax.sql.Blob.getOutputStream()
- Returns:
- object
Ax.sql.Blob.getRowId
-
long Ax.sql.Blob.getRowId()
- Returns:
- long
Ax.sql.Blob.getSeqNo
-
long Ax.sql.Blob.getSeqNo()
- Returns:
- long
Ax.sql.Blob.getStore
-
string Ax.sql.Blob.getStore()
- Returns:
- string
Ax.sql.Blob.getText
-
string Ax.sql.Blob.getText()
- Info:
-
Gets the content of the Blob as text with UTF-8 charset encoding. - Returns:
- string
Ax.sql.Blob.getTextContent
-
string Ax.sql.Blob.getTextContent()
- Info:
-
Gets the content of the Blob as text with UTF-8 encoding. - Returns:
- string
Ax.sql.Blob.getTextContent
-
string Ax.sql.Blob.getTextContent( string charsetName )
- Info:
-
Gets the content of the Blob as text with the specified charset encoding. - Parameters:
- charsetName - the charset to use
- Returns:
- string
Ax.sql.Blob.getUUID
-
string Ax.sql.Blob.getUUID()
- Returns:
- string
Ax.sql.Blob.getVTableRowAccessAge
-
long Ax.sql.Blob.getVTableRowAccessAge()
- Returns:
- long
Ax.sql.Blob.getVTableRowAccessCount
-
long Ax.sql.Blob.getVTableRowAccessCount()
- Returns:
- long
Ax.sql.Blob.getVTableRowAccessTime
-
long Ax.sql.Blob.getVTableRowAccessTime()
- Returns:
- long
Ax.sql.Blob.getVTableRowBuildTime
-
long Ax.sql.Blob.getVTableRowBuildTime()
- Returns:
- long
Ax.sql.Blob.getVTableRowCreatedAge
-
long Ax.sql.Blob.getVTableRowCreatedAge()
- Returns:
- long
Ax.sql.Blob.hasContentType
-
boolean Ax.sql.Blob.hasContentType()
- Info:
-
To avoid call getBytes() if not set - Returns:
- boolean
Ax.sql.Blob.isAttachment
-
boolean Ax.sql.Blob.isAttachment()
- Info:
-
Checks if the Blob content disposition is Attachment. When using BLOBs to read Mail parts we can check for its content disposition. - Returns:
- boolean
Ax.sql.Blob.isCloseable
-
boolean Ax.sql.Blob.isCloseable()
- Returns:
- boolean
Ax.sql.Blob.isInline
-
boolean Ax.sql.Blob.isInline()
- Info:
-
Checks if the Blob content disposition is Inline. When using BLOBs to read Mail parts we can check for its content disposition. - Returns:
- boolean
Ax.sql.Blob.isLocked
-
boolean Ax.sql.Blob.isLocked()
- Returns:
- boolean
Ax.sql.Blob.isOneUse
-
boolean Ax.sql.Blob.isOneUse()
- Returns:
- boolean
Ax.sql.Blob.isShared
-
boolean Ax.sql.Blob.isShared()
- Returns:
- boolean
Ax.sql.Blob.length
-
long Ax.sql.Blob.length()
- Returns:
- long
Ax.sql.Blob.lock
-
null Ax.sql.Blob.lock()
- Returns:
- null
Ax.sql.Blob.position
-
long Ax.sql.Blob.position( byte[] pattern, long start )
- Parameters:
- pattern -
- start -
- Returns:
- long
Ax.sql.Blob.position
-
long Ax.sql.Blob.position( object pattern, long start )
- Parameters:
- pattern -
- start -
- Returns:
- long
Ax.sql.Blob.setBinaryStream
-
object Ax.sql.Blob.setBinaryStream( long l )
- Info:
-
Use the JDBC contract to provide a way to write data to this blob This will be used in Resource. - Parameters:
- l -
- Returns:
- object
Ax.sql.Blob.setBinaryStream
-
object Ax.sql.Blob.setBinaryStream( long pos )
- Parameters:
- pos -
- Returns:
- object
Ax.sql.Blob.setBytes
-
smallint Ax.sql.Blob.setBytes( long pos, byte[] bytes )
- Parameters:
- pos -
- bytes -
- Returns:
- smallint
Ax.sql.Blob.setBytes
-
smallint Ax.sql.Blob.setBytes( long pos, byte[] bytes, smallint offset, smallint len )
- Parameters:
- pos -
- bytes -
- offset -
- len -
- Returns:
- smallint
Ax.sql.Blob.setContent
-
object Ax.sql.Blob.setContent( byte[] data )
- Info:
-
Adds the given data as the Blob content. - Parameters:
- data - the data to fill the Blob
- Returns:
- object
Ax.sql.Blob.setContent
-
object Ax.sql.Blob.setContent( object in )
- Info:
-
Adds the given data as the Blob content. - Parameters:
- in - the data to fill the Blob
- Returns:
- object
Ax.sql.Blob.setContent
-
object Ax.sql.Blob.setContent( string text )
- Info:
-
Adds the text as UTF8 bytes as the Blob content. - Parameters:
- text - the text to fill the Blob
- Returns:
- object
Ax.sql.Blob.setContent
-
object Ax.sql.Blob.setContent( string text, string charsetName )
- Info:
-
Adds the text with the defined charset encoding as the Blob content. - Parameters:
- text - the text to fill the Blob
- charsetName - the charset encoding to use
- Returns:
- object
Ax.sql.Blob.setContentID
-
object Ax.sql.Blob.setContentID( string contentID )
- Info:
-
Sets the Blob content ID. When using BLOBs to read Mail parts we can check for its content ID. - Parameters:
- contentID - the content id
- Returns:
- object
Ax.sql.Blob.setContentType
-
null Ax.sql.Blob.setContentType( string contentType )
- Parameters:
- contentType -
- Returns:
- null
Ax.sql.Blob.setDisposition
-
object Ax.sql.Blob.setDisposition( string disposition )
- Info:
-
Sets the Blob content disposition. When using BLOBs to read Mail parts we can check for its content disposition. - Parameters:
- disposition - the content disposition
- Returns:
- object
Ax.sql.Blob.setFileName
-
null Ax.sql.Blob.setFileName( string fileName )
- Parameters:
- fileName -
- Returns:
- null
Ax.sql.Blob.setOneUse
-
null Ax.sql.Blob.setOneUse()
- Info:
-
web_os_vfile one use only - - Returns:
- null
Ax.sql.Blob.setSeqNo
-
null Ax.sql.Blob.setSeqNo( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Blob.setShared
-
null Ax.sql.Blob.setShared()
- Returns:
- null
Ax.sql.Blob.setVTableRowAccessCount
-
null Ax.sql.Blob.setVTableRowAccessCount()
- Returns:
- null
Ax.sql.Blob.setVTableRowAccessTime
-
null Ax.sql.Blob.setVTableRowAccessTime()
- Returns:
- null
Ax.sql.Blob.toBase64
-
string Ax.sql.Blob.toBase64()
- Returns:
- string
Ax.sql.Blob.toMemoryURL
-
string Ax.sql.Blob.toMemoryURL()
- Info:
-
Returns an internal memory URL to the Blob. It can be used for internal applications like "internal" apps like FOP, barcode, etc that need to access a blob without going to http. The URL is like: blob://localhost/def4a32f-995a-4172-99e3-b7e9dd7661c1 - Returns:
- string
Ax.sql.Blob.toString
-
string Ax.sql.Blob.toString()
- Returns:
- string
Ax.sql.Blob.toVTable
-
object Ax.sql.Blob.toVTable()
- Returns:
- object
Ax.sql.Blob.toVTableRow
-
object[] Ax.sql.Blob.toVTableRow()
- Returns:
- object[]
Ax.sql.Blob.truncate
-
null Ax.sql.Blob.truncate( long len )
- Parameters:
- len -
- Returns:
- null
Ax.sql.Blob.tryLock
-
boolean Ax.sql.Blob.tryLock( smallint arg0, object arg1 )
- Parameters:
- arg0 -
- arg1 -
- Returns:
- boolean
Ax.sql.Blob.unlock
-
null Ax.sql.Blob.unlock()
- Returns:
- null
Ax.sql.Blob.writeTo
-
object Ax.sql.Blob.writeTo( file file )
- Info:
-
Writes the Blob content to the specified file. - Parameters:
- file - the file to write
- Returns:
- object
Ax.sql.Blob.writeTo
-
object Ax.sql.Blob.writeTo( file file )
- Parameters:
- file -
- Returns:
- object
2 Date
Class Ax.sql.Date
Constructor Summary
Method Summary
Constructor Detail
Ax.sql.Date.JSSQLDate
-
Ax.sql.Date.JSSQLDate()
- Info:
-
Creates a new Date instance with the current time.
var current = new Ax.sql.Date(); current.setConnection(Ax.db);
Ax.sql.Date.JSSQLDate
-
Ax.sql.Date.JSSQLDate( long time )
- Parameters:
- time -
Ax.sql.Date.JSSQLDate
-
Ax.sql.Date.JSSQLDate( object argument )
- Info:
-
Creates a new Date instance with the given argument. The argument can be: 1. Numeric (like Long or Double): milliseconds since January 1, 1970, 00:00:00. 2. javascript Dates. - Parameters:
- argument -
Ax.sql.Date.JSSQLDate
-
Ax.sql.Date.JSSQLDate( smallint y, smallint m, smallint d )
- Info:
-
Creates a new date instance with the given year, month and day. The time (hh:mm:ss) part of the date is set to midnight, at the beginning of the day d. - Parameters:
- y - the year
- m - 1-based month
- d - 1-based day
function __test (param1, param2){ let x1 = param1 +1; let x2 = param2.addMonth(1); } var testunit = [ { field1 : 1, field2 : new Ax.sql.Date()} ]; for (var row of testunit) { console.log(row) __test(row.field1, row.field2); console.log(row) }
Method Detail
Ax.sql.Date.UTC
-
long Ax.sql.Date.UTC( smallint arg0, smallint arg1, smallint arg2, smallint arg3, smallint arg4, smallint arg5 )
- Parameters:
- arg0 -
- arg1 -
- arg2 -
- arg3 -
- arg4 -
- arg5 -
- Returns:
- long
Ax.sql.Date.__getDateFullYear
-
smallint Ax.sql.Date.__getDateFullYear( smallint year )
- Parameters:
- year -
- Returns:
- smallint
Ax.sql.Date.__getTimeFromArgument
-
long Ax.sql.Date.__getTimeFromArgument( object arg )
- Parameters:
- arg -
- Returns:
- long
Ax.sql.Date.add
-
object Ax.sql.Date.add( smallint field, smallint amount )
- Info:
-
Adds the given amount to the defined field in the date, returning a new one. The field is a Ax.util.Calendar fields. - Parameters:
- field - the field to add the amount to
- amount - the amount to add
- Returns:
- object
Ax.sql.Date.addDay
-
object Ax.sql.Date.addDay( smallint amount )
- Info:
-
Adds the number of days specified to date object returning a new one. - Parameters:
- amount - the amount to add
- Returns:
- object
Ax.sql.Date.addHour
-
object Ax.sql.Date.addHour( smallint amount )
- Info:
-
Adds the number of hours specified to date object returning a new one. - Parameters:
- amount - the amount to add
- Returns:
- object
Ax.sql.Date.addMillisecond
-
object Ax.sql.Date.addMillisecond( smallint amount )
- Info:
-
Adds the number of milliseconds specified to date object returning a new one. - Parameters:
- amount - the amount to add
- Returns:
- object
Ax.sql.Date.addMinute
-
object Ax.sql.Date.addMinute( smallint amount )
- Info:
-
Adds the number of minutes specified to date object returning a new one. - Parameters:
- amount - the amount to add
- Returns:
- object
Ax.sql.Date.addMonth
-
object Ax.sql.Date.addMonth( smallint amount )
- Info:
-
Adds the number of months specified to date object returning a new one. - Parameters:
- amount - the amount to add
- Returns:
- object
Ax.sql.Date.addSecond
-
object Ax.sql.Date.addSecond( smallint amount )
- Info:
-
Adds the number of seconds specified to date object returning a new one. - Parameters:
- amount - the amount to add
- Returns:
- object
Ax.sql.Date.addYear
-
object Ax.sql.Date.addYear( smallint amount )
- Info:
-
Adds the number of years specified to date object returning a new one. - Parameters:
- amount - the amount to add
- Returns:
- object
Ax.sql.Date.after
-
boolean Ax.sql.Date.after( date arg0 )
- Parameters:
- arg0 -
- Returns:
- boolean
Ax.sql.Date.afterOrEqual
-
boolean Ax.sql.Date.afterOrEqual( date d )
- Info:
-
Checks if this date is after the given date. - Parameters:
- d - the date to compare with
- Returns:
- boolean
Ax.sql.Date.before
-
boolean Ax.sql.Date.before( date arg0 )
- Parameters:
- arg0 -
- Returns:
- boolean
Ax.sql.Date.beforeOrEqual
-
boolean Ax.sql.Date.beforeOrEqual( date d )
- Info:
-
Checks if this date is before the given date. - Parameters:
- d - the date to compare with
- Returns:
- boolean
Ax.sql.Date.clearTime
-
object Ax.sql.Date.clearTime()
- Info:
-
Clear the time part (hours to milliseconds) from date, that is, set them to 0. - Returns:
- object
Ax.sql.Date.clone
-
object Ax.sql.Date.clone()
- Returns:
- object
Ax.sql.Date.compareTo
-
smallint Ax.sql.Date.compareTo( date arg0 )
- Parameters:
- arg0 -
- Returns:
- smallint
Ax.sql.Date.convertTimeZone
-
object Ax.sql.Date.convertTimeZone( string from, string to )
- Info:
-
Converts from one timezone to another. - Parameters:
- from - the timezone to convert from, like "Europe/London"
- to - the timezone to convert to, like "Europe/London"
- Returns:
- object
Ax.sql.Date.days
-
long Ax.sql.Date.days( object d2 )
- Info:
-
Returns the difference between the two given dates in days. - Parameters:
- d2 - the second date to compare
- Returns:
- long
Ax.sql.Date.duration
-
object Ax.sql.Date.duration( date d2 )
- Info:
-
Returns the Duration between the two given dates. - Parameters:
- d2 - the second date to compare
- Returns:
- object
Ax.sql.Date.equals
-
boolean Ax.sql.Date.equals( object arg0 )
- Parameters:
- arg0 -
- Returns:
- boolean
Ax.sql.Date.format
-
string Ax.sql.Date.format( string format )
- Info:
-
Returns a string with the date in the specified format. - Parameters:
- format - the format to use
- Returns:
- string
Ax.sql.Date.format
-
string Ax.sql.Date.format( string format, string language )
- Info:
-
Returns a string with the date in the specified format and localized for the given language. - Parameters:
- format - the format to use
- language - the local language
- Returns:
- string
console.log(current.format("EEE, MMM d, ''yy", "es")); // lun., feb. 11, '19
Ax.sql.Date.formatDecimalInt
-
null Ax.sql.Date.formatDecimalInt( smallint arg0, object arg1, smallint arg2, smallint arg3 )
- Parameters:
- arg0 -
- arg1 -
- arg2 -
- arg3 -
- Returns:
- null
Ax.sql.Date.from
-
date Ax.sql.Date.from( object arg0 )
- Parameters:
- arg0 -
- Returns:
- date
Ax.sql.Date.getDate
-
smallint Ax.sql.Date.getDate()
- Returns:
- smallint
Ax.sql.Date.getDateFullYear
-
smallint Ax.sql.Date.getDateFullYear( object date )
- Info:
-
Gets the year of the date. - Parameters:
- date - the date to get the year from in javascript
- Returns:
- smallint
Ax.sql.Date.getDateFullYear
-
smallint Ax.sql.Date.getDateFullYear( object date )
- Info:
-
Gets the year of the date. - Parameters:
- date - the date to get the year from as JSDate
- Returns:
- smallint
Ax.sql.Date.getDay
-
smallint Ax.sql.Date.getDay()
- Returns:
- smallint
Ax.sql.Date.getFullYear
-
smallint Ax.sql.Date.getFullYear()
- Info:
-
Gets the year of the date. - Returns:
- smallint
Ax.sql.Date.getHours
-
smallint Ax.sql.Date.getHours()
- Returns:
- smallint
Ax.sql.Date.getHours
-
smallint Ax.sql.Date.getHours()
- Returns:
- smallint
Ax.sql.Date.getMillisOf
-
long Ax.sql.Date.getMillisOf( date arg0 )
- Parameters:
- arg0 -
- Returns:
- long
Ax.sql.Date.getMinutes
-
smallint Ax.sql.Date.getMinutes()
- Returns:
- smallint
Ax.sql.Date.getMinutes
-
smallint Ax.sql.Date.getMinutes()
- Returns:
- smallint
Ax.sql.Date.getMonth
-
smallint Ax.sql.Date.getMonth()
- Returns:
- smallint
Ax.sql.Date.getSeconds
-
smallint Ax.sql.Date.getSeconds()
- Returns:
- smallint
Ax.sql.Date.getSeconds
-
smallint Ax.sql.Date.getSeconds()
- Returns:
- smallint
Ax.sql.Date.getTime
-
long Ax.sql.Date.getTime()
- Returns:
- long
Ax.sql.Date.getTimeZone
-
string Ax.sql.Date.getTimeZone()
- Info:
-
Returns the timezone date is represented in. By default system timezone but can be set by specific constructor or changed. - Returns:
- string
Ax.sql.Date.getTimezoneOffset
-
smallint Ax.sql.Date.getTimezoneOffset()
- Returns:
- smallint
Ax.sql.Date.getYear
-
smallint Ax.sql.Date.getYear()
- Info:
-
Gets the year of the date. - Returns:
- smallint
Ax.sql.Date.getYear
-
smallint Ax.sql.Date.getYear()
- Returns:
- smallint
Ax.sql.Date.hashCode
-
smallint Ax.sql.Date.hashCode()
- Returns:
- smallint
Ax.sql.Date.hours
-
long Ax.sql.Date.hours( date d2 )
- Info:
-
Returns the difference between the two given dates in hours. - Parameters:
- d2 - the second date to compare
- Returns:
- long
Ax.sql.Date.internalCreateDate
-
object Ax.sql.Date.internalCreateDate( long timeInMillis )
- Info:
-
Create the date type required - Parameters:
- timeInMillis -
- Returns:
- object
Ax.sql.Date.internalGetDate
-
date Ax.sql.Date.internalGetDate()
- Returns:
- date
Ax.sql.Date.internalGetYear
-
smallint Ax.sql.Date.internalGetYear()
- Returns:
- smallint
Ax.sql.Date.isEngineAvailable
-
boolean Ax.sql.Date.isEngineAvailable()
- Returns:
- boolean
Ax.sql.Date.millis
-
long Ax.sql.Date.millis( date d2 )
- Info:
-
Returns the difference between the two given dates in milliseconds. - Parameters:
- d2 - the second date to compare
- Returns:
- long
Ax.sql.Date.minutes
-
long Ax.sql.Date.minutes( date d2 )
- Info:
-
Returns the difference between the two given dates in minutes. - Parameters:
- d2 - the second date to compare
- Returns:
- long
Ax.sql.Date.months
-
long Ax.sql.Date.months( object d2 )
- Info:
-
Returns the difference between the two given dates in months. - Parameters:
- d2 - the second date to compare
- Returns:
- long
Ax.sql.Date.parse
-
long Ax.sql.Date.parse( string arg0 )
- Parameters:
- arg0 -
- Returns:
- long
Ax.sql.Date.seconds
-
long Ax.sql.Date.seconds( date d2 )
- Info:
-
Returns the difference between the two given dates in seconds. - Parameters:
- d2 - the second date to compare
- Returns:
- long
Ax.sql.Date.set
-
object Ax.sql.Date.set( smallint field, smallint value )
- Info:
-
Sets the given value to the defined field in the date, returning a new one. Fields are: ERA = 0, YEAR = 1, MONTH = 2, WEEK_OF_YEAR = 3, WEEK_OF_MONTH = 4, DAY_OF_MONTH = 5, DAY_OF_YEAR = 6, DAY_OF_WEEK = 7, DAY_OF_WEEK_IN_MONTH = 8, AM_PM = 9, HOUR = 10, HOUR_OF_DAY = 11, MINUTE = 12, SECOND = 13, MILLISECOND = 14, ZONE_OFFSET = 15, DST_OFFSET = 16, FIELD_COUNT = 17. - Parameters:
- field - the field to set
- value - the amount to add
- Returns:
- object
Ax.sql.Date.setConnection
-
object Ax.sql.Date.setConnection( object conn )
- Info:
-
Setups a database connection to format the date accordingly. - Parameters:
- conn - the database connection
- Returns:
- object
Ax.sql.Date.setConnection
-
object Ax.sql.Date.setConnection( object conn )
- Info:
-
Setups a database connection to format the date accordingly. - Parameters:
- conn - the database connection
- Returns:
- object
Ax.sql.Date.setDate
-
null Ax.sql.Date.setDate( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Date.setHours
-
null Ax.sql.Date.setHours( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Date.setHours
-
null Ax.sql.Date.setHours( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Date.setMinutes
-
null Ax.sql.Date.setMinutes( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Date.setMinutes
-
null Ax.sql.Date.setMinutes( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Date.setMonth
-
null Ax.sql.Date.setMonth( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Date.setSeconds
-
null Ax.sql.Date.setSeconds( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Date.setSeconds
-
null Ax.sql.Date.setSeconds( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Date.setTime
-
null Ax.sql.Date.setTime( long arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Date.setTime
-
null Ax.sql.Date.setTime( long arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Date.setTimeZone
-
object Ax.sql.Date.setTimeZone( string to )
- Info:
-
Sets the date timezone. - Parameters:
- to - the timezone to set, like "Europe/London"
- Returns:
- object
Ax.sql.Date.setYear
-
null Ax.sql.Date.setYear( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Date.toCalendar
-
object Ax.sql.Date.toCalendar()
- Info:
-
Converts the date to a Calendar object. - Returns:
- object
Ax.sql.Date.toGMTString
-
string Ax.sql.Date.toGMTString()
- Returns:
- string
Ax.sql.Date.toHumanReadable
-
string Ax.sql.Date.toHumanReadable( object d )
- Info:
-
Returns the Duration in human readable format as a String with format like "2 d 20:14:56" or "20:14:56" when days are 0. - Parameters:
- d - the duration
- Returns:
- string
Ax.sql.Date.toISOString
-
string Ax.sql.Date.toISOString()
- Info:
-
Returns the date formated as ISO_8601 ("yyyy-MM-dd") without time part. - Returns:
- string
Ax.sql.Date.toInstant
-
object Ax.sql.Date.toInstant()
- Returns:
- object
Ax.sql.Date.toInstant
-
object Ax.sql.Date.toInstant()
- Returns:
- object
Ax.sql.Date.toJavaSqlDate
-
date Ax.sql.Date.toJavaSqlDate()
- Info:
-
To be used when a native java.sql.Date object is needed in Ax JavaScript code. For example, consider a report having a variable ('FECHA' = '2022-06-19') of type Date which is returned as a column ('fecha') in the main ResultSet this way: var rsOutput = new Ax.rs.Reader().memory(options = - Returns:
- date
Ax.sql.Date.toLocalDate
-
object Ax.sql.Date.toLocalDate()
- Returns:
- object
Ax.sql.Date.toLocalDate
-
object Ax.sql.Date.toLocalDate()
- Info:
-
Converts the date to the system's timezone. - Returns:
- object
Ax.sql.Date.toLocaleString
-
string Ax.sql.Date.toLocaleString()
- Returns:
- string
Ax.sql.Date.toSQLQueryString
-
string Ax.sql.Date.toSQLQueryString()
- Info:
-
Returns the date formated as the SQL agent requires. Informix: MDY(m,d,y) - Returns:
- string
Ax.sql.Date.toString
-
string Ax.sql.Date.toString()
- Info:
-
Converts the date to a human-readable string or database format. - Returns:
- string
var current = new Ax.sql.Date(); current.setConnection(Ax.db); console.log(current);
Ax.sql.Date.toString
-
string Ax.sql.Date.toString()
- Returns:
- string
Ax.sql.Date.toString
-
string Ax.sql.Date.toString()
- Returns:
- string
Ax.sql.Date.valueOf
-
date Ax.sql.Date.valueOf( string arg0 )
- Parameters:
- arg0 -
- Returns:
- date
Ax.sql.Date.valueOf
-
date Ax.sql.Date.valueOf( object arg0 )
- Parameters:
- arg0 -
- Returns:
- date
Ax.sql.Date.weeks
-
long Ax.sql.Date.weeks( object d2 )
- Info:
-
Returns the difference between the two given dates in weeks. - Parameters:
- d2 - the second date to compare
- Returns:
- long
Ax.sql.Date.years
-
long Ax.sql.Date.years( object d2 )
- Info:
-
Returns the difference between the two given dates in years. - Parameters:
- d2 - the second date to compare
- Returns:
- long
3 Time
Class Ax.sql.Time
Constructor Summary
Method Summary
Constructor Detail
Ax.sql.Time.JSSQLTime
-
Ax.sql.Time.JSSQLTime( long time )
- Info:
-
Creates a new SQL Time instance with the given time, in milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds before January 1, 1970, 00:00:00 GMT. - Parameters:
- time - the time, in milliseconds since January 1, 1970, 00:00:00 GMT
Ax.sql.Time.JSSQLTime
-
Ax.sql.Time.JSSQLTime( date date )
- Info:
-
Creates a new SQL Time - Parameters:
- date -
Ax.sql.Time.JSSQLTime
-
Ax.sql.Time.JSSQLTime( smallint hour, smallint minute, smallint second )
- Info:
-
Creates a new SQL Time instance with the given hour, minute an second. Date will be set as default to January 1, 1970, but any attempt to access a date component of this Time will generate an exception. - Parameters:
- hour - the hour of the time, from 0 to 23
- minute - the minute of the time, from 0 to 59
- second - the second of the time, from 0 to 59
Method Detail
Ax.sql.Time.UTC
-
long Ax.sql.Time.UTC( smallint arg0, smallint arg1, smallint arg2, smallint arg3, smallint arg4, smallint arg5 )
- Parameters:
- arg0 -
- arg1 -
- arg2 -
- arg3 -
- arg4 -
- arg5 -
- Returns:
- long
Ax.sql.Time.after
-
boolean Ax.sql.Time.after( date arg0 )
- Parameters:
- arg0 -
- Returns:
- boolean
Ax.sql.Time.before
-
boolean Ax.sql.Time.before( date arg0 )
- Parameters:
- arg0 -
- Returns:
- boolean
Ax.sql.Time.clone
-
object Ax.sql.Time.clone()
- Returns:
- object
Ax.sql.Time.compareTo
-
smallint Ax.sql.Time.compareTo( date arg0 )
- Parameters:
- arg0 -
- Returns:
- smallint
Ax.sql.Time.equals
-
boolean Ax.sql.Time.equals( object arg0 )
- Parameters:
- arg0 -
- Returns:
- boolean
Ax.sql.Time.from
-
date Ax.sql.Time.from( object arg0 )
- Parameters:
- arg0 -
- Returns:
- date
Ax.sql.Time.getDate
-
smallint Ax.sql.Time.getDate()
- Returns:
- smallint
Ax.sql.Time.getDate
-
smallint Ax.sql.Time.getDate()
- Returns:
- smallint
Ax.sql.Time.getDay
-
smallint Ax.sql.Time.getDay()
- Returns:
- smallint
Ax.sql.Time.getDay
-
smallint Ax.sql.Time.getDay()
- Returns:
- smallint
Ax.sql.Time.getHours
-
smallint Ax.sql.Time.getHours()
- Returns:
- smallint
Ax.sql.Time.getMillisOf
-
long Ax.sql.Time.getMillisOf( date arg0 )
- Parameters:
- arg0 -
- Returns:
- long
Ax.sql.Time.getMinutes
-
smallint Ax.sql.Time.getMinutes()
- Returns:
- smallint
Ax.sql.Time.getMonth
-
smallint Ax.sql.Time.getMonth()
- Returns:
- smallint
Ax.sql.Time.getMonth
-
smallint Ax.sql.Time.getMonth()
- Returns:
- smallint
Ax.sql.Time.getSeconds
-
smallint Ax.sql.Time.getSeconds()
- Returns:
- smallint
Ax.sql.Time.getTime
-
long Ax.sql.Time.getTime()
- Returns:
- long
Ax.sql.Time.getTimezoneOffset
-
smallint Ax.sql.Time.getTimezoneOffset()
- Returns:
- smallint
Ax.sql.Time.getYear
-
smallint Ax.sql.Time.getYear()
- Returns:
- smallint
Ax.sql.Time.getYear
-
smallint Ax.sql.Time.getYear()
- Returns:
- smallint
Ax.sql.Time.hashCode
-
smallint Ax.sql.Time.hashCode()
- Returns:
- smallint
Ax.sql.Time.parse
-
long Ax.sql.Time.parse( string arg0 )
- Parameters:
- arg0 -
- Returns:
- long
Ax.sql.Time.setDate
-
null Ax.sql.Time.setDate( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Time.setDate
-
null Ax.sql.Time.setDate( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Time.setHours
-
null Ax.sql.Time.setHours( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Time.setMinutes
-
null Ax.sql.Time.setMinutes( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Time.setMonth
-
null Ax.sql.Time.setMonth( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Time.setMonth
-
null Ax.sql.Time.setMonth( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Time.setSeconds
-
null Ax.sql.Time.setSeconds( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Time.setTime
-
null Ax.sql.Time.setTime( long arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Time.setTime
-
null Ax.sql.Time.setTime( long arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Time.setYear
-
null Ax.sql.Time.setYear( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Time.setYear
-
null Ax.sql.Time.setYear( smallint arg0 )
- Parameters:
- arg0 -
- Returns:
- null
Ax.sql.Time.toGMTString
-
string Ax.sql.Time.toGMTString()
- Returns:
- string
Ax.sql.Time.toInstant
-
object Ax.sql.Time.toInstant()
- Returns:
- object
Ax.sql.Time.toInstant
-
object Ax.sql.Time.toInstant()
- Returns:
- object
Ax.sql.Time.toLocalTime
-
object Ax.sql.Time.toLocalTime()
- Returns:
- object
Ax.sql.Time.toLocaleString
-
string Ax.sql.Time.toLocaleString()
- Returns:
- string
Ax.sql.Time.toString
-
string Ax.sql.Time.toString()
- Returns:
- string
Ax.sql.Time.toString
-
string Ax.sql.Time.toString()
- Returns:
- string
Ax.sql.Time.valueOf
-
object Ax.sql.Time.valueOf( string arg0 )
- Parameters:
- arg0 -
- Returns:
- object
Ax.sql.Time.valueOf
-
object Ax.sql.Time.valueOf( object arg0 )
- Parameters:
- arg0 -
- Returns:
- object
4 QBE
Class Ax.sql.QBE
Constructor Summary
Method Summary
Constructor Detail
Ax.sql.QBE.JSQBE
-
Ax.sql.QBE.JSQBE( object conn )
- Info:
-
Creates a new QBE builder instance for the given db connection, o the QBE builder can know which SQL syntax to use. - Parameters:
- conn - the db connection to use
var qbe = new Ax.sql.QBE(Ax.db);
Ax.sql.QBE.JSQBE
-
Ax.sql.QBE.JSQBE( object conn, object columns )
- Info:
-
Creates a new QBE builder instance for the given db connection, so the QBE builder can know which SQL syntax to use. - Parameters:
- conn - the db connection to use
- columns - the columns to use
Method Detail
Ax.sql.QBE.addColumn
-
object Ax.sql.QBE.addColumn( string tableColumnName, string value )
- Info:
-
Defines a column name with format "tabname.colname" and the query expression. The column name will determine field type and will create the WHERE syntax properly. - Parameters:
- tableColumnName - the table column name with the format "tabname.colname"
- value - the query by example string to process
- Returns:
- object
Ax.sql.QBE.addColumn
-
object Ax.sql.QBE.addColumn( string colname, smallint sqltype, string value )
- Info:
-
Defines a column name with format "tabname.colname" and the query expression. sqltype determines the field type to create the WHERE syntax properly. - Parameters:
- colname - the table column name with the format "tabname.colname"
- sqltype - the SQL Type used for this column in SQL generation and query
- value - the query by example string to process
- Returns:
- object
Ax.sql.QBE.setDateFormat
-
object Ax.sql.QBE.setDateFormat( string format )
- Parameters:
- format -
- Returns:
- object
Ax.sql.QBE.setTimeFormat
-
object Ax.sql.QBE.setTimeFormat( string format )
- Parameters:
- format -
- Returns:
- object
Ax.sql.QBE.setTimestampFormat
-
object Ax.sql.QBE.setTimestampFormat( string format )
- Parameters:
- format -
- Returns:
- object
Ax.sql.QBE.toString
-
string Ax.sql.QBE.toString()
- Info:
-
Returns the query/WHERE string with the columns and query expressions added to the QBE Object. - Returns:
- string
5 Struct
Class Ax.sql.Struct
Constructor Summary
Method Summary
Constructor Detail
Ax.sql.Struct.JSStruct
-
Ax.sql.Struct.JSStruct()
- Info:
-
Default constructor. Required for reports in javascript that are serialized using kryo (see Test report alysee expression).
Ax.sql.Struct.JSStruct
-
Ax.sql.Struct.JSStruct( object[] attributes )
- Info:
-
Creates a new database Struct with the given attributes. - Parameters:
- attributes - the objects to form the struct
var pie = new Ax.sql.Struct('pie', 'jan', 10, 'feb', 20, 'march', 30, 'april', 40, 'may', 60, 'june', 60, 'july', 70, 'aug', 80, 'sept', 85, 'oct', 90, 'nov', 95, 'dec', 100); var vbar = new Ax.sql.Struct('vbar', 'jan', 10, 'feb', 20, 'march', 30, 'april', 40, 'may', 60, 'june', 60, 'july', 70, 'aug', 80, 'sept', 85, 'oct', 90, 'nov', 95, 'dec', 100);
Method Detail
Ax.sql.Struct.getAttributes
-
object[] Ax.sql.Struct.getAttributes()
- Info:
-
Gets the Struct attributes. - Returns:
- object[]
Ax.sql.Struct.getAttributes
-
object[] Ax.sql.Struct.getAttributes( object map )
- Info:
-
Gets the Struct attributes. - Parameters:
- map - a mapping of SQL type names to Java classes
- Returns:
- object[]
Ax.sql.Struct.getSQLTypeName
-
string Ax.sql.Struct.getSQLTypeName()
- Info:
-
Retrieves the SQL type name of the SQL structured type that this Struct represents. - Returns:
- string
Ax.sql.Struct.toString
-
string Ax.sql.Struct.toString()
- Info:
-
Returns a string with the Struct attributes. - Returns:
- string
6 Type and Types
Defines the constants that are used to identify generic SQL types, called JDBC types.