com.atlassian.jira.database
Class SqlStatementTimeReader

java.lang.Object
  extended by com.atlassian.jira.database.SqlStatementTimeReader
All Implemented Interfaces:
DatabaseSystemTimeReader

public class SqlStatementTimeReader
extends Object
implements DatabaseSystemTimeReader


Constructor Summary
SqlStatementTimeReader(String statement)
           
 
Method Summary
 long getDatabaseSystemTimeMillis()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlStatementTimeReader

public SqlStatementTimeReader(@Nonnull
                              String statement)
Method Detail

getDatabaseSystemTimeMillis

public long getDatabaseSystemTimeMillis()
                                 throws SQLException
Specified by:
getDatabaseSystemTimeMillis in interface DatabaseSystemTimeReader
Returns:
the current system time according to the database in milliseconds. Potentially a database-dependent value (it may not necessarily be number of milliseconds since 1970 but must be in milliseconds from a constant offset).
Throws:
SQLException - if a database error occurs.


Copyright © 2002-2014 Atlassian. All Rights Reserved.