public class PaymentTerm extends DefaultDatabaseEntity implements DatabaseEntity
PaymentTerm
class represents the invoice payment terms and condition.Modifier and Type | Class and Description |
---|---|
static class |
PaymentTerm.COLUMNS |
Constructor and Description |
---|
PaymentTerm() |
PaymentTerm(String description) |
Modifier and Type | Method and Description |
---|---|
static PaymentTerm |
findByDescription(String description) |
static PaymentTerm |
findById(long id) |
static long |
findOrPersist(PaymentTerm paymentTerm) |
String |
getDescription() |
long |
getNetDays() |
long |
getPaymentTermId() |
long |
persistToDatabase() |
String |
prepareInsertStatement() |
void |
setDescription(String description) |
void |
setNetDays(long netDays) |
void |
setPaymentTermId(long paymentTermId) |
createInsertSql, getConnection, insert
public PaymentTerm()
public PaymentTerm(String description)
public long persistToDatabase() throws SQLException
persistToDatabase
in interface DatabaseEntity
SQLException
public String prepareInsertStatement()
prepareInsertStatement
in class DefaultDatabaseEntity
public static PaymentTerm findByDescription(String description) throws SQLException
SQLException
public static PaymentTerm findById(long id) throws SQLException
SQLException
public static long findOrPersist(PaymentTerm paymentTerm) throws SQLException
SQLException
public long getPaymentTermId()
public String getDescription()
public void setPaymentTermId(long paymentTermId)
public void setDescription(String description)
public long getNetDays()
public void setNetDays(long netDays)
Copyright © 2011–2019 Plain Source. All rights reserved.